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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Content
findThreadStackTraces(java.lang.String threadNameFindExpression)
static java.util.Collection<java.lang.String>
getAvailableConfigurationEncrypters()
java.lang.String
getBuildVersion()
java.lang.String
getConfidentialConfigurationEncryptionProvider()
long
getDirectMemoryTotalCapacity()
EventLogger
getEventLogger()
int
getHousekeepingThreadCount()
java.util.List<java.lang.String>
getJvmArguments()
long
getMaximumDirectMemorySize()
long
getMaximumHeapMemorySize()
java.lang.String
getModelVersion()
int
getNumberOfCores()
int
getNumberOfLiveThreads()
int
getNumberOfObjectsPendingFinalization()
java.lang.String
getOperatingSystem()
java.lang.String
getPlatform()
java.lang.String
getProcessPid()
java.lang.String
getProductVersion()
Content
getThreadStackTraces(boolean appendToLog)
long
getUsedDirectMemorySize()
long
getUsedHeapMemorySize()
void
performGC()
protected void
postResolveChildren()
java.util.concurrent.ScheduledFuture<?>
scheduleHouseKeepingTask(long period, java.util.concurrent.TimeUnit unit, java.lang.Runnable task)
java.util.concurrent.ScheduledFuture<?>
scheduleTask(long delay, java.util.concurrent.TimeUnit unit, java.lang.Runnable task)
void
setEventLogger(EventLogger eventLogger)
-
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 java.util.Collection<java.lang.String> getAvailableConfigurationEncrypters()
-
getBuildVersion
public java.lang.String getBuildVersion()
-
getOperatingSystem
public java.lang.String getOperatingSystem()
-
getPlatform
public java.lang.String getPlatform()
-
getProcessPid
public java.lang.String getProcessPid()
-
getProductVersion
public java.lang.String getProductVersion()
-
getNumberOfCores
public int getNumberOfCores()
-
getConfidentialConfigurationEncryptionProvider
public java.lang.String getConfidentialConfigurationEncryptionProvider()
-
getHousekeepingThreadCount
public int getHousekeepingThreadCount()
-
getModelVersion
public java.lang.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()
-
getJvmArguments
public java.util.List<java.lang.String> getJvmArguments()
-
performGC
public void performGC()
-
getThreadStackTraces
public Content getThreadStackTraces(boolean appendToLog)
-
findThreadStackTraces
public Content findThreadStackTraces(java.lang.String threadNameFindExpression)
-
scheduleHouseKeepingTask
public java.util.concurrent.ScheduledFuture<?> scheduleHouseKeepingTask(long period, java.util.concurrent.TimeUnit unit, java.lang.Runnable task)
-
scheduleTask
public java.util.concurrent.ScheduledFuture<?> scheduleTask(long delay, java.util.concurrent.TimeUnit unit, java.lang.Runnable task)
-
-