|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.oddjob.jmx.server.OddjobMBeanFactory
public class OddjobMBeanFactory
A factory for producing OddjobMBeans. The MBean names are just sequential formatted numbers. The root name is created with the 0 number.
| Constructor Summary | |
|---|---|
OddjobMBeanFactory(MBeanServer server)
Constructor. |
|
| Method Summary | |
|---|---|
ObjectName |
createMBeanFor(Object obj,
ServerContext context)
Create an MBean and register with the server using the generated name. |
void |
destroy(ObjectName objName)
Remove a bean from the server. |
ObjectName |
nameFor(Object object)
|
Object |
objectFor(ObjectName objectName)
|
static ObjectName |
objectName(int sequence)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OddjobMBeanFactory(MBeanServer server)
server - The server to register newly created beans with.| Method Detail |
|---|
public ObjectName createMBeanFor(Object obj,
ServerContext context)
throws JMException
createMBeanFor in interface ServerSessionobj - The object the MBean is wrapping.
JMException - If the MBean fails to register.
public void destroy(ObjectName objName)
throws JMException
destroy in interface ServerSessionobjName - The bean.
JMExceptionpublic static ObjectName objectName(int sequence)
public ObjectName nameFor(Object object)
nameFor in interface ObjectNamespublic Object objectFor(ObjectName objectName)
objectFor in interface ObjectNames
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||