Class SessionTracker
java.lang.Object
org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.websocket.javax.common.SessionTracker
- All Implemented Interfaces:
org.eclipse.jetty.util.component.Dumpable,org.eclipse.jetty.util.component.Graceful,org.eclipse.jetty.util.component.LifeCycle,JavaxWebSocketSessionListener
public class SessionTracker
extends org.eclipse.jetty.util.component.AbstractLifeCycle
implements JavaxWebSocketSessionListener, org.eclipse.jetty.util.component.Graceful, org.eclipse.jetty.util.component.Dumpable
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.util.component.AbstractLifeCycle.AbstractLifeCycleListener, org.eclipse.jetty.util.component.AbstractLifeCycle.StopExceptionNested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Dumpable
org.eclipse.jetty.util.component.Dumpable.DumpableContainerNested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Graceful
org.eclipse.jetty.util.component.Graceful.Shutdown, org.eclipse.jetty.util.component.Graceful.ThrowingRunnableNested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
org.eclipse.jetty.util.component.LifeCycle.Listener -
Field Summary
Fields inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
FAILED, STARTED, STARTING, STOPPED, STOPPINGFields inherited from interface org.eclipse.jetty.util.component.Dumpable
KEY -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
addEventListener, getEventListeners, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeEventListener, setEventListeners, start, stop, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.jetty.util.component.Dumpable
dump, dumpSelfMethods inherited from interface org.eclipse.jetty.websocket.javax.common.JavaxWebSocketSessionListener
onJavaxWebSocketSessionCreated
-
Constructor Details
-
SessionTracker
public SessionTracker()
-
-
Method Details
-
getSessions
-
onJavaxWebSocketSessionOpened
- Specified by:
onJavaxWebSocketSessionOpenedin interfaceJavaxWebSocketSessionListener
-
onJavaxWebSocketSessionClosed
- Specified by:
onJavaxWebSocketSessionClosedin interfaceJavaxWebSocketSessionListener
-
doStart
- Overrides:
doStartin classorg.eclipse.jetty.util.component.AbstractLifeCycle- Throws:
Exception
-
doStop
- Overrides:
doStopin classorg.eclipse.jetty.util.component.AbstractLifeCycle- Throws:
Exception
-
shutdown
- Specified by:
shutdownin interfaceorg.eclipse.jetty.util.component.Graceful
-
isShutdown
public boolean isShutdown()- Specified by:
isShutdownin interfaceorg.eclipse.jetty.util.component.Graceful
-
getNumSessions
@ManagedAttribute("Total number of active WebSocket Sessions") public int getNumSessions() -
dump
- Specified by:
dumpin interfaceorg.eclipse.jetty.util.component.Dumpable- Throws:
IOException
-