|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.mx.util.JBossNotificationBroadcasterSupport (src)
org.jboss.system.ServiceController
This is the main Service Controller. A controller can deploy a service to a jboss.system It installs by delegating, it configures by delegating
Service
(src) Nested Class Summary | |
class |
ServiceController.ServiceProxy (src)
An implementation of InvocationHandler used to proxy of the Service interface for mbeans. |
Field Summary | |
protected ServiceConfigurator (src) |
configurator
Configurator, helper class to configure MBeans |
protected ServiceCreator (src) |
creator
Creator, helper class to instantiate MBeans |
static ObjectName (src) |
DEFAULT_LOADER_REPOSITORY
|
protected java.util.List |
installedServices
A linked list of services in the order they were created |
static java.lang.String |
JBOSS_INTERNAL_LIFECYCLE
The operation name for lifecycle |
static java.lang.String[] |
JBOSS_INTERNAL_LIFECYCLE_SIG
The signature for lifecycle operations |
protected java.util.Map |
nameToServiceMap
Object Name to Service Proxy map |
Constructor Summary | |
ServiceController()
|
Method Summary | |
void |
create(ObjectName (src) serviceName)
#Description of the Method |
void |
create(ObjectName (src) serviceName,
java.util.Collection depends)
#Description of the Method |
void |
destroy(ObjectName (src) serviceName)
#Description of the Method |
ServiceContext (src) |
getServiceContext(ObjectName (src) serviceName)
Lookup the ServiceContext for the given serviceName |
java.util.List |
install(org.w3c.dom.Element config,
ObjectName (src) loaderName)
Deploy the beans Deploy means "instantiate and configure" so the MBean is created in the MBeanServer You must call "create" and "start" separately on the MBean to affect the service lifecycle deploy doesn't bother with service lifecycle only MBean instanciation/registration/configuration |
java.lang.String |
listConfiguration(ObjectName (src) [] objectNames)
Gets the Configuration attribute of the ServiceController object |
java.util.List |
listDeployed()
Lists the ServiceContexts of deployed mbeans |
java.util.List |
listDeployedNames()
lists ObjectNames of deployed mbeans deployed through serviceController. |
java.util.List |
listIncompletelyDeployed()
The listIncompletelyDeployed method returns the service contexts
for the mbeans whose status is not CREATED, RUNNING, STOPPED or DESTROYED. |
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)
#Description of the Method |
void |
register(ObjectName (src) serviceName)
Register the mbean against the microkernel with no dependencies. |
void |
register(ObjectName (src) serviceName,
java.util.Collection depends)
|
void |
remove(ObjectName (src) objectName)
This MBean is going buh bye |
void |
restart(ObjectName (src) serviceName)
Stops and restarts the given service |
void |
shutdown()
Describe shutdown method here. |
void |
start(ObjectName (src) serviceName)
Starts the indicated service |
void |
stop(ObjectName (src) serviceName)
Stop the given service |
void |
validateDeploymentState(DeploymentInfo (src) di,
DeploymentState (src) state)
Go through the mbeans of the DeploymentInfo and validate that they are in a state at least equal to that of the argument state |
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport (src) |
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final ObjectName (src) DEFAULT_LOADER_REPOSITORY
public static final java.lang.String JBOSS_INTERNAL_LIFECYCLE
public static final java.lang.String[] JBOSS_INTERNAL_LIFECYCLE_SIG
protected ServiceCreator (src) creator
protected ServiceConfigurator (src) configurator
protected java.util.Map nameToServiceMap
protected java.util.List installedServices
Constructor Detail |
public ServiceController()
Method Detail |
public java.util.List listDeployed()
public java.util.List listIncompletelyDeployed()
listIncompletelyDeployed
method returns the service contexts
for the mbeans whose status is not CREATED, RUNNING, STOPPED or DESTROYED.
An MBean that has reached one of the above states has its dependencies resolved.
public java.util.List listDeployedNames()
public java.lang.String listConfiguration(ObjectName (src) [] objectNames) throws java.lang.Exception
objectNames
- Description of Parameter
java.lang.Exception
- Description of Exceptionpublic void validateDeploymentState(DeploymentInfo (src) di, DeploymentState (src) state)
public java.util.List install(org.w3c.dom.Element config, ObjectName (src) loaderName) throws DeploymentException (src)
config
- loaderName
-
DeploymentException (src)
public void register(ObjectName (src) serviceName) throws java.lang.Exception
java.lang.Exception
register(ObjectName, java.util.Collection)
public void register(ObjectName (src) serviceName, java.util.Collection depends) throws java.lang.Exception
java.lang.Exception
#register(ServiceContext, java.util.Collection)
public void create(ObjectName (src) serviceName) throws java.lang.Exception
serviceName
- Description of Parameter
java.lang.Exception
- Description of Exceptionpublic void create(ObjectName (src) serviceName, java.util.Collection depends) throws java.lang.Exception
serviceName
- Description of Parameter
java.lang.Exception
- Description of Exceptionpublic void start(ObjectName (src) serviceName) throws java.lang.Exception
serviceName
- Description of Parameter
java.lang.Exception
- Description of Exceptionpublic void restart(ObjectName (src) serviceName) throws java.lang.Exception
serviceName
- Description of Parameter
java.lang.Exception
- Description of Exceptionpublic void stop(ObjectName (src) serviceName) throws java.lang.Exception
serviceName
- Description of Parameter
java.lang.Exception
- Description of Exceptionpublic void destroy(ObjectName (src) serviceName) throws java.lang.Exception
serviceName
- Description of Parameter
java.lang.Exception
- Description of Exceptionpublic void remove(ObjectName (src) objectName) throws java.lang.Exception
objectName
- Description of Parameter
java.lang.Exception
- Description of Exceptionpublic void shutdown()
shutdown
method here.
public ObjectName (src) preRegister(MBeanServer (src) server, ObjectName (src) name) throws java.lang.Exception
preRegister
in interface MBeanRegistration (src)
server
- Description of Parametername
- Description of Parameter
java.lang.Exception
- Description of Exceptionpublic 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 ServiceContext (src) getServiceContext(ObjectName (src) serviceName)
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |