|
Platform SDK Java 8.5 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
---|
void onChannelOpened(WSOpenedEvent event)
event
- provides additional information about the event.void onChannelDisconnected(WSDisconnectedEvent event)
event
- provides additional information about channel closing.void onEndpointTriedUnsuccessfully(WSTriedUnsuccessfullyEvent event)
event
- provides additional information about the fail.void onAllEndpointsTriedUnsuccessfully(WSAllTriedUnsuccessfullyEvent event)
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 |