org.resilientedge.jockey.servicebridge
Class SBAbstractServiceManager
java.lang.Object
|
+--org.resilientedge.jockey.servicebridge.SBAbstractServiceManager
- All Implemented Interfaces:
- SBServiceManager
- Direct Known Subclasses:
- WebServiceManager
- public class SBAbstractServiceManager
- extends java.lang.Object
- implements SBServiceManager
Base implementation for bridges that provides fundamental service manager
behaviour
- Version:
- $Revision: 1.1.1.1 $
- Author:
- John Gardner
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SBAbstractServiceManager
public SBAbstractServiceManager()
getProvidedServices
public java.util.Vector getProvidedServices()
- Returns the set of services installed in this manager.
- Specified by:
getProvidedServices
in interface SBServiceManager
findServiceInstances
public java.util.Vector findServiceInstances(SBServiceDescriptor descriptor)
- Description copied from interface:
SBServiceManager
getService
finds a service based on a descriptor
for that service. Assumes that the given descriptor is not an exact
match, and the closest match must be found by examining all available
services.
- Specified by:
findServiceInstances
in interface SBServiceManager
- Following copied from interface:
org.resilientedge.jockey.servicebridge.SBServiceManager
- Parameters:
descriptor
- a SBServiceDescriptor
value
that desribes the service to be found- Returns:
- a vector of SBAbstractServiceInstance objects that match the
requested descriptor.
getServiceInstances
public java.util.Vector getServiceInstances(java.lang.String name)
- Description copied from interface:
SBServiceManager
- Gets all services of a given name
- Specified by:
getServiceInstances
in interface SBServiceManager
- Following copied from interface:
org.resilientedge.jockey.servicebridge.SBServiceManager
- Parameters:
name
- a String
name of the service wanted- Returns:
- a vector of SBAbstractServiceInstance objects that
have that name
init
public void init()
- Specified by:
init
in interface SBServiceManager
shutdown
public void shutdown()
- Specified by:
shutdown
in interface SBServiceManager
findServiceInstance
public SBAbstractServiceInstance findServiceInstance(SBServiceDescriptor descriptor)
getService
finds a service based on a descriptor
for that service. Assumes that the given descriptor is not an exact
match, and the closest match must be found by examining all available
services.
- Specified by:
findServiceInstance
in interface SBServiceManager
- Parameters:
descriptor
- a SBServiceDescriptor
value
that desribes the service to be found- Returns:
- a
SBAbstractServiceInstance
object that match the
requested descriptor.
getServiceInstance
public SBAbstractServiceInstance getServiceInstance(java.lang.String name)
- Gets a services of a given name
- Specified by:
getServiceInstance
in interface SBServiceManager
- Parameters:
name
- a String
name of the service wanted- Returns:
- a
SBAbstractServiceInstance
object that
has the given name
isInProcess
public boolean isInProcess()
- Gets the service runs in process flag
setInProcess
public void setInProcess(boolean newValue)
- Sets the service runs in process flag
Copyright © 2001 Resilient Edge, Inc. All Rights Reserved.