com.sibvisions.rad.server
Class Monitoring

java.lang.Object
  extended by com.sibvisions.rad.server.Monitoring
All Implemented Interfaces:
ISessionListener

public final class Monitoring
extends Object
implements ISessionListener

The Monitoring class will be used as server-side object for administer the communication server.

The object must be injected to a life-cycle object before it's usable.
You can inject the object with the following definition

 @Inject(origin = "server", name = "monitoring")
 private Monitoring monitoring = null;
 


Constructor Summary
Monitoring(Server pServer)
          Creates an instance of Monitoring for a special communication server.
 
Method Summary
 void closeConnections(String pApplicationName)
          Close all connections for a specific application.
 Object getLastDestroyedSessionId()
          Gets the id of the last destroyed session.
 int getSessionCount()
          Gets the number of opened sessions.
 ArrayUtil<Object> getSessionIds()
          Gets the session identifiers of all currently opened sessions.
 void releaseSecurityManager(String pApplicationName)
          Releases the security manger for a specific application.
 void sessionCreated(ISession pSession)
          Invoked when a session was created and is ready to use.
 void sessionDestroyed(ISession pSession)
          Invoked when a session was destroyed an can not be used anymore.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Monitoring

public Monitoring(Server pServer)
Creates an instance of Monitoring for a special communication server.

Parameters:
pServer - the communication server
Method Detail

sessionCreated

public void sessionCreated(ISession pSession)
Invoked when a session was created and is ready to use.

Specified by:
sessionCreated in interface ISessionListener
Parameters:
pSession - the newly created session

sessionDestroyed

public void sessionDestroyed(ISession pSession)
Invoked when a session was destroyed an can not be used anymore.

Specified by:
sessionDestroyed in interface ISessionListener
Parameters:
pSession - the destroyed session

getSessionCount

public int getSessionCount()
Gets the number of opened sessions.

Returns:
session count

getLastDestroyedSessionId

public Object getLastDestroyedSessionId()
Gets the id of the last destroyed session.

Returns:
the session identifier or null if no session was destroyed

getSessionIds

public ArrayUtil<Object> getSessionIds()
Gets the session identifiers of all currently opened sessions.

Returns:
a list with session identifiers

closeConnections

public void closeConnections(String pApplicationName)
Close all connections for a specific application.

Parameters:
pApplicationName - the application name

releaseSecurityManager

public void releaseSecurityManager(String pApplicationName)
Releases the security manger for a specific application.

Parameters:
pApplicationName - the application name.


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.