Class AbstractLogger<X extends AbstractLogger<X>>
- java.lang.Object
-
- org.apache.qpid.server.model.AbstractConfiguredObject<X>
-
- org.apache.qpid.server.logging.logback.AbstractLogger<X>
-
- All Implemented Interfaces:
ConfiguredObject<X>,ContextProvider,PermissionedObject,TaskExecutorProvider
- Direct Known Subclasses:
AbstractBrokerLogger,AbstractVirtualHostLogger
public abstract class AbstractLogger<X extends AbstractLogger<X>> extends AbstractConfiguredObject<X>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.qpid.server.model.AbstractConfiguredObject
AbstractConfiguredObject.CallableWithArgument<V extends Object,A extends Object>, AbstractConfiguredObject.ChainedListenableFuture<V extends Object>, AbstractConfiguredObject.ChainedSettableFuture<V extends Object>, AbstractConfiguredObject.DuplicateIdException, AbstractConfiguredObject.DuplicateNameException
-
-
Field Summary
-
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
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractLogger(Map<String,Object> attributes, ConfiguredObject<?> parent)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidaddLogInclusionRule(LogBackLogInclusionRule logInclusionRule)protected abstract ch.qos.logback.core.Appender<ch.qos.logback.classic.spi.ILoggingEvent>createAppenderInstance(ch.qos.logback.core.Context context)protected ch.qos.logback.core.Appender<ch.qos.logback.classic.spi.ILoggingEvent>getAppender()longgetErrorCount()protected abstract Collection<? extends LogInclusionRule>getLogInclusionRules()static Map<String,Collection<String>>getSupportedBrokerLoggerChildTypes()static Map<String,Collection<String>>getSupportedVirtualHostLoggerChildTypes()longgetWarnCount()protected com.google.common.util.concurrent.ListenableFuture<Void>onDelete()protected voidpostResolveChildren()protected voidremoveLogInclusionRule(LogBackLogInclusionRule logInclusionRule)voidresetStatistics()voidstopLogging()-
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, 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
-
-
-
-
Constructor Detail
-
AbstractLogger
protected AbstractLogger(Map<String,Object> attributes, ConfiguredObject<?> parent)
-
-
Method Detail
-
addLogInclusionRule
protected final void addLogInclusionRule(LogBackLogInclusionRule logInclusionRule)
-
removeLogInclusionRule
protected final void removeLogInclusionRule(LogBackLogInclusionRule logInclusionRule)
-
postResolveChildren
protected void postResolveChildren()
- Overrides:
postResolveChildrenin classAbstractConfiguredObject<X extends AbstractLogger<X>>
-
createAppenderInstance
protected abstract ch.qos.logback.core.Appender<ch.qos.logback.classic.spi.ILoggingEvent> createAppenderInstance(ch.qos.logback.core.Context context)
-
getLogInclusionRules
protected abstract Collection<? extends LogInclusionRule> getLogInclusionRules()
-
onDelete
protected com.google.common.util.concurrent.ListenableFuture<Void> onDelete()
- Overrides:
onDeletein classAbstractConfiguredObject<X extends AbstractLogger<X>>
-
getErrorCount
public final long getErrorCount()
-
getWarnCount
public final long getWarnCount()
-
stopLogging
public void stopLogging()
-
resetStatistics
public void resetStatistics()
-
getAppender
protected ch.qos.logback.core.Appender<ch.qos.logback.classic.spi.ILoggingEvent> getAppender()
-
getSupportedVirtualHostLoggerChildTypes
public static Map<String,Collection<String>> getSupportedVirtualHostLoggerChildTypes()
-
getSupportedBrokerLoggerChildTypes
public static Map<String,Collection<String>> getSupportedBrokerLoggerChildTypes()
-
-