OpFlex Framework 1.7.0
|
An interface for a listener that will get status update events for peer connection state. More...
#include <opflex/ofcore/PeerStatusListener.h>
Public Types | |
enum | PeerStatus { DISCONNECTED = 0 , CONNECTING = 1 , CONNECTED = 2 , READY = 3 , CLOSING = 4 } |
The status of a particular peer, which will be sent in the peer status update callback. More... | |
enum | Health { DOWN = 0 , DEGRADED = 1 , HEALTHY = 2 } |
Represents the overall health of the opflex connection pool. More... | |
Public Member Functions | |
virtual | ~PeerStatusListener () |
Destroy the peer status listener. | |
virtual void | peerStatusUpdated (const std::string &peerHostname, int peerPort, PeerStatus peerStatus) |
Called when the connection state changes for a given Opflex peer. | |
virtual void | healthUpdated (Health health) |
Called when the overall health of the opflex connection pool changes. | |
An interface for a listener that will get status update events for peer connection state.
The status of a particular peer, which will be sent in the peer status update callback.
|
inlinevirtual |
Called when the overall health of the opflex connection pool changes.
Will not be called concurrently.
health | the new health value |
|
inlinevirtual |
Called when the connection state changes for a given Opflex peer.
Will not be called concurrently.
peerHostname | the hostname of the peer that was updated |
peerPort | the port number of the peer that was updated |
peerStatus | the new status of the Opflex peer |