|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cassandra.gms.FailureDetector
public class FailureDetector
This FailureDetector is an implementation of the paper titled "The Phi Accrual Failure Detector" by Hayashibara. Check the paper and the IFailureDetector interface for details.
| Field Summary | |
|---|---|
static IFailureDetector |
instance
|
static java.lang.String |
MBEAN_NAME
|
| Constructor Summary | |
|---|---|
FailureDetector()
|
|
| Method Summary | |
|---|---|
void |
dumpInterArrivalTimes()
Dump the inter arrival times for examination if necessary. |
java.lang.String |
getAllEndpointStates()
|
java.lang.String |
getEndpointState(java.lang.String address)
|
int |
getPhiConvictThreshold()
|
java.util.Map<java.lang.String,java.lang.String> |
getSimpleStates()
|
void |
interpret(java.net.InetAddress ep)
This method is invoked by any entity wanting to interrogate the status of an endpoint. |
boolean |
isAlive(java.net.InetAddress ep)
Failure Detector's knowledge of whether a node is up or down. |
static void |
main(java.lang.String[] args)
|
void |
registerFailureDetectionEventListener(IFailureDetectionEventListener listener)
Register interest for Failure Detector events. |
void |
remove(java.net.InetAddress ep)
remove endpoint from failure detector |
void |
report(java.net.InetAddress ep)
This method is invoked by the receiver of the heartbeat. |
void |
setPhiConvictThreshold(int phi)
|
java.lang.String |
toString()
|
void |
unregisterFailureDetectionEventListener(IFailureDetectionEventListener listener)
Un-register interest for Failure Detector events. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String MBEAN_NAME
public static final IFailureDetector instance
| Constructor Detail |
|---|
public FailureDetector()
| Method Detail |
|---|
public java.lang.String getAllEndpointStates()
getAllEndpointStates in interface FailureDetectorMBeanpublic java.util.Map<java.lang.String,java.lang.String> getSimpleStates()
getSimpleStates in interface FailureDetectorMBean
public java.lang.String getEndpointState(java.lang.String address)
throws java.net.UnknownHostException
getEndpointState in interface FailureDetectorMBeanjava.net.UnknownHostExceptionpublic void dumpInterArrivalTimes()
dumpInterArrivalTimes in interface FailureDetectorMBeanpublic void setPhiConvictThreshold(int phi)
setPhiConvictThreshold in interface FailureDetectorMBeanpublic int getPhiConvictThreshold()
getPhiConvictThreshold in interface FailureDetectorMBeanpublic boolean isAlive(java.net.InetAddress ep)
IFailureDetector
isAlive in interface IFailureDetectorep - endpoint in question.
public void report(java.net.InetAddress ep)
IFailureDetector
report in interface IFailureDetectorpublic void interpret(java.net.InetAddress ep)
IFailureDetector
interpret in interface IFailureDetectorpublic void remove(java.net.InetAddress ep)
IFailureDetector
remove in interface IFailureDetectorpublic void registerFailureDetectionEventListener(IFailureDetectionEventListener listener)
IFailureDetector
registerFailureDetectionEventListener in interface IFailureDetectorlistener - implementation of an application provided IFailureDetectionEventListenerpublic void unregisterFailureDetectionEventListener(IFailureDetectionEventListener listener)
IFailureDetector
unregisterFailureDetectionEventListener in interface IFailureDetectorlistener - implementation of an application provided IFailureDetectionEventListenerpublic java.lang.String toString()
toString in class java.lang.Object
public static void main(java.lang.String[] args)
throws java.lang.Throwable
java.lang.Throwable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||