|
Platform SDK Java 8.5 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.genesyslab.platform.standby.WSHandler
public abstract class WSHandler
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 |
---|
public WSHandler()
Method Detail |
---|
public void onChannelOpened(WSOpenedEvent event)
IWSHandler
onChannelOpened
in interface IWSHandler
event
- provides additional information about the event.public void onChannelDisconnected(WSDisconnectedEvent event)
IWSHandler
onChannelDisconnected
in interface IWSHandler
event
- provides additional information about channel closing.public void onEndpointTriedUnsuccessfully(WSTriedUnsuccessfullyEvent event)
IWSHandler
onEndpointTriedUnsuccessfully
in interface IWSHandler
event
- provides additional information about the fail.public void onAllEndpointsTriedUnsuccessfully(WSAllTriedUnsuccessfullyEvent event)
IWSHandler
onAllEndpointsTriedUnsuccessfully
in interface IWSHandler
event
- provides additional information about the fail.
|
Platform SDK Java 8.5 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |