com.genesyslab.platform.voice.protocol.runtime
Class AbstractConnState
java.lang.Object
com.genesyslab.platform.voice.protocol.runtime.AbstractConnState
- All Implemented Interfaces:
- ConnectionHandler, com.genesyslab.platform.commons.protocol.runtime.ProtocolMessagePackagerImpl.MessageHandler, HAConnState
- Direct Known Subclasses:
- BackupState, PrimaryState, StateAbsent, StateBackupClosing, StateBackupConnectedFirst, StateBackupConnecting, StateBackupDropping, StateNotAvailable, StateOpening, StatePrimaryClosing, StatePrimaryDown, StateWaitingSwitchover
public abstract class AbstractConnState
- extends java.lang.Object
- implements HAConnState
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AbstractConnState
protected AbstractConnState(ConnectionProxy proxy)
getProxy
public ConnectionProxy getProxy()
- Specified by:
getProxy
in interface HAConnState
getConnectionState
public ConnectionState getConnectionState()
init
public void init()
- Specified by:
init
in interface HAConnState
open
public void open()
- Specified by:
open
in interface HAConnState
close
public void close()
- Specified by:
close
in interface HAConnState
write
public void write(Message msg)
- Specified by:
write
in interface HAConnState
onConnectionEstablished
public void onConnectionEstablished()
- Description copied from interface:
ConnectionHandler
- Fired when connection with remote party (server) is established.
- Specified by:
onConnectionEstablished
in interface ConnectionHandler
onMessage
public void onMessage(Message message)
- Specified by:
onMessage
in interface com.genesyslab.platform.commons.protocol.runtime.ProtocolMessagePackagerImpl.MessageHandler
onConnectionClosed
public void onConnectionClosed(ConnectionClosedEvent event)
- Description copied from interface:
ConnectionHandler
- Fired when connection has been closed.
- Specified by:
onConnectionClosed
in interface ConnectionHandler
- Parameters:
event
- close event
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
getRealConnection
protected Connection getRealConnection()
realWrite
protected void realWrite(Message message)
getLogicalConnection
protected HAConnection getLogicalConnection()
getSiblingProxy
protected ConnectionProxy getSiblingProxy()
getSync
protected java.lang.Object getSync()
getContext
protected TServerConnContext getContext()
makeTransition
protected void makeTransition(HAConnState newState)
makeTransition
protected void makeTransition(HAConnState newState,
HAConnState newSiblingState)
makeSiblingTransition
protected void makeSiblingTransition(HAConnState newState)
closeHAConnection
protected void closeHAConnection(ConnectionClosedEvent event)
canTraceMessage
protected boolean canTraceMessage()
Send comments on this topicTechpubs.webadmin@genesys.com.
Document version: 8.5.302.00
Copyright © 2006–2017 Genesys Telecommunications Laboratories, Inc. All rights reserved.