org.oddjob.jmx.client
Interface ClientSession

All Superinterfaces:
ObjectNames
All Known Implementing Classes:
ClientSessionImpl

public interface ClientSession
extends ObjectNames

A facility shared by all client side handlers.

Author:
rob

Method Summary
 Object create(ObjectName objectName)
          Create or find a previously created proxy for the JMX object name.
 void destroy(Object proxy)
          Destroy a client side proxy.
 void destroyAll()
          Destroy all proxies on the client side.
 ArooaSession getArooaSession()
          Get the ArooaSession the client was created with.
 org.apache.log4j.Logger logger()
          The Client JOb Logger, visible in explorer.
 
Methods inherited from interface org.oddjob.jmx.ObjectNames
nameFor, objectFor
 

Method Detail

create

Object create(ObjectName objectName)
Create or find a previously created proxy for the JMX object name.

Parameters:
objectName - The JMX object name.
Returns:
The proxy. Never null.

destroy

void destroy(Object proxy)
Destroy a client side proxy. Allows handlers to free resources.

Parameters:
proxy -

getArooaSession

ArooaSession getArooaSession()
Get the ArooaSession the client was created with.

Returns:

logger

org.apache.log4j.Logger logger()
The Client JOb Logger, visible in explorer.

Returns:

destroyAll

void destroyAll()
Destroy all proxies on the client side.