org.oddjob.jmx.client
Class ClientSessionImpl

java.lang.Object
  extended by org.oddjob.jmx.client.ClientSessionImpl
All Implemented Interfaces:
ClientSession, ObjectNames

public class ClientSessionImpl
extends Object
implements ClientSession


Constructor Summary
ClientSessionImpl(MBeanServerConnection serverConnection, NotificationProcessor notificationProcessor, ArooaSession arooaSession, org.apache.log4j.Logger logger)
           
 
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.
 ArooaSession getArooaSession()
          Get the ArooaSession the client was created with.
 NotificationProcessor getNotificationProcessor()
           
 MBeanServerConnection getServerConnection()
           
 org.apache.log4j.Logger logger()
          The Client JOb Logger, visible in explorer.
 ObjectName nameFor(Object proxy)
           
 Object objectFor(ObjectName name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientSessionImpl

public ClientSessionImpl(MBeanServerConnection serverConnection,
                         NotificationProcessor notificationProcessor,
                         ArooaSession arooaSession,
                         org.apache.log4j.Logger logger)
Method Detail

create

public Object create(ObjectName objectName)
Description copied from interface: ClientSession
Create or find a previously created proxy for the JMX object name.

Specified by:
create in interface ClientSession
Parameters:
objectName - The JMX object name.
Returns:
The proxy. Never null.

nameFor

public ObjectName nameFor(Object proxy)
Specified by:
nameFor in interface ObjectNames

objectFor

public Object objectFor(ObjectName name)
Specified by:
objectFor in interface ObjectNames

destroy

public void destroy(Object proxy)
Description copied from interface: ClientSession
Destroy a client side proxy. Allows handlers to free resources.

Specified by:
destroy in interface ClientSession

getArooaSession

public ArooaSession getArooaSession()
Description copied from interface: ClientSession
Get the ArooaSession the client was created with.

Specified by:
getArooaSession in interface ClientSession
Returns:

logger

public org.apache.log4j.Logger logger()
Description copied from interface: ClientSession
The Client JOb Logger, visible in explorer.

Specified by:
logger in interface ClientSession
Returns:

getServerConnection

public MBeanServerConnection getServerConnection()

getNotificationProcessor

public NotificationProcessor getNotificationProcessor()