@Beta public abstract class AbstractZoneFailureDetector extends java.lang.Object implements DynamicCluster.ZoneFailureDetector
Modifier and Type | Class and Description |
---|---|
static class |
AbstractZoneFailureDetector.ZoneHistory
Note: callers please don't side-effect the success/failures/causes fields directly!
Instead consider sub-classing ZoneHistory, and overriding
newZoneHistory(Location) . |
Constructor and Description |
---|
AbstractZoneFailureDetector() |
AbstractZoneFailureDetector(com.google.common.base.Ticker ticker) |
Modifier and Type | Method and Description |
---|---|
boolean |
hasFailed(Location loc) |
void |
onStartupFailure(Location loc,
Entity entity,
java.lang.Throwable cause) |
void |
onStartupSuccess(Location loc,
Entity entity) |
public AbstractZoneFailureDetector()
public AbstractZoneFailureDetector(com.google.common.base.Ticker ticker)
public void onStartupSuccess(Location loc, Entity entity)
onStartupSuccess
in interface DynamicCluster.ZoneFailureDetector
public void onStartupFailure(Location loc, Entity entity, java.lang.Throwable cause)
onStartupFailure
in interface DynamicCluster.ZoneFailureDetector
public boolean hasFailed(Location loc)
hasFailed
in interface DynamicCluster.ZoneFailureDetector