|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.oddjob.jmx.client.ClientSessionImpl
public class ClientSessionImpl
Simple implementation of a ClientSession
Constructor Summary | |
---|---|
ClientSessionImpl(MBeanServerConnection serverConnection,
ScheduledExecutorService notificationProcessor,
ArooaSession arooaSession,
org.apache.log4j.Logger logger)
Constructor. |
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. |
ScheduledExecutorService |
getNotificationProcessor()
|
MBeanServerConnection |
getServerConnection()
|
org.apache.log4j.Logger |
logger()
The Client JOb Logger, visible in explorer. |
ObjectName |
nameFor(Object proxy)
Get the object name for the give component object. |
Object |
objectFor(ObjectName name)
Get the client side component for the given object name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClientSessionImpl(MBeanServerConnection serverConnection, ScheduledExecutorService notificationProcessor, ArooaSession arooaSession, org.apache.log4j.Logger logger)
serverConnection
- The server connection.notificationProcessor
- The notification processor.arooaSession
- The local session.logger
- The logger.Method Detail |
---|
public Object create(ObjectName objectName)
ClientSession
create
in interface ClientSession
objectName
- The JMX object name.
public ObjectName nameFor(Object proxy)
ObjectNames
nameFor
in interface ObjectNames
proxy
- The proxy.
public Object objectFor(ObjectName name)
ObjectNames
objectFor
in interface ObjectNames
name
- The object name.
public void destroy(Object proxy)
ClientSession
destroy
in interface ClientSession
public ArooaSession getArooaSession()
ClientSession
ArooaSession
the client was
created with.
getArooaSession
in interface ClientSession
public org.apache.log4j.Logger logger()
ClientSession
logger
in interface ClientSession
public MBeanServerConnection getServerConnection()
public ScheduledExecutorService getNotificationProcessor()
public void destroyAll()
ClientSession
destroyAll
in interface ClientSession
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |