|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvoldemort.cluster.failuredetector.AbstractFailureDetector
voldemort.cluster.failuredetector.BannagePeriodFailureDetector
@Deprecated public class BannagePeriodFailureDetector
BannagePeriodFailureDetector relies on external callers to notify it of failed attempts to access a node's store via recordException. When recordException is invoked, the node is marked offline for a period of time as defined by the client or server configuration. Once that period has passed, the node is considered available. However, BannagePeriodFailureDetector's definition of available uses a fairly loose sense of the word. Rather than considering the node to be available for access, it is available for attempting to access. In actuality the node may still be down. However, the intent is simply to mark it down for N seconds and then attempt to try again and repeat. If the node is truly available for access, the caller will then invoke recordSuccess and the node will be marked available in the truest sense of the word.
VoldemortConfig.getFailureDetectorBannagePeriod()
,
ClientConfig.getFailureDetectorBannagePeriod()
,
FailureDetectorConfig.getBannagePeriod()
Field Summary |
---|
Fields inherited from class voldemort.cluster.failuredetector.AbstractFailureDetector |
---|
failureDetectorConfig, idNodeStatusMap, listeners, logger |
Constructor Summary | |
---|---|
BannagePeriodFailureDetector(FailureDetectorConfig failureDetectorConfig)
Deprecated. |
Method Summary | |
---|---|
java.lang.String |
getUnavailableNodesBannageExpiration()
Deprecated. |
boolean |
isAvailable(Node node)
Deprecated. Determines if the node is available or offline. |
void |
recordException(Node node,
long requestTime,
UnreachableStoreException e)
Deprecated. Allows external callers to provide input to the FailureDetector that an error occurred when trying to access the node. |
void |
recordSuccess(Node node,
long requestTime)
Deprecated. Allows external callers to provide input to the FailureDetector that an access to the node succeeded. |
Methods inherited from class voldemort.cluster.failuredetector.AbstractFailureDetector |
---|
addFailureDetectorListener, checkArgs, checkNodeArg, destroy, getAvailableNodeCount, getAvailableNodes, getConfig, getLastChecked, getNodeCount, getNodeStatus, getUnavailableNodes, removeFailureDetectorListener, setAvailable, setUnavailable, waitForAvailability |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BannagePeriodFailureDetector(FailureDetectorConfig failureDetectorConfig)
Method Detail |
---|
public boolean isAvailable(Node node)
FailureDetector
node
- Node to check
public void recordException(Node node, long requestTime, UnreachableStoreException e)
FailureDetector
node
- Node to checkrequestTime
- Length of time (in milliseconds) to perform requeste
- Exception that occurred when trying to access the nodepublic void recordSuccess(Node node, long requestTime)
FailureDetector
node
- Node to checkrequestTime
- Length of time (in milliseconds) to perform requestpublic java.lang.String getUnavailableNodesBannageExpiration()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |