com.resilientedge.jockey.service
Class ServiceManagerImpl
java.lang.Object
|
+--org.resilientedge.jockey.service.ServiceManager
|
+--com.resilientedge.jockey.service.ServiceManagerImpl
- public class ServiceManagerImpl
- extends ServiceManager
Provides a central point for the location of a service (local or remote)
- Version:
- $Revision: 1.1.1.1 $
- Author:
- John Gardner, AVaughan
Method Summary |
ServiceProxy |
findService(java.lang.String attributeType,
java.lang.Object attributeValue)
Locates a service locally given the attribute type and value as criteria |
ServiceProxy |
findServiceAt(PeerGroupToken group,
java.lang.String attributeType,
java.lang.Object attributeValue)
Locates a service locally given the peer group, attribute type, and value
as criteria |
ServiceProxy |
findServiceAt(PeerToken peer,
java.lang.String attributeType,
java.lang.Object attributeValue)
Locates a service locally given the peer, attribute type, and value as
criteria. |
static ServiceManager |
getInstance()
Returns the singleton instance of the service manager |
java.util.Vector |
getProvidedServices()
Returns a container of ServiceDescriptor instances referring to
the services this manager knows about |
ServiceProxy |
getService(ServiceDescriptor service)
Locates a service locally given the service descriptor as criteria |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServiceManagerImpl
public ServiceManagerImpl()
getInstance
public static ServiceManager getInstance()
- Returns the singleton instance of the service manager
- Returns:
- The Instance value
getService
public ServiceProxy getService(ServiceDescriptor service)
- Locates a service locally given the service descriptor as criteria
- Overrides:
getService
in class ServiceManager
- Parameters:
service
- Description of Parameter- Returns:
- The Service value
getProvidedServices
public java.util.Vector getProvidedServices()
- Returns a container of ServiceDescriptor instances referring to
the services this manager knows about
- Overrides:
getProvidedServices
in class ServiceManager
- See Also:
ServiceDescriptor
findService
public ServiceProxy findService(java.lang.String attributeType,
java.lang.Object attributeValue)
- Locates a service locally given the attribute type and value as criteria
- Parameters:
attributeType
- Description of ParameterattributeValue
- Description of Parameter- Returns:
- Description of the Returned Value
findServiceAt
public ServiceProxy findServiceAt(PeerToken peer,
java.lang.String attributeType,
java.lang.Object attributeValue)
- Locates a service locally given the peer, attribute type, and value as
criteria.
- Overrides:
findServiceAt
in class ServiceManager
- Parameters:
peer
- Description of ParameterattributeType
- Description of ParameterattributeValue
- Description of Parameter- Returns:
- Description of the Returned Value
findServiceAt
public ServiceProxy findServiceAt(PeerGroupToken group,
java.lang.String attributeType,
java.lang.Object attributeValue)
- Locates a service locally given the peer group, attribute type, and value
as criteria
- Overrides:
findServiceAt
in class ServiceManager
- Parameters:
group
- Description of ParameterattributeType
- Description of ParameterattributeValue
- Description of Parameter- Returns:
- Description of the Returned Value
Copyright © 2001 Resilient Edge, Inc. All Rights Reserved.