Brooklyn

brooklyn.entity.group.zoneaware
[Java] Class AbstractZoneFailureDetector

java.lang.Object
  brooklyn.entity.group.zoneaware.AbstractZoneFailureDetector
All Implemented Interfaces:
ZoneFailureDetector

@Beta
public abstract class AbstractZoneFailureDetector

Nested Class Summary
static class AbstractZoneFailureDetector.ZoneHistory

Note: callers please don't side-effect the success/failures/causes fields directly!

 
Field Summary
protected Ticker ticker

 
Constructor Summary
AbstractZoneFailureDetector()

AbstractZoneFailureDetector(Ticker ticker)

 
Method Summary
protected long currentTimeMillis()

protected boolean doHasFailed(Location loc, AbstractZoneFailureDetector.ZoneHistory zoneHistory)

Warn: called should normally synchronize on zoneHistory while accessing it.

protected AbstractZoneFailureDetector.ZoneHistory getZoneHistory(Location loc)

boolean hasFailed(Location loc)

protected AbstractZoneFailureDetector.ZoneHistory newZoneHistory(Location loc)

void onStartupFailure(Location loc, Entity entity, java.lang.Throwable cause)

void onStartupSuccess(Location loc, Entity entity)

 
Methods inherited from class java.lang.Object
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
 

Field Detail

ticker

protected final Ticker ticker


 
Constructor Detail

AbstractZoneFailureDetector

public AbstractZoneFailureDetector()


AbstractZoneFailureDetector

public AbstractZoneFailureDetector(Ticker ticker)


 
Method Detail

currentTimeMillis

protected long currentTimeMillis()


doHasFailed

protected boolean doHasFailed(Location loc, AbstractZoneFailureDetector.ZoneHistory zoneHistory)
Warn: called should normally synchronize on zoneHistory while accessing it.


getZoneHistory

protected AbstractZoneFailureDetector.ZoneHistory getZoneHistory(Location loc)


hasFailed

@Override
public boolean hasFailed(Location loc)


newZoneHistory

protected AbstractZoneFailureDetector.ZoneHistory newZoneHistory(Location loc)


onStartupFailure

@Override
public void onStartupFailure(Location loc, Entity entity, java.lang.Throwable cause)


onStartupSuccess

@Override
public void onStartupSuccess(Location loc, Entity entity)


 

Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.