public class ClientSessionImpl extends Object implements ClientSession
ClientSession
Constructor and Description |
---|
ClientSessionImpl(MBeanServerConnection serverConnection,
ScheduledExecutorService notificationProcessor,
ArooaSession arooaSession,
org.apache.log4j.Logger logger)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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.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