public final class FailureDetector extends Object implements IFailureDetector
| Modifier and Type | Field and Description |
|---|---|
static String |
PING |
static String |
PING_ACK |
static String |
PING_REQ |
| Constructor and Description |
|---|
FailureDetector(Transport transport,
IMembershipProtocol membership,
FailureDetectorConfig config)
Creates new instance of failure detector with given transport and settings.
|
| Modifier and Type | Method and Description |
|---|---|
rx.Observable<FailureDetectorEvent> |
listen()
Listens for results of ping checks (ALIVE/SUSPECT) done periodically by failure detector.
|
void |
start()
Starts running failure detection algorithm.
|
void |
stop()
Stops running failure detection algorithm and releases occupied resources.
|
public static final String PING
public static final String PING_REQ
public static final String PING_ACK
public FailureDetector(Transport transport, IMembershipProtocol membership, FailureDetectorConfig config)
transport - transportmembership - membership protocolconfig - failure detector settingspublic void start()
IFailureDetectorstart in interface IFailureDetectorpublic void stop()
IFailureDetectorstop in interface IFailureDetectorpublic rx.Observable<FailureDetectorEvent> listen()
IFailureDetectorlisten in interface IFailureDetectorCopyright © 2015–2017. All rights reserved.