|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ServiceController MBean interface.
Service
Field Summary | |
static javax.management.ObjectName |
OBJECT_NAME
The default ObjectName |
Method Summary | |
void |
create(javax.management.ObjectName serviceName)
Create a service |
void |
create(javax.management.ObjectName serviceName,
Collection depends)
Create a service with given dependencies |
void |
destroy(javax.management.ObjectName serviceName)
Destroy the indicated service |
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. |
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 CREATED,
RUNNING, STOPPED or DESTROYED. |
void |
register(javax.management.ObjectName serviceName)
Register the mbean against the microkernel with no dependencies. |
void |
register(javax.management.ObjectName serviceName,
Collection depends)
Register the mbean against the microkernel with dependencies. |
void |
remove(javax.management.ObjectName objectName)
This MBean is going bye bye |
void |
restart(javax.management.ObjectName serviceName)
Stops and restarts the indicated service |
void |
setServiceBinding(ServiceBinding serviceBinding)
Plugin a ServiceBinding policy |
void |
shutdown()
Describe shutdown method here. |
void |
start(javax.management.ObjectName serviceName)
Starts the indicated service |
void |
stop(javax.management.ObjectName serviceName)
Stop the indicated 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 |
Field Detail |
public static final javax.management.ObjectName OBJECT_NAME
Method Detail |
public void setServiceBinding(ServiceBinding serviceBinding)
serviceBinding
- policypublic List listDeployed()
public 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 List listDeployedNames()
public String listConfiguration(javax.management.ObjectName[] objectNames) throws Exception
objectNames
- Description of Parameter
Exception
- Description of Exceptionpublic void validateDeploymentState(DeploymentInfo di, DeploymentState state)
public List install(Element config, javax.management.ObjectName loaderName) throws DeploymentException
config
- loaderName
-
DeploymentException
public void register(javax.management.ObjectName serviceName) throws Exception
Exception
register(ObjectName, java.util.Collection)
public void register(javax.management.ObjectName serviceName, Collection depends) throws Exception
Exception
public void create(javax.management.ObjectName serviceName) throws Exception
serviceName
- Description of Parameter
Exception
- Description of Exceptionpublic void create(javax.management.ObjectName serviceName, Collection depends) throws Exception
serviceName
- Description of Parameter
Exception
- Description of Exceptionpublic void start(javax.management.ObjectName serviceName) throws Exception
serviceName
- Description of Parameter
Exception
- Description of Exceptionpublic void restart(javax.management.ObjectName serviceName) throws Exception
serviceName
- Description of Parameter
Exception
- Description of Exceptionpublic void stop(javax.management.ObjectName serviceName) throws Exception
serviceName
- Description of Parameter
Exception
- Description of Exceptionpublic void destroy(javax.management.ObjectName serviceName) throws Exception
serviceName
- Description of Parameter
Exception
- Description of Exceptionpublic void remove(javax.management.ObjectName objectName) throws Exception
objectName
- Description of Parameter
Exception
- Description of Exceptionpublic void shutdown()
shutdown
method here.
public ServiceContext getServiceContext(javax.management.ObjectName serviceName)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |