Package org.apache.qpid.server.model
Class AbstractContainer<X extends AbstractContainer<X>>
- java.lang.Object
-
- org.apache.qpid.server.model.AbstractConfiguredObject<X>
-
- org.apache.qpid.server.model.AbstractContainer<X>
-
- All Implemented Interfaces:
ConfiguredObject<X>
,Container<X>
,ContextProvider
,PermissionedObject
,TaskExecutorProvider
- Direct Known Subclasses:
BrokerImpl
public abstract class AbstractContainer<X extends AbstractContainer<X>> extends AbstractConfiguredObject<X> implements Container<X>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AbstractContainer.ThreadStackContent
-
Nested classes/interfaces inherited from class org.apache.qpid.server.model.AbstractConfiguredObject
AbstractConfiguredObject.CallableWithArgument<V,A>, AbstractConfiguredObject.ChainedListenableFuture<V>, AbstractConfiguredObject.ChainedSettableFuture<V>, AbstractConfiguredObject.DuplicateIdException, AbstractConfiguredObject.DuplicateNameException
-
-
Field Summary
Fields Modifier and Type Field Description protected EventLogger
_eventLogger
protected HousekeepingExecutor
_houseKeepingTaskExecutor
protected SystemConfig<?>
_parent
-
Fields inherited from class org.apache.qpid.server.model.AbstractConfiguredObject
SECURED_STRING_VALUE
-
Fields inherited from interface org.apache.qpid.server.model.ConfiguredObject
AWAIT_ATTAINMENT_TIMEOUT, CONTEXT, CREATED_BY, CREATED_TIME, DEFAULT_AWAIT_ATTAINMENT_TIMEOUT, DESCRIPTION, DESIRED_STATE, DURABLE, ID, LAST_UPDATED_BY, LAST_UPDATED_TIME, LIFETIME_POLICY, NAME, OVER_SIZED_ATTRIBUTE_ALTERNATIVE_TEXT, STATE, TYPE
-
Fields inherited from interface org.apache.qpid.server.model.Container
CONFIDENTIAL_CONFIGURATION_ENCRYPTION_PROVIDER
-
-
Method Summary
-
Methods inherited from class org.apache.qpid.server.model.AbstractConfiguredObject
addChangeListener, addChildAsync, addFutureCallback, applyToChildren, asObjectRecord, attainState, attributesAsString, attributeSet, authorise, authorise, authorise, authoriseCreateChild, awaitChildClassToAttainState, awaitChildClassToAttainState, beforeClose, beforeDelete, changeAttributes, childAdded, childRemoved, close, closeAsync, closeChildren, create, createAsync, createChild, createChildAsync, decryptSecrets, delete, deleteAsync, deleteChildren, deleteNoChecks, doAfter, doAfter, doAfter, doAfter, doAfter, doAfter, doAfterAlways, doAfterAlways, doCreation, doOnConfigThread, doOpening, doResolution, doSync, doSync, doValidation, findConfiguredObject, forceUpdateAllSecureAttributes, getAccessControl, getActualAttributes, getAncestor, 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, getStatistics, getSubjectWithAddedSystemRights, getSystemPrincipal, getSystemTaskControllerContext, getSystemTaskSubject, getSystemTaskSubject, getTaskExecutor, getType, getTypeClass, getUserPreferences, handleExceptionOnOpen, hasEncrypter, isDurable, isSystemProcess, isSystemSubject, logCreated, logDeleted, logOperation, logRecovered, logUpdated, managesChildStorage, newToken, notifyStateChanged, onClose, onCreate, onDelete, onExceptionInOpen, onOpen, onResolve, onValidate, open, openAsync, postResolve, postSetAttributes, registerWithParents, removeChangeListener, removeContextVariable, rethrowRuntimeExceptionsOnOpen, runTask, setAttributes, setAttributesAsync, setContextVariable, setEncrypter, setState, setUserPreferences, start, startAsync, stop, toString, updateModel, validateChange, validateChildDelete, validateOnCreate
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.qpid.server.model.ConfiguredObject
addChangeListener, asObjectRecord, authorise, authorise, authorise, close, closeAsync, createChild, createChildAsync, decryptSecrets, delete, deleteAsync, findConfiguredObject, getActualAttributes, getAttainedChildById, getAttainedChildByName, getAttribute, getAttributeNames, getCategoryClass, getChildById, getChildByName, getChildExecutor, getChildren, getContext, getCreatedBy, getCreatedTime, getDescription, getDesiredState, getId, getLastOpenedTime, getLastUpdatedBy, getLastUpdatedTime, getLifetimePolicy, getModel, getName, getObjectFactory, getParent, getState, getStatistics, getStatistics, getType, getTypeClass, getUserPreferences, hasEncrypter, isDurable, managesChildStorage, newToken, open, openAsync, removeChangeListener, removeContextVariable, setAttributes, setAttributesAsync, setContextVariable, setUserPreferences
-
Methods inherited from interface org.apache.qpid.server.model.Container
getManagementModeAuthenticationProvider, getNetworkBufferSize
-
Methods inherited from interface org.apache.qpid.server.model.ContextProvider
getContextKeys, getContextValue, getContextValue
-
Methods inherited from interface org.apache.qpid.server.model.TaskExecutorProvider
getTaskExecutor
-
-
-
-
Field Detail
-
_parent
protected SystemConfig<?> _parent
-
_eventLogger
protected EventLogger _eventLogger
-
_houseKeepingTaskExecutor
protected HousekeepingExecutor _houseKeepingTaskExecutor
-
-
Method Detail
-
postResolveChildren
protected void postResolveChildren()
- Overrides:
postResolveChildren
in classAbstractConfiguredObject<X extends AbstractContainer<X>>
-
getAvailableConfigurationEncrypters
public static Collection<String> getAvailableConfigurationEncrypters()
-
getBuildVersion
public String getBuildVersion()
-
getOperatingSystem
public String getOperatingSystem()
-
getPlatform
public String getPlatform()
-
getProcessPid
public String getProcessPid()
-
getProductVersion
public String getProductVersion()
-
getNumberOfCores
public int getNumberOfCores()
-
getConfidentialConfigurationEncryptionProvider
public String getConfidentialConfigurationEncryptionProvider()
-
getHousekeepingThreadCount
public int getHousekeepingThreadCount()
-
getModelVersion
public String getModelVersion()
-
getEventLogger
public EventLogger getEventLogger()
- Specified by:
getEventLogger
in interfaceContainer<X extends AbstractContainer<X>>
-
setEventLogger
public void setEventLogger(EventLogger eventLogger)
- Specified by:
setEventLogger
in interfaceContainer<X extends AbstractContainer<X>>
-
getNumberOfLiveThreads
public int getNumberOfLiveThreads()
-
getMaximumHeapMemorySize
public long getMaximumHeapMemorySize()
-
getUsedHeapMemorySize
public long getUsedHeapMemorySize()
-
getMaximumDirectMemorySize
public long getMaximumDirectMemorySize()
-
getUsedDirectMemorySize
public long getUsedDirectMemorySize()
-
getDirectMemoryTotalCapacity
public long getDirectMemoryTotalCapacity()
-
getNumberOfObjectsPendingFinalization
public int getNumberOfObjectsPendingFinalization()
-
performGC
public void performGC()
-
getThreadStackTraces
public Content getThreadStackTraces(boolean appendToLog)
-
scheduleHouseKeepingTask
public ScheduledFuture<?> scheduleHouseKeepingTask(long period, TimeUnit unit, Runnable task)
-
scheduleTask
public ScheduledFuture<?> scheduleTask(long delay, TimeUnit unit, Runnable task)
-
-