|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.mx.util.JBossNotificationBroadcasterSupport 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
Nested Class Summary | |
class |
ServiceController.ServiceProxy
An implementation of InvocationHandler used to proxy of the Service interface for mbeans. |
Field Summary | |
protected ServiceConfigurator |
configurator
Configurator, helper class to configure MBeans |
protected ServiceCreator |
creator
Creator, helper class to instantiate MBeans |
static javax.management.ObjectName |
DEFAULT_LOADER_REPOSITORY
|
protected List |
installedServices
A linked list of services in the order they were created |
static String |
JBOSS_INTERNAL_LIFECYCLE
The operation name for lifecycle |
static String[] |
JBOSS_INTERNAL_LIFECYCLE_SIG
The signature for lifecycle operations |
protected Map |
nameToServiceMap
Object Name to Service Proxy map |
Fields inherited from interface org.jboss.system.ServiceControllerMBean |
OBJECT_NAME |
Constructor Summary | |
ServiceController()
|
Method Summary | |
void |
create(javax.management.ObjectName serviceName)
#Description of the Method |
void |
create(javax.management.ObjectName serviceName,
Collection depends)
#Description of the Method |
void |
destroy(javax.management.ObjectName serviceName)
#Description of the Method |
ServiceContext |
getServiceContext(javax.management.ObjectName serviceName)
Lookup the ServiceContext for the given serviceName |
List |
install(Element config,
javax.management.ObjectName 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 |
String |
listConfiguration(javax.management.ObjectName[] objectNames)
Gets the Configuration attribute of the ServiceController object |
List |
listDeployed()
Lists the ServiceContexts of deployed mbeans |
List |
listDeployedNames()
lists ObjectNames of deployed mbeans deployed through serviceController. |
List |
listIncompletelyDeployed()
The listIncompletelyDeployed method returns the service contexts for
the mbeans whose status is not RUNNING, and logs the string. |
void |
postDeregister()
|
void |
postRegister(Boolean registrationDone)
|
void |
preDeregister()
|
javax.management.ObjectName |
preRegister(javax.management.MBeanServer server,
javax.management.ObjectName name)
#Description of the Method |
void |
register(javax.management.ObjectName serviceName)
Register the mbean against the microkernel with no dependencies. |
void |
register(javax.management.ObjectName serviceName,
Collection depends)
|
void |
remove(javax.management.ObjectName objectName)
This MBean is going buh bye |
void |
restart(javax.management.ObjectName serviceName)
Stops and restarts the given service |
void |
shutdown()
Describe shutdown method here. |
void |
start(javax.management.ObjectName serviceName)
Starts the indicated service |
void |
stop(javax.management.ObjectName serviceName)
Stop the given service |
void |
validateDeploymentState(DeploymentInfo di,
DeploymentState 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 |
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 javax.management.ObjectName DEFAULT_LOADER_REPOSITORY
public static final String JBOSS_INTERNAL_LIFECYCLE
public static final String[] JBOSS_INTERNAL_LIFECYCLE_SIG
protected ServiceCreator creator
protected ServiceConfigurator configurator
protected Map nameToServiceMap
protected List installedServices
Constructor Detail |
public ServiceController()
Method Detail |
public List listDeployed()
listDeployed
in interface ServiceControllerMBean
public List listIncompletelyDeployed()
listIncompletelyDeployed
method returns the service contexts for
the mbeans whose status is not RUNNING, and logs the string.
listIncompletelyDeployed
in interface ServiceControllerMBean
List
valuepublic List listDeployedNames()
listDeployedNames
in interface ServiceControllerMBean
public String listConfiguration(javax.management.ObjectName[] objectNames) throws Exception
listConfiguration
in interface ServiceControllerMBean
objectNames
- Description of Parameter
Exception
- Description of Exceptionpublic void validateDeploymentState(DeploymentInfo di, DeploymentState state)
validateDeploymentState
in interface ServiceControllerMBean
public List install(Element config, javax.management.ObjectName loaderName) throws DeploymentException
install
in interface ServiceControllerMBean
config
- loaderName
-
DeploymentException
public void register(javax.management.ObjectName serviceName) throws Exception
register
in interface ServiceControllerMBean
Exception
register(ObjectName, java.util.Collection)
public void register(javax.management.ObjectName serviceName, Collection depends) throws Exception
register
in interface ServiceControllerMBean
Exception
#register(ServiceContext, java.util.Collection)
public void create(javax.management.ObjectName serviceName) throws Exception
create
in interface ServiceControllerMBean
serviceName
- Description of Parameter
Exception
- Description of Exceptionpublic void create(javax.management.ObjectName serviceName, Collection depends) throws Exception
create
in interface ServiceControllerMBean
serviceName
- Description of Parameter
Exception
- Description of Exceptionpublic void start(javax.management.ObjectName serviceName) throws Exception
start
in interface ServiceControllerMBean
serviceName
- Description of Parameter
Exception
- Description of Exceptionpublic void restart(javax.management.ObjectName serviceName) throws Exception
restart
in interface ServiceControllerMBean
serviceName
- Description of Parameter
Exception
- Description of Exceptionpublic void stop(javax.management.ObjectName serviceName) throws Exception
stop
in interface ServiceControllerMBean
serviceName
- Description of Parameter
Exception
- Description of Exceptionpublic void destroy(javax.management.ObjectName serviceName) throws Exception
destroy
in interface ServiceControllerMBean
serviceName
- Description of Parameter
Exception
- Description of Exceptionpublic void remove(javax.management.ObjectName objectName) throws Exception
remove
in interface ServiceControllerMBean
objectName
- Description of Parameter
Exception
- Description of Exceptionpublic void shutdown()
shutdown
method here.
shutdown
in interface ServiceControllerMBean
public javax.management.ObjectName preRegister(javax.management.MBeanServer server, javax.management.ObjectName name) throws Exception
preRegister
in interface javax.management.MBeanRegistration
server
- Description of Parametername
- Description of Parameter
Exception
- Description of Exceptionpublic void postRegister(Boolean registrationDone)
postRegister
in interface javax.management.MBeanRegistration
public void preDeregister() throws Exception
preDeregister
in interface javax.management.MBeanRegistration
Exception
public void postDeregister()
postDeregister
in interface javax.management.MBeanRegistration
public ServiceContext getServiceContext(javax.management.ObjectName serviceName)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |