use of com.cosylab.acs.maci.plug.ManagerProxy in project ACS by ACS-Community.
the class ManagerImpl method getManagerForDomain.
/**
* Get manager for given domain.
* @param domainName domain name.
* @return manager for given domain, <code>null</code> if not found.
*/
private synchronized Manager getManagerForDomain(String domainName) {
// cache lookup
if (managerCache.containsKey(domainName))
return managerCache.get(domainName);
final Object obj = lookup(federationDirectory, dottedToHierarchical(domainName) + "/Manager", null);
if (obj == null)
return null;
/// @todo CORBA specific
Manager remoteManager = new ManagerProxy(obj);
// store into cache
managerCache.put(domainName, remoteManager);
return remoteManager;
}
Aggregations