Platform SDK Java 8.5 API Reference

com.genesyslab.platform.standby
Interface IWSHandler

All Known Implementing Classes:
AbstractClusterChannel.IntWsHandler, WSHandler

public interface IWSHandler

The handler provides possibility to handle warmstandby activity events and make some changes in the configuration and/or stop/restart the warmstandby to affect the default wamstandby 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. i.e. handler is called synchronously by warmstandby.

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


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.
 

Method Detail

onChannelOpened

void onChannelOpened(WSOpenedEvent event)
It is called when the channel has been opened.

Parameters:
event - provides additional information about the event.

onChannelDisconnected

void onChannelDisconnected(WSDisconnectedEvent event)
It is called when the channel disconnection occurs.

Parameters:
event - provides additional information about channel closing.

onEndpointTriedUnsuccessfully

void onEndpointTriedUnsuccessfully(WSTriedUnsuccessfullyEvent event)
It is called when the channel hasn't been opened due to some error.

Parameters:
event - provides additional information about the fail.

onAllEndpointsTriedUnsuccessfully

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.

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.