Xindice API

org.apache.xindice.server
Interface ServiceManager

All Known Implementing Classes:
StdServiceManager

public interface ServiceManager

ServiceManager is an interface that is implemented to handle the management of Services. StdServiceManager is the standard implementation of this interface.

See Also:
StdServiceManager

Method Summary
 boolean addService(Service service)
          addService adds a Service to the ServiceManager.
 Service getService(java.lang.String name)
          getService retrieves a Service from the ServiceManager by name.
 java.lang.String[] listServices()
          listServices returns a list of available Service names.
 boolean removeService(Service service)
          removeService removes a Service from the ServiceManager.
 boolean startServices()
          startServices starts all of the available ServiceManager Services if they aren't already started.
 void stopServices()
          stopServices stops all of the available ServiceManager Services.
 

Method Detail

startServices

public boolean startServices()
startServices starts all of the available ServiceManager Services if they aren't already started.
Returns:
whether or not the Services could be started

stopServices

public void stopServices()
stopServices stops all of the available ServiceManager Services.

addService

public boolean addService(Service service)
addService adds a Service to the ServiceManager.
Parameters:
service - the Service to add
Returns:
whether or not the Service could be added

removeService

public boolean removeService(Service service)
removeService removes a Service from the ServiceManager.
Parameters:
service - the Service to remove
Returns:
whether or not the Service could be removed

listServices

public java.lang.String[] listServices()
listServices returns a list of available Service names.
Returns:
the Service list

getService

public Service getService(java.lang.String name)
getService retrieves a Service from the ServiceManager by name.
Parameters:
name - the Service name
Returns:
the retrieved Service

Xindice API

Copyright (c) 1999-2001 The Apache Software Foundation