Package com.iizix.server.loadbalancer
Class LoadBalancerEndPoint
java.lang.Object
com.iizix.server.AbstractEndPoint
com.iizix.server.loadbalancer.LoadBalancerEndPoint
- All Implemented Interfaces:
IServerWebSocketCommListener,ITransactionCreator,ITransactionSender,WebSocketCommListener,IEndPoint,IRootPropTransactionSender
The Load Balancer end point web socket connection.
- Author:
- Christopher Mindus
Nested Class Summary
Nested classes/interfaces inherited from interface com.iizix.server.IEndPoint
IEndPoint.TypeField Summary
Fields inherited from class com.iizix.server.AbstractEndPoint
DEBUG, endPointPropertyManager, endPointType, name, propTransSender, root, server, serverSessionID, sessionInfo, threadGroup, workerFields inherited from interface com.iizix.server.IEndPoint
DEFAULT_HEARTBEAT_INTERVAL, STORAGE_NAMEFields inherited from interface com.iizix.nio.WebSocketCommListener
CC_ABNORMAL_CLOSURE, CC_GOING_AWAY, CC_INTERNAL_ERROR, CC_INVALID_PAYLOAD_DATA, CC_MANDATORY_EXT, CC_MESSAGE_TOO_BIG, CC_NO_STATUS_RECEIVED, CC_NORMAL, CC_POLICY_VIOLATION, CC_PROTOCOL_ERROR, CC_SERVICE_RESTART, CC_TLS_HANDSHAKE, CC_TRY_AGAIN_LATER, CC_UNSUPPORTED_DATAMethod Summary
Modifier and TypeMethodDescriptionbooleandispose()Disposes of the end point.protected voidonClientPropsCreated(PropCnr root) Called when the root is created from a transaction from the client.protected final booleanprocessQueuedTransaction(int code, ReadTransaction trans) Processes queued transactions.Methods inherited from class com.iizix.server.AbstractEndPoint
createTransaction, getClientContextMenuReference, getEndPoint, getEndPointName, getEndPointType, getHeartBeatInterval, getProperties, getPropertyManager, getServer, getServerSessionID, getSessionInfo, getWebSocketCommListener, isConnected, onCommClosed, onCommClosing, onCommConnected, onCommData, onCommData, onCommError, onCommHeartBeat, onCommOpen, onCommTimeout, onSendHeartHeat, onSessionConnected, paramString, sendTransaction, toString
Method Details
onClientPropsCreated
Called when the root is created from a transaction from the client. Override to perform some additional processing such as adding server environment, etc.- Overrides:
onClientPropsCreatedin classAbstractEndPoint
processQueuedTransaction
Processes queued transactions.- Specified by:
processQueuedTransactionin classAbstractEndPoint- Parameters:
code- The transaction code.trans- The transaction.- Returns:
- true if the transaction has been processed, false otherwise.
dispose
public boolean dispose()Disposes of the end point.- Specified by:
disposein interfaceIEndPoint- Overrides:
disposein classAbstractEndPoint- Returns:
- true if disposed, false if already disposed of.