public class OddjobMBean
extends javax.management.NotificationBroadcasterSupport
implements javax.management.DynamicMBean
Once the bean is created it will sit and wait for clients to interrogate it. When a client accesses the bean it should call the resync method which will cause the bean to resend the notifications necessary to recreate in the client, the state of the bean. During the resync the InterfaceHandlers should block any any more changes until the resync has completed.
Constructor and Description |
---|
OddjobMBean(java.lang.Object node,
long objectId,
ServerSession factory,
ServerContext srvcon)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Destroy this node.
|
java.lang.Object |
getAttribute(java.lang.String attribute) |
javax.management.AttributeList |
getAttributes(java.lang.String[] attributes) |
javax.management.MBeanInfo |
getMBeanInfo() |
java.lang.Object |
getNode() |
javax.management.MBeanNotificationInfo[] |
getNotificationInfo() |
javax.management.ObjectName |
getObjectName() |
java.lang.Object |
invoke(java.lang.String actionName,
java.lang.Object[] params,
java.lang.String[] signature) |
void |
setAttribute(javax.management.Attribute attribute) |
javax.management.AttributeList |
setAttributes(javax.management.AttributeList attributes) |
java.lang.String |
toString() |
public OddjobMBean(java.lang.Object node, long objectId, ServerSession factory, ServerContext srvcon)
node
- The job this is shadowing.objectId
- The object Id for this node.factory
- The factory for creating child OddjobMBeans. May be null only
if this MBean will never have children.srvcon
- The server context The server context. Must not be null.java.rmi.RemoteException
public java.lang.Object getNode()
public javax.management.ObjectName getObjectName()
public java.lang.Object getAttribute(java.lang.String attribute) throws javax.management.ReflectionException, javax.management.MBeanException
getAttribute
in interface javax.management.DynamicMBean
javax.management.ReflectionException
javax.management.MBeanException
public void setAttribute(javax.management.Attribute attribute) throws javax.management.ReflectionException, javax.management.MBeanException
setAttribute
in interface javax.management.DynamicMBean
javax.management.ReflectionException
javax.management.MBeanException
public javax.management.AttributeList getAttributes(java.lang.String[] attributes)
getAttributes
in interface javax.management.DynamicMBean
public javax.management.AttributeList setAttributes(javax.management.AttributeList attributes)
setAttributes
in interface javax.management.DynamicMBean
public java.lang.Object invoke(java.lang.String actionName, java.lang.Object[] params, java.lang.String[] signature) throws javax.management.MBeanException, javax.management.ReflectionException
invoke
in interface javax.management.DynamicMBean
javax.management.MBeanException
javax.management.ReflectionException
public javax.management.MBeanInfo getMBeanInfo()
getMBeanInfo
in interface javax.management.DynamicMBean
public javax.management.MBeanNotificationInfo[] getNotificationInfo()
getNotificationInfo
in interface javax.management.NotificationBroadcaster
getNotificationInfo
in class javax.management.NotificationBroadcasterSupport
public void destroy()
public java.lang.String toString()
toString
in class java.lang.Object