Package com.iizix.term.server
Class TerminalSessionManager
java.lang.Object
com.iizix.term.server.TerminalSessionManager
The terminal session manager is a server environment instance running for a server that keeps track of the terminal sessions for all active sessions in that server environment.
- Author:
- Christopher Mindus
- Constructor SummaryConstructors
- Method SummaryModifier and TypeMethodDescription- void- assignSessions- (SessionsProp sessionsProp) Assigns the cloned sessions property.- void- dispose()Disposes of the instance.- booleanChecks if the instance has been disposed of.- voidCalled when an application is instantiated and started by a user session.- voidCalled when an application session is stopped.- void- onAppSessionEndPoint- (EndPointPropCnr cnr, AppSessionGyro appGyro) Called when a new end point property container is added for a server monitor instance.
- Constructor Details- TerminalSessionManagerpublic TerminalSessionManager()Creates a new instance of the session manager.
 
- Method Details- assignSessionsAssigns the cloned sessions property.- Parameters:
- sessionsProp- The configured sessions properties.
- Throws:
- IllegalStateException- If already assigned.
 
- isDisposedpublic boolean isDisposed()Checks if the instance has been disposed of.- Returns:
- true if disposed.
 
- disposepublic void dispose()Disposes of the instance. When called, all remaining app sessions are disposed of. Normally this should already have been done by the server.
- onApplicationSessionStartedCalled when an application is instantiated and started by a user session.- Parameters:
- appGyro- The session started.
 
- onApplicationSessionStoppedCalled when an application session is stopped.- Parameters:
- appGyro- The session stopped.
 
- onAppSessionEndPointCalled when a new end point property container is added for a server monitor instance. This is delegated to the plug-ins in the application's server environment in order to enable them to add information for the application session.- Parameters:
- cnr- The container for the end point.
- appGyro- The application session gyro of the end point.