org.oddjob.jmx.client
Interface ClientSideToolkit


public interface ClientSideToolkit

Provide tools to ClientInterfaceHandlerFactory to allow the handler of method invocations to do it's job.

Author:
rob

Method Summary
 ClientSession getClientSession()
          Get the client session.
<T> T
invoke(RemoteOperation<T> remoteOperation, Object... args)
          Invoke a remote operation.
 void registerNotificationListener(String eventType, NotificationListener notificationListener)
          Add a NotificationListener.
 void removeNotificationListener(String eventType, NotificationListener notificationListener)
          Remove a NotificationListener.
 

Method Detail

getClientSession

ClientSession getClientSession()
Get the client session.

Returns:

invoke

<T> T invoke(RemoteOperation<T> remoteOperation,
             Object... args)
         throws Throwable
Invoke a remote operation.

Type Parameters:
T - The return type of the operation.
Parameters:
remoteOperation -
args -
Returns:
Throws:
Throwable

registerNotificationListener

void registerNotificationListener(String eventType,
                                  NotificationListener notificationListener)
Add a NotificationListener.

Parameters:
eventType -
notificationListener -

removeNotificationListener

void removeNotificationListener(String eventType,
                                NotificationListener notificationListener)
Remove a NotificationListener.

Parameters:
eventType -
notificationListener -