| 
 | Brooklyn | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectbrooklyn.entity.group.zoneaware.AbstractZoneFailureDetector
@Beta public abstract class AbstractZoneFailureDetector
| Nested Class Summary | |
|---|---|
| static class | AbstractZoneFailureDetector.ZoneHistoryNote: 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 | 
|---|
protected final Ticker ticker
| Constructor Detail | 
|---|
public AbstractZoneFailureDetector()
public AbstractZoneFailureDetector(Ticker ticker)
| Method Detail | 
|---|
protected long currentTimeMillis()
protected boolean doHasFailed(Location loc, AbstractZoneFailureDetector.ZoneHistory zoneHistory)
protected AbstractZoneFailureDetector.ZoneHistory getZoneHistory(Location loc)
@Override public boolean hasFailed(Location loc)
protected AbstractZoneFailureDetector.ZoneHistory newZoneHistory(Location loc)
@Override public void onStartupFailure(Location loc, Entity entity, java.lang.Throwable cause)
@Override public void onStartupSuccess(Location loc, Entity entity)
Brooklyn Multi-Cloud Application Management Platform 
 brooklyncentral.github.com. Apache License. © 2012.