com.metamatrix.platform.service.proxy
Class ProxyManager
java.lang.Object
com.metamatrix.platform.service.proxy.ProxyManager
- All Implemented Interfaces:
- RegistryListener
public class ProxyManager
- extends java.lang.Object
- implements RegistryListener
A traffic cop for all the proxies in this VM.
Method Summary |
ServiceInterface |
findOrCreateProxy(java.lang.String serviceTypeName,
java.util.Properties props)
Returns a ServiceProxy of the given type.
If a proxy of the given type exists in the proxy registry, its service
instances are updated and it's returned. |
void |
registryChanged()
|
void |
registryShutdown()
|
java.lang.String |
toString()
Returns a string representing the current state of the object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ProxyManager
public ProxyManager(java.lang.String hostName,
java.lang.String processName,
ClusteredRegistryState registry)
registryShutdown
public void registryShutdown()
- Specified by:
registryShutdown
in interface RegistryListener
registryChanged
public void registryChanged()
- Specified by:
registryChanged
in interface RegistryListener
findOrCreateProxy
public ServiceInterface findOrCreateProxy(java.lang.String serviceTypeName,
java.util.Properties props)
- Returns a
ServiceProxy
of the given type.
If a proxy of the given type exists in the proxy registry, its service
instances are updated and it's returned. If no proxy of the given type
exists in the proxy registry, a new proxy is created, registered and
returned.
- Parameters:
serviceTypeName
- The primary method for recognizing a proxy is by the type of
the service it represents. May not be null
.serviceInstances
- The list of updated service instances for the proxy.props
- The proxy properties.
- Returns:
- The proxy of interest.
toString
public java.lang.String toString()
- Returns a string representing the current state of the object.
- Overrides:
toString
in class java.lang.Object
Copyright © 2009. All Rights Reserved.