public class CombiningZoneFailureDetector extends java.lang.Object implements DynamicCluster.ZoneFailureDetector
| Modifier and Type | Method and Description |
|---|---|
static CombiningZoneFailureDetector |
failIfAll(DynamicCluster.ZoneFailureDetector... detectors) |
static CombiningZoneFailureDetector |
failIfAny(DynamicCluster.ZoneFailureDetector... detectors) |
boolean |
hasFailed(Location loc) |
void |
onStartupFailure(Location loc,
Entity entity,
java.lang.Throwable cause) |
void |
onStartupSuccess(Location loc,
Entity entity) |
public static CombiningZoneFailureDetector failIfAny(DynamicCluster.ZoneFailureDetector... detectors)
public static CombiningZoneFailureDetector failIfAll(DynamicCluster.ZoneFailureDetector... detectors)
public void onStartupSuccess(Location loc, Entity entity)
onStartupSuccess in interface DynamicCluster.ZoneFailureDetectorpublic void onStartupFailure(Location loc, Entity entity, java.lang.Throwable cause)
onStartupFailure in interface DynamicCluster.ZoneFailureDetectorpublic boolean hasFailed(Location loc)
hasFailed in interface DynamicCluster.ZoneFailureDetector