Class ActiveTerminalSession

java.lang.Object
com.iizix.prop.GProp<GProp<?>[]>
com.iizix.prop.PropCnr
com.iizix.term.server.ActiveTerminalSession
All Implemented Interfaces:
EventListener, IGProp<GProp<?>[]>, IPropCnr, ITerminalStateListener, Cloneable
Direct Known Subclasses:
EditorActiveTerminalSession

public class ActiveTerminalSession extends PropCnr implements ITerminalStateListener
The container for an active terminal session for the terminal monitor of each client end-point.
Author:
Christopher Mindus
  • Field Details

    • NAMES

      protected static final String[] NAMES
      The list of terminal properties copied from TerminalProps.
    • REMOTE_EVENT_CONNECT

      protected static final int REMOTE_EVENT_CONNECT
      Connect host session remote event from monitor to server.
      See Also:
    • REMOTE_EVENT_DISCONNECT

      protected static final int REMOTE_EVENT_DISCONNECT
      Disconnect host session remote event from monitor to server.
      See Also:
    • REMOTE_EVENT_SUSPEND

      protected static final int REMOTE_EVENT_SUSPEND
      Suspends host session remote event from monitor to server.
      See Also:
    • REMOTE_EVENT_RESUME

      protected static final int REMOTE_EVENT_RESUME
      Resume host session remote event from monitor to server.
      See Also:
    • REMOTE_EVENT_CAPTURE

      protected static final int REMOTE_EVENT_CAPTURE
      Captures host screen remote event from monitor to server AND back.
      See Also:
    • REMOTE_EVENT_ERROR

      protected static final int REMOTE_EVENT_ERROR
      The remote event from server to monitor that a host session failed.
      See Also:
    • hostSessionProps

      protected HostSessionProps hostSessionProps
      The terminal properties instance when a session is created. The instance is created on the monitor (client) side and received on the server side. They do the communication of the terminal session.
  • Constructor Details

    • ActiveTerminalSession

      public ActiveTerminalSession()
      Constructor.
  • Method Details

    • onPropDispose

      protected void onPropDispose()
      Called when property is disposed of.
      Overrides:
      onPropDispose in class PropCnr
    • onEventSelf

      public void onEventSelf(GEvent event)
      Property events go here, and a new terminal session request is received from the monitor (client) side if the HostSessionProps are created. Removal of the remote terminal is also processed here.
      Specified by:
      onEventSelf in interface IGProp<GProp<?>[]>
      Overrides:
      onEventSelf in class GProp<GProp<?>[]>
      Parameters:
      event - The property event.
    • onRemoteEvent

      public void onRemoteEvent(RemoteEvent event)
      Processes remote events from the server monitor.
      Specified by:
      onRemoteEvent in interface IGProp<GProp<?>[]>
      Overrides:
      onRemoteEvent in class GProp<GProp<?>[]>
      Parameters:
      event - The remote event.
    • onConnectionStateChanged

      public void onConnectionStateChanged()
      Called when the terminal state has changed in regards to connected/connecting/closing/closed.
      Specified by:
      onConnectionStateChanged in interface ITerminalStateListener