org.resilientedge.jockey.servicebridge
Interface SBServiceManager

All Known Implementing Classes:
SBAbstractServiceManager

public interface SBServiceManager

A SBServiceManager is responsible for tracking the descriptors of services that a particular provider supports. for example, Apache will have a Service Manager that manages all of the serivces available in that web container...There will be one manager per "service container"

Version:
$Revision: 1.1.1.1 $
Author:
AVaughan

Method Summary
 SBAbstractServiceInstance findServiceInstance(SBServiceDescriptor descriptor)
          getService finds a service based on a descriptor for that service.
 java.util.Vector findServiceInstances(SBServiceDescriptor descriptor)
          getService finds a service based on a descriptor for that service.
 java.util.Vector getProvidedServices()
          Returns a container of SBServiceDescriptor instances referring to the services this manager knows about.
 SBAbstractServiceInstance getServiceInstance(java.lang.String name)
          Gets a services of a given name
 java.util.Vector getServiceInstances(java.lang.String name)
          Gets all services of a given name
 void init()
           
 void shutdown()
           
 

Method Detail

getProvidedServices

public java.util.Vector getProvidedServices()
Returns a container of SBServiceDescriptor instances referring to the services this manager knows about.

findServiceInstances

public java.util.Vector findServiceInstances(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.
Parameters:
descriptor - a SBServiceDescriptor value that desribes the service to be found
Returns:
a vector of SBAbstractServiceInstance objects that match the requested descriptor.

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.
Parameters:
descriptor - a SBServiceDescriptor value that desribes the service to be found
Returns:
a SBAbstractServiceInstance object that match the requested descriptor.

getServiceInstances

public java.util.Vector getServiceInstances(java.lang.String name)
Gets all services of a given name
Parameters:
name - a String name of the service wanted
Returns:
a vector of SBAbstractServiceInstance objects that have that name

getServiceInstance

public SBAbstractServiceInstance getServiceInstance(java.lang.String name)
Gets a services of a given name
Parameters:
name - a String name of the service wanted
Returns:
a SBAbstractServiceInstance object that has the given name

init

public void init()

shutdown

public void shutdown()


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