public class CatalogInitialization extends java.lang.Object implements ManagementContextInjectable
Modifier and Type | Class and Description |
---|---|
static interface |
CatalogInitialization.InstallableManagedBundle |
static class |
CatalogInitialization.PersistedCatalogState |
static interface |
CatalogInitialization.RebindLogger |
Constructor and Description |
---|
CatalogInitialization() |
CatalogInitialization(java.lang.String initialUri) |
Modifier and Type | Method and Description |
---|---|
void |
clearBrooklynManagedBundles()
Clears all record of the brooklyn-managed-bundles (so use with care!).
|
ManagementContextInternal |
getManagementContext() |
void |
handleException(java.lang.Throwable throwable,
java.lang.Object details) |
boolean |
hasRunAnyInitialization()
Returns true if the initializer has run at all.
|
static boolean |
isRebindReadOnlyShuttingDown(ManagementContext mgmt) |
void |
populateInitialAndPersistedCatalog(ManagementNodeState mode,
CatalogInitialization.PersistedCatalogState persistedState,
RebindExceptionHandler exceptionHandler,
CatalogInitialization.RebindLogger rebindLogger)
Adds the given persisted catalog items.
|
void |
populateInitialCatalogOnly()
Populates the initial catalog (i.e.
|
void |
setFailOnStartupErrors(boolean startupFailOnCatalogErrors) |
void |
setManagementContext(ManagementContext managementContext)
Sets the
ManagementContext reference. |
void |
setStartingUp(boolean isStartingUp)
Called by the framework to set true while starting up, and false afterwards,
in order to assist in appropriate logging and error handling.
|
void |
unofficialPopulateInitialCatalog()
Populates the initial catalog, but not via an official code-path.
|
public CatalogInitialization()
public CatalogInitialization(java.lang.String initialUri)
public void setManagementContext(ManagementContext managementContext)
ManagementContextInjectable
ManagementContext
reference.setManagementContext
in interface ManagementContextInjectable
public void setStartingUp(boolean isStartingUp)
public void setFailOnStartupErrors(boolean startupFailOnCatalogErrors)
public ManagementContextInternal getManagementContext()
public boolean hasRunAnyInitialization()
public void populateInitialCatalogOnly()
public void clearBrooklynManagedBundles()
public void populateInitialAndPersistedCatalog(ManagementNodeState mode, CatalogInitialization.PersistedCatalogState persistedState, RebindExceptionHandler exceptionHandler, CatalogInitialization.RebindLogger rebindLogger)
public void unofficialPopulateInitialCatalog()
#populateInitialCatalog()
or
populateInitialAndPersistedCatalog(ManagementNodeState, PersistedCatalogState, RebindExceptionHandler, RebindLogger)
.public void handleException(java.lang.Throwable throwable, java.lang.Object details)
public static boolean isRebindReadOnlyShuttingDown(ManagementContext mgmt)