|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.oddjob.jmx.client.ClientNode
The client side representation of a remote node. A proxy is used to implement a mirror of the remote node. This class is the invocation handler for that proxy. This class is never accessed directly by client code.
On creation the client node will lookup up various things on the server on configure the proxy, register for notifications and start a resync.
It is possible that a serverside node has bean created and destroyed and that the client hasn't caught up. In this case dead placeholder nodes are put in the tree. They should be short lived, and removed when the client catches up with the notifications.
| Nested Class Summary | |
class |
ClientNode.ClientListener
Member class which listens for notifications coming across the network. |
class |
ClientNode.DeadNode
Used in place of a proxy if the remote node has dissappeared before all notifications have caught up. |
| Method Summary | |
void |
addIconListener(IconListener listener)
|
void |
addJobStateListener(JobStateListener listener)
Add a job state listener. |
void |
addStructuralListener(StructuralListener listener)
|
java.lang.String |
consoleId()
Get the consoleId which has been saved from the remote OddjobMBean. |
protected static java.lang.Object |
createProxyFor(javax.management.ObjectName objectName,
ClientNode parent)
|
static java.lang.Object |
createProxyFor(javax.management.ObjectName objectName,
javax.management.MBeanServerConnection serverConnection,
java.lang.Object linkNode,
ComponentRegistry parentRegistry,
NotificationProcessor notificationProcessor)
Static factory method. |
void |
destroy()
Destroy this node. |
boolean |
equals(java.lang.Object other)
|
Transportable |
exportTransportable()
Part of the implementation of the HostRelative interface. |
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
Called by the proxy to invoke a method. |
void |
removeIconListener(IconListener listener)
|
void |
removeJobStateListener(JobStateListener listener)
Remove a job state listener. |
void |
removeStructuralListener(StructuralListener listener)
|
LogEvent[] |
retrieveConsoleEvents(long from,
int max)
|
LogEvent[] |
retrieveLogEvents(long from,
int max)
|
java.lang.String |
toString()
|
java.lang.String |
url()
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
public static java.lang.Object createProxyFor(javax.management.ObjectName objectName,
javax.management.MBeanServerConnection serverConnection,
java.lang.Object linkNode,
ComponentRegistry parentRegistry,
NotificationProcessor notificationProcessor)
throws javax.management.JMException,
java.io.IOException
objectName - The remote node.serverConnection - The server connection.
java.rmi.RemoteException
javax.management.JMException
java.io.IOException
protected static java.lang.Object createProxyFor(javax.management.ObjectName objectName,
ClientNode parent)
throws javax.management.JMException,
java.io.IOException
objectName - parent -
javax.management.JMException
java.io.IOExceptionpublic java.lang.String toString()
public java.lang.Object invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
throws java.lang.Exception
invoke in interface java.lang.reflect.InvocationHandlerjava.lang.Exceptionpublic void addJobStateListener(JobStateListener listener)
listener - The job state listener.public void removeJobStateListener(JobStateListener listener)
listener - The job state listener.public void addIconListener(IconListener listener)
public void removeIconListener(IconListener listener)
public void addStructuralListener(StructuralListener listener)
public void removeStructuralListener(StructuralListener listener)
public LogEvent[] retrieveLogEvents(long from,
int max)
public LogEvent[] retrieveConsoleEvents(long from,
int max)
public java.lang.String consoleId()
public java.lang.String url()
public boolean equals(java.lang.Object other)
public void destroy()
public Transportable exportTransportable()
exportTransportable in interface Exportable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||