| org.jboss.services.binding.ServicesStore
All known Subclasses: org.jboss.services.binding.XMLServicesStore,
ServicesStore | public interface ServicesStore (Code) | | Interface for API to persist, read, and look up service configs
version: $Revision: 57210 $ author: Mike Finn. author: Scott.Stark@jboss.org |
addService | public void addService(String serverName, ObjectName serviceName, ServiceConfig serviceConfig) throws DuplicateServiceException(Code) | | Add a ServiceConfig to the store. This is an optional method not used
by the JBoss service configuration layer.
Parameters: serverName - the name identifying the JBoss server instance inwhich the service is running. Parameters: serviceName - the JMX ObjectName of the service Parameters: serviceConfig - the configuration to add throws: DuplicateServiceException - thrown if a configuration for the pair already exists. |
getService | public ServiceConfig getService(String serverName, ObjectName serviceName)(Code) | | Obtain a ServiceConfig object for the given server instance and target
service JMX ObjectName. This is called by the JBoss service configuration
layer to obtain service attribute binding overrides.
Parameters: serverName - the name identifying the JBoss server instance inwhich the service is running. Parameters: serviceName - the JMX ObjectName of the service The ServiceConfig if one exists for the pair, null otherwise. |
load | public void load(URL storeURL) throws Exception(Code) | | Load the contents of a store.
Parameters: storeURL - the URL representing the location of the store exception: Exception - thrown on any failure to load the store |
removeService | public void removeService(String serverName, ObjectName serviceName)(Code) | | Remove a service configuration from the store. This is an optonal method
not used by the JBoss service configuration layer.
Parameters: serverName - the name identifying the JBoss server instance inwhich the service is running. Parameters: serviceName - the JMX ObjectName of the service |
store | public void store(URL storeURL) throws Exception(Code) | | Save the current store contents
Parameters: storeURL - the URL representing the location of the store exception: Exception - thrown on any failure to save the store |
|
|