org.resilientedge.jockey.service
Class ServiceManager

java.lang.Object
  |
  +--org.resilientedge.jockey.service.ServiceManager
Direct Known Subclasses:
ServiceManagerImpl

public class ServiceManager
extends java.lang.Object

Provides a central point for the location of a service (local or remote)

Version:
$Revision: 1.1.1.1 $
Author:
John Gardner

Constructor Summary
ServiceManager()
           
 
Method Summary
 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()
           
 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
 

Constructor Detail

ServiceManager

public ServiceManager()
Method Detail

getService

public ServiceProxy getService(ServiceDescriptor service)
Locates a service locally given the service descriptor as criteria
Parameters:
service - Description of Parameter
Returns:
The Service value

getProvidedServices

public java.util.Vector getProvidedServices()

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.
Parameters:
peer - Description of Parameter
attributeType - Description of Parameter
attributeValue - 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
Parameters:
group - Description of Parameter
attributeType - Description of Parameter
attributeValue - Description of Parameter
Returns:
Description of the Returned Value

getInstance

public static ServiceManager getInstance()
Returns the singleton instance of the service manager
Returns:
The Instance value


Copyright © 2001 Resilient Edge, Inc. All Rights Reserved.