Search in sources :

Example 1 with ManagerProxy

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;
}
Also used : ManagerProxy(com.cosylab.acs.maci.plug.ManagerProxy) Manager(com.cosylab.acs.maci.Manager)

Aggregations

Manager (com.cosylab.acs.maci.Manager)1 ManagerProxy (com.cosylab.acs.maci.plug.ManagerProxy)1