ConnectionHandler
, ProtocolMessagePackagerImpl.MessageHandler
, HAConnState
BackupState
, PrimaryState
, StateAbsent
, StateBackupClosing
, StateBackupConnectedFirst
, StateBackupConnecting
, StateBackupDropping
, StateNotAvailable
, StateOpening
, StatePrimaryClosing
, StatePrimaryDown
, StateWaitingSwitchover
public abstract class AbstractConnState extends java.lang.Object implements HAConnState
Modifier | Constructor | Description |
---|---|---|
protected |
AbstractConnState(ConnectionProxy proxy) |
Modifier and Type | Method | Description |
---|---|---|
protected boolean |
canTraceMessage() |
|
void |
close() |
|
protected void |
closeHAConnection(ConnectionClosedEvent event) |
|
ConnectionState |
getConnectionState() |
|
protected TServerConnContext |
getContext() |
|
protected HAConnection |
getLogicalConnection() |
|
ConnectionProxy |
getProxy() |
|
protected Connection |
getRealConnection() |
|
protected ConnectionProxy |
getSiblingProxy() |
|
protected java.lang.Object |
getSync() |
|
void |
init() |
|
protected void |
makeSiblingTransition(HAConnState newState) |
|
protected void |
makeTransition(HAConnState newState) |
|
protected void |
makeTransition(HAConnState newState,
HAConnState newSiblingState) |
|
void |
onConnectionClosed(ConnectionClosedEvent event) |
Fired when connection has been closed.
|
void |
onConnectionEstablished() |
Fired when connection with remote party (server) is established.
|
void |
onMessage(Message message) |
Fired when new message is received.
|
void |
open() |
|
protected void |
realWrite(Message message) |
|
java.lang.String |
toString() |
|
boolean |
write(Message msg) |
protected AbstractConnState(ConnectionProxy proxy)
public ConnectionProxy getProxy()
getProxy
in interface HAConnState
public ConnectionState getConnectionState()
public void init()
init
in interface HAConnState
public void open()
open
in interface HAConnState
public void close()
close
in interface HAConnState
public boolean write(Message msg)
write
in interface HAConnState
public void onConnectionEstablished()
ConnectionHandler
onConnectionEstablished
in interface ConnectionHandler
public void onMessage(Message message)
ProtocolMessagePackagerImpl.MessageHandler
onMessage
in interface ProtocolMessagePackagerImpl.MessageHandler
message
- The message from remote partypublic void onConnectionClosed(ConnectionClosedEvent event)
ConnectionHandler
onConnectionClosed
in interface ConnectionHandler
event
- close eventpublic java.lang.String toString()
toString
in class java.lang.Object
protected Connection getRealConnection()
protected void realWrite(Message message)
protected HAConnection getLogicalConnection()
protected ConnectionProxy getSiblingProxy()
protected java.lang.Object getSync()
protected TServerConnContext getContext()
protected void makeTransition(HAConnState newState)
protected void makeTransition(HAConnState newState, HAConnState newSiblingState)
protected void makeSiblingTransition(HAConnState newState)
protected void closeHAConnection(ConnectionClosedEvent event)
protected boolean canTraceMessage()
Send comments on this topicTechpubs.webadmin@genesys.com.
Document version: 9.0.006.00
Copyright © 2006–2019 Genesys Telecommunications Laboratories, Inc. All rights reserved.