Platform SDK Java 8.5 API Reference

com.genesyslab.platform.standby
Class WSHandler

java.lang.Object
  extended by com.genesyslab.platform.standby.WSHandler
All Implemented Interfaces:
IWSHandler
Direct Known Subclasses:
AbstractClusterChannel.IntWsHandler

public abstract class WSHandler
extends java.lang.Object
implements IWSHandler

The handler template provides possibility to handle warmstandby activity events and make some changes in the configuration and/or stop/restart the warmstandby to affect the default warmstandby behaviour.

NOTE: the warmstandby starts to make decision what to do next only after handler events processing will be completed in case when there is a assigned handler.

NOTE: the warmstandby's logic and handler notification run in warmstandby's invoker.


Constructor Summary
WSHandler()
           
 
Method Summary
 void onAllEndpointsTriedUnsuccessfully(WSAllTriedUnsuccessfullyEvent event)
          It is called when all endpoints have been checked unsuccessfully (all servers have been unavaliable) or the endpoint pool is empty.
 void onChannelDisconnected(WSDisconnectedEvent event)
          It is called when the channel disconnection occurs.
 void onChannelOpened(WSOpenedEvent event)
          It is called when the channel has been opened.
 void onEndpointTriedUnsuccessfully(WSTriedUnsuccessfullyEvent event)
          It is called when the channel hasn't been opened due to some error.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WSHandler

public WSHandler()
Method Detail

onChannelOpened

public void onChannelOpened(WSOpenedEvent event)
Description copied from interface: IWSHandler
It is called when the channel has been opened.

Specified by:
onChannelOpened in interface IWSHandler
Parameters:
event - provides additional information about the event.

onChannelDisconnected

public void onChannelDisconnected(WSDisconnectedEvent event)
Description copied from interface: IWSHandler
It is called when the channel disconnection occurs.

Specified by:
onChannelDisconnected in interface IWSHandler
Parameters:
event - provides additional information about channel closing.

onEndpointTriedUnsuccessfully

public void onEndpointTriedUnsuccessfully(WSTriedUnsuccessfullyEvent event)
Description copied from interface: IWSHandler
It is called when the channel hasn't been opened due to some error.

Specified by:
onEndpointTriedUnsuccessfully in interface IWSHandler
Parameters:
event - provides additional information about the fail.

onAllEndpointsTriedUnsuccessfully

public void onAllEndpointsTriedUnsuccessfully(WSAllTriedUnsuccessfullyEvent event)
Description copied from interface: IWSHandler
It is called when all endpoints have been checked unsuccessfully (all servers have been unavaliable) or the endpoint pool is empty.

Specified by:
onAllEndpointsTriedUnsuccessfully in interface IWSHandler
Parameters:
event - provides additional information about the fail.

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.