Platform SDK Java 8.5 API Reference

com.genesyslab.platform.voice.protocol.runtime
Class AbstractConnState

java.lang.Object
  extended by 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


Constructor Summary
protected AbstractConnState(ConnectionProxy proxy)
           
 
Method Summary
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)
           
 void open()
           
protected  void realWrite(Message message)
           
 java.lang.String toString()
           
 void write(Message msg)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractConnState

protected AbstractConnState(ConnectionProxy proxy)
Method Detail

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()

Platform SDK Java 8.5 API Reference

Send comments on this topicTechpubs.webadmin@genesys.com.
Document version: 8.5.302.00
Copyright © 2006–2017 Genesys Telecommunications Laboratories, Inc. All rights reserved.