public interface ManagedProcessContext
ManagedProcess
.Modifier and Type | Method and Description |
---|---|
boolean |
continueProcessing()
Flags whether to continue processing.
|
String |
getProcessNamespace()
Obtains the name space for the
ManagedProcess . |
void |
registerMBean(Object mbean,
ObjectName name)
Registers a MBean.
|
String getProcessNamespace()
ManagedProcess
.ManagedProcess
.void registerMBean(Object mbean, ObjectName name) throws InstanceAlreadyExistsException, MBeanRegistrationException, NotCompliantMBeanException
Registers a MBean.
This is equivalent to corresponding MBeanServer
method except
that it also registers the MBean within the MBeanServer
in the
parent managing the Process
.
mbean
- MBean.name
- ObjectName
of the MBean.InstanceAlreadyExistsException
- The MBean is already under the control of the
MBeanServer
.MBeanRegistrationException
- Failure in registering the MBean.NotCompliantMBeanException
- This MBean is not a JMX compliant MBean.MBeanServer.registerMBean(Object, ObjectName)
boolean continueProcessing()
true
for the ManagedProcess
to continue
processing. false
to gracefully stop.Copyright © 2005–2016. All rights reserved.