public abstract class AbstractSystemConfig<X extends SystemConfig<X>> extends AbstractConfiguredObject<X> implements SystemConfig<X>
AbstractConfiguredObject.CallableWithArgument<V,A>, AbstractConfiguredObject.ChainedListenableFuture<V>, AbstractConfiguredObject.ChainedSettableFuture<V>, AbstractConfiguredObject.DuplicateIdException, AbstractConfiguredObject.DuplicateNameException
SECURED_STRING_VALUE
DEFAULT_POSIX_FILE_PERMISSIONS, INITIAL_CONFIGURATION_LOCATION, MANAGEMENT_MODE, MANAGEMENT_MODE_HTTP_PORT_OVERRIDE, MANAGEMENT_MODE_JMX_PORT_OVERRIDE, MANAGEMENT_MODE_PASSWORD, MANAGEMENT_MODE_QUIESCE_VIRTUAL_HOSTS, MANAGEMENT_MODE_RMI_PORT_OVERRIDE, STARTUP_LOGGED_TO_SYSTEM_OUT
CONTEXT, CREATED_BY, CREATED_TIME, DESCRIPTION, DESIRED_STATE, DURABLE, ID, LAST_UPDATED_BY, LAST_UPDATED_TIME, LIFETIME_POLICY, NAME, OVER_SIZED_ATTRIBUTE_ALTERNATIVE_TEXT, STATE, TYPE
Constructor and Description |
---|
AbstractSystemConfig(TaskExecutor taskExecutor,
EventLogger eventLogger,
Map<String,Object> attributes) |
Modifier and Type | Method and Description |
---|---|
protected com.google.common.util.concurrent.ListenableFuture<Void> |
activate() |
protected abstract DurableConfigurationStore |
createStoreObject() |
Broker |
getBroker() |
DurableConfigurationStore |
getConfigurationStore() |
EventLogger |
getEventLogger() |
String |
getInitialConfigurationLocation() |
int |
getManagementModeHttpPortOverride() |
int |
getManagementModeJmxPortOverride() |
String |
getManagementModePassword() |
int |
getManagementModeRmiPortOverride() |
boolean |
isManagementMode() |
boolean |
isManagementModeQuiesceVirtualHosts() |
boolean |
isStartupLoggedToSystemOut() |
protected void |
onClose() |
protected void |
onOpen() |
protected boolean |
rethrowRuntimeExceptionsOnOpen() |
protected void |
setState(State desiredState) |
addChangeListener, addChildAsync, applyToChildren, asObjectRecord, attainState, attributeSet, authoriseCreate, authoriseCreateChild, authoriseDelete, authoriseSetAttributes, beforeClose, changeAttribute, changeAttributes, childAdded, childRemoved, close, closeAsync, closeChildren, create, createAsync, createChild, createChildAsync, decryptSecrets, delete, deleteAsync, deleted, doAfter, doAfter, doAfter, doAfter, doAfter, doAfter, doAfterAlways, doAfterAlways, doCreation, doOnConfigThread, doOpening, doResolution, doSync, doSync, doValidation, findConfiguredObject, forceUpdateAllSecureAttributes, getActualAttributes, getAttainedChildById, getAttainedChildByName, getAttribute, getAttributeNames, getCategoryClass, getChildById, getChildByName, getChildExecutor, getChildren, getContext, getContextKeys, getContextValue, getContextValue, getCreatedBy, getCreatedTime, getDescription, getDesiredState, getId, getLastOpenedTime, getLastUpdatedBy, getLastUpdatedTime, getLifetimePolicy, getModel, getName, getObjectFactory, getParent, getSecurityManager, getState, getStatistics, getTaskExecutor, getType, getTypeClass, handleExceptionOnOpen, isDurable, managesChildStorage, notifyStateChanged, onCreate, onExceptionInOpen, onResolve, onValidate, open, openAsync, parentsMap, postResolve, postResolveChildren, registerWithParents, removeChangeListener, runTask, setAttribute, setAttributes, setAttributesAsync, setEncrypter, start, startAsync, stop, toString, validateChange, validateOnCreate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addChangeListener, asObjectRecord, close, closeAsync, createChild, createChildAsync, decryptSecrets, delete, deleteAsync, findConfiguredObject, getActualAttributes, getAttainedChildById, getAttainedChildByName, getAttribute, getAttributeNames, getCategoryClass, getChildById, getChildByName, getChildExecutor, getChildren, getContext, getContextKeys, getContextValue, getContextValue, getCreatedBy, getCreatedTime, getDescription, getDesiredState, getId, getLastOpenedTime, getLastUpdatedBy, getLastUpdatedTime, getLifetimePolicy, getModel, getName, getObjectFactory, getParent, getState, getStatistics, getTaskExecutor, getType, getTypeClass, isDurable, managesChildStorage, open, openAsync, removeChangeListener, setAttribute, setAttributes, setAttributesAsync
public AbstractSystemConfig(TaskExecutor taskExecutor, EventLogger eventLogger, Map<String,Object> attributes)
protected void setState(State desiredState)
setState
in class AbstractConfiguredObject<X extends SystemConfig<X>>
public EventLogger getEventLogger()
getEventLogger
in interface SystemConfig<X extends SystemConfig<X>>
protected void onClose()
onClose
in class AbstractConfiguredObject<X extends SystemConfig<X>>
public Broker getBroker()
getBroker
in interface SystemConfig<X extends SystemConfig<X>>
protected void onOpen()
onOpen
in class AbstractConfiguredObject<X extends SystemConfig<X>>
protected com.google.common.util.concurrent.ListenableFuture<Void> activate()
protected final boolean rethrowRuntimeExceptionsOnOpen()
rethrowRuntimeExceptionsOnOpen
in class AbstractConfiguredObject<X extends SystemConfig<X>>
protected abstract DurableConfigurationStore createStoreObject()
public DurableConfigurationStore getConfigurationStore()
getConfigurationStore
in interface SystemConfig<X extends SystemConfig<X>>
public boolean isManagementMode()
isManagementMode
in interface SystemConfig<X extends SystemConfig<X>>
public int getManagementModeRmiPortOverride()
getManagementModeRmiPortOverride
in interface SystemConfig<X extends SystemConfig<X>>
public int getManagementModeJmxPortOverride()
getManagementModeJmxPortOverride
in interface SystemConfig<X extends SystemConfig<X>>
public int getManagementModeHttpPortOverride()
getManagementModeHttpPortOverride
in interface SystemConfig<X extends SystemConfig<X>>
public boolean isManagementModeQuiesceVirtualHosts()
isManagementModeQuiesceVirtualHosts
in interface SystemConfig<X extends SystemConfig<X>>
public String getManagementModePassword()
getManagementModePassword
in interface SystemConfig<X extends SystemConfig<X>>
public String getInitialConfigurationLocation()
getInitialConfigurationLocation
in interface SystemConfig<X extends SystemConfig<X>>
public boolean isStartupLoggedToSystemOut()
isStartupLoggedToSystemOut
in interface SystemConfig<X extends SystemConfig<X>>
Copyright © 2006–2016 The Apache Software Foundation. All rights reserved.