Class BrokerFileLoggerImpl
- java.lang.Object
-
- org.apache.qpid.server.model.AbstractConfiguredObject<X>
-
- org.apache.qpid.server.logging.logback.AbstractLogger<X>
-
- org.apache.qpid.server.logging.logback.AbstractBrokerLogger<BrokerFileLoggerImpl>
-
- org.apache.qpid.server.logging.logback.BrokerFileLoggerImpl
-
- All Implemented Interfaces:
BrokerFileLogger<BrokerFileLoggerImpl>,FileLoggerSettings,BrokerLogger<BrokerFileLoggerImpl>,ConfiguredObject<BrokerFileLoggerImpl>,ContextProvider,PermissionedObject,TaskExecutorProvider
public class BrokerFileLoggerImpl extends AbstractBrokerLogger<BrokerFileLoggerImpl> implements BrokerFileLogger<BrokerFileLoggerImpl>, FileLoggerSettings
-
-
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.logging.logback.BrokerFileLogger
BROKER_FAIL_ON_LOGGER_IO_ERROR, DEFAULT_BROKER_FAIL_ON_LOGGER_IO_ERROR, FILE_NAME, MAX_FILE_SIZE, TYPE
-
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 protectedBrokerFileLoggerImpl(Map<String,Object> attributes, Broker<?> broker)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ch.qos.logback.core.Appender<ch.qos.logback.classic.spi.ILoggingEvent>createAppenderInstance(ch.qos.logback.core.Context loggerContext)ContentgetAllFiles()ScheduledExecutorServicegetExecutorService()ContentgetFile(String fileName)StringgetFileName()ContentgetFiles(Set<String> fileName)StringgetLayout()List<LogFileDetails>getLogFiles()intgetMaxFileSize()intgetMaxHistory()RollingPolicyDecorator.RolloverListenergetRolloverListener()booleanisCompressOldFiles()booleanisRollDaily()booleanisRollOnRestart()protected com.google.common.util.concurrent.ListenableFuture<Void>onClose()protected com.google.common.util.concurrent.ListenableFuture<Void>onDelete()protected voidpostResolveChildren()voidstopLogging()protected voidvalidateChange(ConfiguredObject<?> proxyForValidation, Set<String> changedAttributes)-
Methods inherited from class org.apache.qpid.server.logging.logback.AbstractBrokerLogger
getLogInclusionRules, isVirtualHostLogEventExcluded, onResolve
-
Methods inherited from class org.apache.qpid.server.logging.logback.AbstractLogger
addLogInclusionRule, getAppender, getErrorCount, getSupportedBrokerLoggerChildTypes, getSupportedVirtualHostLoggerChildTypes, getWarnCount, removeLogInclusionRule, resetStatistics
-
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, onCreate, onExceptionInOpen, onOpen, onValidate, open, openAsync, postResolve, postSetAttributes, registerWithParents, removeChangeListener, removeContextVariable, rethrowRuntimeExceptionsOnOpen, runTask, setAttributes, setAttributesAsync, setContextVariable, setEncrypter, setState, setUserPreferences, start, startAsync, stop, toString, updateModel, 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.BrokerLogger
getErrorCount, getWarnCount, isVirtualHostLogEventExcluded, resetStatistics
-
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.ContextProvider
getContextKeys, getContextValue, getContextValue
-
Methods inherited from interface org.apache.qpid.server.model.TaskExecutorProvider
getTaskExecutor
-
-
-
-
Method Detail
-
postResolveChildren
protected void postResolveChildren()
- Overrides:
postResolveChildrenin classAbstractLogger<BrokerFileLoggerImpl>
-
validateChange
protected void validateChange(ConfiguredObject<?> proxyForValidation, Set<String> changedAttributes)
- Overrides:
validateChangein classAbstractConfiguredObject<BrokerFileLoggerImpl>
-
getFileName
public String getFileName()
- Specified by:
getFileNamein interfaceBrokerFileLogger<BrokerFileLoggerImpl>- Specified by:
getFileNamein interfaceFileLoggerSettings
-
isRollDaily
public boolean isRollDaily()
- Specified by:
isRollDailyin interfaceBrokerFileLogger<BrokerFileLoggerImpl>- Specified by:
isRollDailyin interfaceFileLoggerSettings
-
isRollOnRestart
public boolean isRollOnRestart()
- Specified by:
isRollOnRestartin interfaceBrokerFileLogger<BrokerFileLoggerImpl>- Specified by:
isRollOnRestartin interfaceFileLoggerSettings
-
isCompressOldFiles
public boolean isCompressOldFiles()
- Specified by:
isCompressOldFilesin interfaceBrokerFileLogger<BrokerFileLoggerImpl>- Specified by:
isCompressOldFilesin interfaceFileLoggerSettings
-
getMaxHistory
public int getMaxHistory()
- Specified by:
getMaxHistoryin interfaceBrokerFileLogger<BrokerFileLoggerImpl>- Specified by:
getMaxHistoryin interfaceFileLoggerSettings
-
getMaxFileSize
public int getMaxFileSize()
- Specified by:
getMaxFileSizein interfaceBrokerFileLogger<BrokerFileLoggerImpl>- Specified by:
getMaxFileSizein interfaceFileLoggerSettings
-
getLayout
public String getLayout()
- Specified by:
getLayoutin interfaceBrokerFileLogger<BrokerFileLoggerImpl>- Specified by:
getLayoutin interfaceFileLoggerSettings
-
getLogFiles
public List<LogFileDetails> getLogFiles()
- Specified by:
getLogFilesin interfaceBrokerFileLogger<BrokerFileLoggerImpl>
-
getFile
public Content getFile(String fileName)
- Specified by:
getFilein interfaceBrokerFileLogger<BrokerFileLoggerImpl>
-
getFiles
public Content getFiles(Set<String> fileName)
- Specified by:
getFilesin interfaceBrokerFileLogger<BrokerFileLoggerImpl>
-
getAllFiles
public Content getAllFiles()
- Specified by:
getAllFilesin interfaceBrokerFileLogger<BrokerFileLoggerImpl>
-
stopLogging
public void stopLogging()
- Specified by:
stopLoggingin interfaceBrokerLogger<BrokerFileLoggerImpl>- Overrides:
stopLoggingin classAbstractLogger<BrokerFileLoggerImpl>
-
getRolloverListener
public RollingPolicyDecorator.RolloverListener getRolloverListener()
- Specified by:
getRolloverListenerin interfaceFileLoggerSettings
-
getExecutorService
public ScheduledExecutorService getExecutorService()
- Specified by:
getExecutorServicein interfaceFileLoggerSettings
-
createAppenderInstance
protected ch.qos.logback.core.Appender<ch.qos.logback.classic.spi.ILoggingEvent> createAppenderInstance(ch.qos.logback.core.Context loggerContext)
- Specified by:
createAppenderInstancein classAbstractLogger<BrokerFileLoggerImpl>
-
onClose
protected com.google.common.util.concurrent.ListenableFuture<Void> onClose()
- Overrides:
onClosein classAbstractConfiguredObject<BrokerFileLoggerImpl>
-
onDelete
protected com.google.common.util.concurrent.ListenableFuture<Void> onDelete()
- Overrides:
onDeletein classAbstractLogger<BrokerFileLoggerImpl>
-
-