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 java.lang.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 specific communication server.
 
Method Summary
 void closeConnections(java.lang.String pApplicationName)
          Close all connections for a specific application.
 java.lang.Object getLastDestroyedSessionId()
          Gets the id of the last destroyed session.
 ArrayUtil<java.lang.Object> getMasterSessionIds()
          Gets all available master session ids.
 ArrayUtil<java.lang.Object> getMasterSessionIds(java.lang.String pApplicationName)
          Gets all available master session ids for a specific application.
 long getServerStartupTime()
          Gets the startup time of the server.
 int getSessionCount()
          Gets the number of opened sessions.
 ArrayUtil<java.lang.Object> getSessionIds()
          Gets the session identifiers of all currently opened sessions.
 ArrayUtil<java.lang.Object> getSubSessionIds(java.lang.Object pSessionId)
          Gets all available sub sessions for the given master session.
 void releaseSecurityManager(java.lang.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 specific 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

getServerStartupTime

public long getServerStartupTime()
Gets the startup time of the server.

Returns:
the startup time

getSessionCount

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

Returns:
session count

getLastDestroyedSessionId

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

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

getSessionIds

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

Returns:
a list with session identifiers

getMasterSessionIds

public ArrayUtil<java.lang.Object> getMasterSessionIds()
Gets all available master session ids.

Returns:
the list of currently available master session ids

getMasterSessionIds

public ArrayUtil<java.lang.Object> getMasterSessionIds(java.lang.String pApplicationName)
Gets all available master session ids for a specific application.

Parameters:
pApplicationName - the application name
Returns:
the list of currently available master session ids

getSubSessionIds

public ArrayUtil<java.lang.Object> getSubSessionIds(java.lang.Object pSessionId)
Gets all available sub sessions for the given master session.

Parameters:
pSessionId - the master session id
Returns:
the list of available sub session ids

closeConnections

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

Parameters:
pApplicationName - the application name

releaseSecurityManager

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

Parameters:
pApplicationName - the application name.


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.