public class ClientSessionImpl extends java.lang.Object implements ClientSession
ClientSession
Constructor and Description |
---|
ClientSessionImpl(javax.management.MBeanServerConnection serverConnection,
java.util.concurrent.ScheduledExecutorService notificationProcessor,
ClientInterfaceManagerFactory interfaceManagerFactory,
ArooaSession arooaSession,
org.slf4j.Logger logger)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
create(long remoteId)
Create or find a previously created proxy for
the JMX object name.
|
void |
destroy(java.lang.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. |
ClientInterfaceManagerFactory |
getInterfaceManagerFactory() |
java.util.concurrent.ScheduledExecutorService |
getNotificationProcessor() |
javax.management.MBeanServerConnection |
getServerConnection() |
long |
idFor(java.lang.Object proxy)
Get the remote Id for the give component object.
|
org.slf4j.Logger |
logger()
The Client JOb Logger, visible in explorer.
|
java.lang.Object |
objectFor(long objectId)
Get the component for the given remote Id.
|
public ClientSessionImpl(javax.management.MBeanServerConnection serverConnection, java.util.concurrent.ScheduledExecutorService notificationProcessor, ClientInterfaceManagerFactory interfaceManagerFactory, ArooaSession arooaSession, org.slf4j.Logger logger)
serverConnection
- The server connection.notificationProcessor
- The notification processor.arooaSession
- The local session.logger
- The logger.public java.lang.Object create(long remoteId)
ClientSession
create
in interface ClientSession
remoteId
- The JMX object name.public long idFor(java.lang.Object proxy)
RemoteIdMappings
idFor
in interface RemoteIdMappings
proxy
- The component.public java.lang.Object objectFor(long objectId)
RemoteIdMappings
objectFor
in interface RemoteIdMappings
objectId
- The remote Id.public void destroy(java.lang.Object proxy)
ClientSession
destroy
in interface ClientSession
public ArooaSession getArooaSession()
ClientSession
ArooaSession
the client was
created with.getArooaSession
in interface ClientSession
public org.slf4j.Logger logger()
ClientSession
logger
in interface ClientSession
public javax.management.MBeanServerConnection getServerConnection()
public java.util.concurrent.ScheduledExecutorService getNotificationProcessor()
public ClientInterfaceManagerFactory getInterfaceManagerFactory()
getInterfaceManagerFactory
in interface ClientSession
public void destroyAll()
ClientSession
destroyAll
in interface ClientSession