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 Summary
Method Summary
Modifier and TypeMethodDescriptionvoid
assignSessions
(SessionsProp sessionsProp) Assigns the cloned sessions property.void
dispose()
Disposes of the instance.boolean
Checks if the instance has been disposed of.void
Called when an application is instantiated and started by a user session.void
Called 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
TerminalSessionManager
public TerminalSessionManager()Creates a new instance of the session manager.
Method Details
assignSessions
Assigns the cloned sessions property.- Parameters:
sessionsProp
- The configured sessions properties.- Throws:
IllegalStateException
- If already assigned.
isDisposed
public boolean isDisposed()Checks if the instance has been disposed of.- Returns:
- true if disposed.
dispose
public 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.onApplicationSessionStarted
Called when an application is instantiated and started by a user session.- Parameters:
appGyro
- The session started.
onApplicationSessionStopped
Called when an application session is stopped.- Parameters:
appGyro
- The session stopped.
onAppSessionEndPoint
Called 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.