|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.services.binding.ServiceBindingManager
The services configuration binding manager mbean implementation.
The ServiceBindingManager enables the centralized management of ports, by service. The port configuration store is abstracted out using the ServicesStore and ServicesStoreFactory interfaces. Note that this class does not implement the JBoss services lifecycle methods and hook its behavior off of those because this service is used to configure other services before any of the lifecycle methods are invoked.
Constructor Summary | |
ServiceBindingManager()
|
Method Summary | |
void |
applyServiceConfig(ObjectName (src) serviceName)
Looks up the service config for the requested service using the server name bound to this mbean and invokes the configuration delegate to apply the bindings to the service. |
java.lang.String |
getServerName()
|
ServiceConfig (src) |
getServiceConfig(ObjectName (src) serviceName)
Looks up the service config for the given service using the server name bound to this mbean. |
java.lang.String |
getStoreFactoryClassName()
|
java.net.URL |
getStoreURL()
|
void |
postDeregister()
This method is called by the MBeanServer after deregistration takes place. |
void |
postRegister(java.lang.Boolean registrationDone)
This method is called by the MBeanServer after registration takes place or when registration fails. |
void |
preDeregister()
This method is called by the MBeanServer before deregistration takes place. |
ObjectName (src) |
preRegister(MBeanServer (src) server,
ObjectName (src) name)
This method is called by the MBeanServer before registration takes place. |
void |
setServerName(java.lang.String serverName)
|
void |
setStoreFactoryClassName(java.lang.String storeFactoryClassName)
|
void |
setStoreURL(java.net.URL storeURL)
Set the string representation of the store URL |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ServiceBindingManager()
Method Detail |
public java.lang.String getServerName()
public void setServerName(java.lang.String serverName)
public java.lang.String getStoreFactoryClassName()
public void setStoreFactoryClassName(java.lang.String storeFactoryClassName)
public java.net.URL getStoreURL()
public void setStoreURL(java.net.URL storeURL)
public ObjectName (src) preRegister(MBeanServer (src) server, ObjectName (src) name) throws java.lang.Exception
MBeanRegistration (src)
The MBean can stop the registration by throwing an exception.The exception is forwarded to the invoker wrapped in an MBeanRegistrationException.
preRegister
in interface MBeanRegistration (src)
java.lang.Exception
- for any error, the MBean is not registered.public void postRegister(java.lang.Boolean registrationDone)
MBeanRegistration (src)
postRegister
in interface MBeanRegistration (src)
registrationDone
- the MBeanServer passes true when the
MBean was registered, false otherwise.public void preDeregister() throws java.lang.Exception
MBeanRegistration (src)
The MBean can throw an exception, this will stop the deregistration. The exception is forwarded to the invoker wrapped in an MBeanRegistrationException.
preDeregister
in interface MBeanRegistration (src)
java.lang.Exception
public void postDeregister()
MBeanRegistration (src)
postDeregister
in interface MBeanRegistration (src)
public ServiceConfig (src) getServiceConfig(ObjectName (src) serviceName) throws java.lang.Exception
serviceName
- the JMX ObjectName of the service
java.lang.Exception
public void applyServiceConfig(ObjectName (src) serviceName) throws java.lang.Exception
serviceName
- the JMX ObjectName of the service
Exception,
- thrown on failure to apply an existing configuration
java.lang.Exception
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |