edu.webfoot.vnc.editor
Class VNCSessionManager
java.lang.Object
edu.webfoot.vnc.editor.VNCSessionManager
public class VNCSessionManager
- extends java.lang.Object
Manages sessions of VNCClients.
This keeps track of all of the sessions in one logical place.
Prevents multiple sessions from being spawned to the same host::port.
- Author:
- Ken Breeman (kbreeman@wpi.edu), Eric Griffel (sniffels@wpi.edu)
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getInstance
public static VNCSessionManager getInstance()
- This is a singleton. There can only be one. Manages all of the VNC
sessions, each session is identified by host:port.
- Returns:
- The singleton instance.
hostToId
public static java.lang.String hostToId(java.lang.String host)
getSession
public VNCViewer getSession(java.lang.String name)
addSession
public void addSession(java.lang.String hostport,
java.lang.String pass)
throws java.lang.Exception
- Throws:
java.lang.Exception
killSession
public void killSession(java.lang.String hostport)
killAllSessions
public void killAllSessions()