|
||||||||
| 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,
ArooaSession session)
Constructor. |
|
| Method Summary | |
|---|---|
ObjectName |
createMBeanFor(Object object,
ServerContext context)
Create an MBean and register with the server using the generated name. |
void |
destroy(ObjectName objName)
Remove a bean from the server. |
ArooaSession |
getArooaSession()
Get the session used by the server. |
ObjectName |
nameFor(Object object)
Get the object name for the give component object. |
Object |
objectFor(ObjectName objectName)
Get the client side component for the given object name. |
static ObjectName |
objectName(int sequence)
Helper function to build the object name from the sequence number. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OddjobMBeanFactory(MBeanServer server,
ArooaSession session)
server - The server to register newly created beans with.| Method Detail |
|---|
public ObjectName createMBeanFor(Object object,
ServerContext context)
throws JMException
createMBeanFor in interface ServerSessionobject - The object the MBean is wrapping.context - The context.
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)
sequence - The object sequence number.
public ObjectName nameFor(Object object)
ObjectNames
nameFor in interface ObjectNamesobject - The proxy.
public Object objectFor(ObjectName objectName)
ObjectNames
objectFor in interface ObjectNamesobjectName - The object name.
public ArooaSession getArooaSession()
ServerSession
getArooaSession in interface ServerSession
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||