Package com.iizix.server
Interface IEndPoint
- All Known Implementing Classes:
AbstractEndPoint,ClientEndPoint,FailedReconnectClientEndPoint,LoadBalancerEndPoint,RemoteBuilderEndPoint,ServerSession,VirtualizedMonitorEndPoint,VSViewerEndPoint
public interface IEndPointInterface for Server End Points.- Author:
- Christopher Mindus
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classIEndPoint.TypeThe type of end-point.
Field Summary
Fields Modifier and Type Field Description static longDEFAULT_HEARTBEAT_INTERVALDefault heart-beat interval in milliseconds (20 seconds).static java.lang.StringSTORAGE_NAMELocal storage name in SessionInfo.
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description booleandispose()Disposes of the end point.java.lang.StringgetEndPointName()Gets the end point name.IEndPoint.TypegetEndPointType()Gets the end point type.ServerShellgetServer()Gets the server instance.longgetServerSessionID()Gets the Server Session ID.SessionInfogetSessionInfo()Gets the SessionInfo for this end point.static IEndPointgetSessionInstance()Gets the runtime application instance for the current thread in a client session.IServerWebSocketCommListenergetWebSocketCommListener(IWebSocketComm comm)Gets the WebSocketCommListener for the end point.
Field Detail
STORAGE_NAME
static final java.lang.String STORAGE_NAME
Local storage name in SessionInfo.
DEFAULT_HEARTBEAT_INTERVAL
static final long DEFAULT_HEARTBEAT_INTERVAL
Default heart-beat interval in milliseconds (20 seconds).- See Also:
- Constant Field Values
Method Detail
getSessionInstance
static IEndPoint getSessionInstance()
Gets the runtime application instance for the current thread in a client session.- Returns:
- The RuntimeApp instance when called from a thread of the client session,
nullotherwise.
getEndPointType
IEndPoint.Type getEndPointType()
Gets the end point type.- Returns:
- The endpoint type.
getEndPointName
java.lang.String getEndPointName()
Gets the end point name.- Returns:
- A short descriptive end-point type name.
getServerSessionID
long getServerSessionID()
Gets the Server Session ID.- Returns:
- The session ID.
getSessionInfo
SessionInfo getSessionInfo()
Gets the SessionInfo for this end point.- Returns:
- The SessionInfo instance.
getServer
ServerShell getServer()
Gets the server instance.- Returns:
- The server instance.
getWebSocketCommListener
IServerWebSocketCommListener getWebSocketCommListener(IWebSocketComm comm)
Gets the WebSocketCommListener for the end point.- Parameters:
comm- The WebSocket communication instance.- Returns:
- The WebSocket listener.
dispose
boolean dispose()
Disposes of the end point.- Returns:
- true if disposed, false if already disposed of.