public class RebindExceptionHandlerImpl extends java.lang.Object implements RebindExceptionHandler
Modifier and Type | Class and Description |
---|---|
static class |
RebindExceptionHandlerImpl.Builder |
Constructor and Description |
---|
RebindExceptionHandlerImpl(RebindExceptionHandlerImpl.Builder builder) |
Modifier and Type | Method and Description |
---|---|
static RebindExceptionHandlerImpl.Builder |
builder() |
java.util.List<java.lang.Exception> |
getExceptions() |
java.util.List<java.lang.String> |
getWarnings() |
void |
onAddEnricherFailed(EntityLocal entity,
Enricher enricher,
java.lang.Exception e) |
void |
onAddFeedFailed(EntityLocal entity,
Feed feed,
java.lang.Exception e) |
void |
onAddPolicyFailed(EntityLocal entity,
Policy policy,
java.lang.Exception e) |
void |
onCreateFailed(BrooklynObjectType type,
java.lang.String id,
java.lang.String instanceType,
java.lang.Exception e) |
CatalogItem<?,?> |
onDanglingCatalogItemRef(java.lang.String id) |
Enricher |
onDanglingEnricherRef(java.lang.String id) |
Entity |
onDanglingEntityRef(java.lang.String id) |
Feed |
onDanglingFeedRef(java.lang.String id) |
Location |
onDanglingLocationRef(java.lang.String id) |
Policy |
onDanglingPolicyRef(java.lang.String id) |
void |
onDone()
invoked after the complete rebind pass, always on success and possibly on failure
|
java.lang.RuntimeException |
onFailed(java.lang.Exception e)
invoked for any high-level, unexpected, or otherwise uncaught failure;
may be invoked on catching above errors
|
void |
onLoadMementoFailed(BrooklynObjectType type,
java.lang.String msg,
java.lang.Exception e) |
void |
onManageFailed(BrooklynObjectType type,
BrooklynObject instance,
java.lang.Exception e) |
void |
onNotFound(BrooklynObjectType type,
java.lang.String id) |
void |
onRebindFailed(BrooklynObjectType type,
BrooklynObject instance,
java.lang.Exception e) |
void |
onStart(RebindContext context)
invoked before the rebind pass
|
public RebindExceptionHandlerImpl(RebindExceptionHandlerImpl.Builder builder)
public static RebindExceptionHandlerImpl.Builder builder()
public void onStart(RebindContext context)
RebindExceptionHandler
onStart
in interface RebindExceptionHandler
public void onLoadMementoFailed(BrooklynObjectType type, java.lang.String msg, java.lang.Exception e)
onLoadMementoFailed
in interface RebindExceptionHandler
public Entity onDanglingEntityRef(java.lang.String id)
onDanglingEntityRef
in interface RebindExceptionHandler
public Location onDanglingLocationRef(java.lang.String id)
onDanglingLocationRef
in interface RebindExceptionHandler
public Policy onDanglingPolicyRef(java.lang.String id)
onDanglingPolicyRef
in interface RebindExceptionHandler
public Enricher onDanglingEnricherRef(java.lang.String id)
onDanglingEnricherRef
in interface RebindExceptionHandler
public Feed onDanglingFeedRef(java.lang.String id)
onDanglingFeedRef
in interface RebindExceptionHandler
public CatalogItem<?,?> onDanglingCatalogItemRef(java.lang.String id)
onDanglingCatalogItemRef
in interface RebindExceptionHandler
public void onCreateFailed(BrooklynObjectType type, java.lang.String id, java.lang.String instanceType, java.lang.Exception e)
onCreateFailed
in interface RebindExceptionHandler
public void onNotFound(BrooklynObjectType type, java.lang.String id)
onNotFound
in interface RebindExceptionHandler
public void onRebindFailed(BrooklynObjectType type, BrooklynObject instance, java.lang.Exception e)
onRebindFailed
in interface RebindExceptionHandler
public void onAddPolicyFailed(EntityLocal entity, Policy policy, java.lang.Exception e)
onAddPolicyFailed
in interface RebindExceptionHandler
public void onAddEnricherFailed(EntityLocal entity, Enricher enricher, java.lang.Exception e)
onAddEnricherFailed
in interface RebindExceptionHandler
public void onAddFeedFailed(EntityLocal entity, Feed feed, java.lang.Exception e)
onAddFeedFailed
in interface RebindExceptionHandler
public void onManageFailed(BrooklynObjectType type, BrooklynObject instance, java.lang.Exception e)
onManageFailed
in interface RebindExceptionHandler
public void onDone()
RebindExceptionHandler
onDone
in interface RebindExceptionHandler
public java.lang.RuntimeException onFailed(java.lang.Exception e)
RebindExceptionHandler
onFailed
in interface RebindExceptionHandler
public java.util.List<java.lang.Exception> getExceptions()
getExceptions
in interface RebindExceptionHandler
public java.util.List<java.lang.String> getWarnings()
getWarnings
in interface RebindExceptionHandler