Class VirtualHostFileLoggerImpl
- java.lang.Object
-
- org.apache.qpid.server.model.AbstractConfiguredObject<X>
-
- org.apache.qpid.server.logging.logback.AbstractLogger<X>
-
- org.apache.qpid.server.logging.logback.AbstractVirtualHostLogger<VirtualHostFileLoggerImpl>
-
- org.apache.qpid.server.logging.logback.VirtualHostFileLoggerImpl
-
- All Implemented Interfaces:
FileLoggerSettings,VirtualHostFileLogger<VirtualHostFileLoggerImpl>,ConfiguredObject<VirtualHostFileLoggerImpl>,ContextProvider,PermissionedObject,TaskExecutorProvider,VirtualHostLogger<VirtualHostFileLoggerImpl>
public class VirtualHostFileLoggerImpl extends AbstractVirtualHostLogger<VirtualHostFileLoggerImpl> implements VirtualHostFileLogger<VirtualHostFileLoggerImpl>, 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.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.logging.logback.VirtualHostFileLogger
FILE_NAME, MAX_FILE_SIZE, TYPE
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedVirtualHostFileLoggerImpl(Map<String,Object> attributes, VirtualHost<?> virtualHost)
-
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 voidpostResolveChildren()voidstopLogging()protected voidvalidateChange(ConfiguredObject<?> proxyForValidation, Set<String> changedAttributes)-
Methods inherited from class org.apache.qpid.server.logging.logback.AbstractVirtualHostLogger
getLogInclusionRules, onResolve
-
Methods inherited from class org.apache.qpid.server.logging.logback.AbstractLogger
addLogInclusionRule, getAppender, getErrorCount, getSupportedBrokerLoggerChildTypes, getSupportedVirtualHostLoggerChildTypes, getWarnCount, onDelete, 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, onClose, 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.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
-
Methods inherited from interface org.apache.qpid.server.model.VirtualHostLogger
getErrorCount, getWarnCount, resetStatistics
-
-
-
-
Constructor Detail
-
VirtualHostFileLoggerImpl
protected VirtualHostFileLoggerImpl(Map<String,Object> attributes, VirtualHost<?> virtualHost)
-
-
Method Detail
-
postResolveChildren
protected void postResolveChildren()
- Overrides:
postResolveChildrenin classAbstractLogger<VirtualHostFileLoggerImpl>
-
validateChange
protected void validateChange(ConfiguredObject<?> proxyForValidation, Set<String> changedAttributes)
- Overrides:
validateChangein classAbstractConfiguredObject<VirtualHostFileLoggerImpl>
-
getFileName
public String getFileName()
- Specified by:
getFileNamein interfaceFileLoggerSettings- Specified by:
getFileNamein interfaceVirtualHostFileLogger<VirtualHostFileLoggerImpl>
-
isRollDaily
public boolean isRollDaily()
- Specified by:
isRollDailyin interfaceFileLoggerSettings- Specified by:
isRollDailyin interfaceVirtualHostFileLogger<VirtualHostFileLoggerImpl>
-
isRollOnRestart
public boolean isRollOnRestart()
- Specified by:
isRollOnRestartin interfaceFileLoggerSettings- Specified by:
isRollOnRestartin interfaceVirtualHostFileLogger<VirtualHostFileLoggerImpl>
-
isCompressOldFiles
public boolean isCompressOldFiles()
- Specified by:
isCompressOldFilesin interfaceFileLoggerSettings- Specified by:
isCompressOldFilesin interfaceVirtualHostFileLogger<VirtualHostFileLoggerImpl>
-
getMaxHistory
public int getMaxHistory()
- Specified by:
getMaxHistoryin interfaceFileLoggerSettings- Specified by:
getMaxHistoryin interfaceVirtualHostFileLogger<VirtualHostFileLoggerImpl>
-
getMaxFileSize
public int getMaxFileSize()
- Specified by:
getMaxFileSizein interfaceFileLoggerSettings- Specified by:
getMaxFileSizein interfaceVirtualHostFileLogger<VirtualHostFileLoggerImpl>
-
getLayout
public String getLayout()
- Specified by:
getLayoutin interfaceFileLoggerSettings- Specified by:
getLayoutin interfaceVirtualHostFileLogger<VirtualHostFileLoggerImpl>
-
getLogFiles
public List<LogFileDetails> getLogFiles()
- Specified by:
getLogFilesin interfaceVirtualHostFileLogger<VirtualHostFileLoggerImpl>
-
getFile
public Content getFile(String fileName)
- Specified by:
getFilein interfaceVirtualHostFileLogger<VirtualHostFileLoggerImpl>
-
getFiles
public Content getFiles(Set<String> fileName)
- Specified by:
getFilesin interfaceVirtualHostFileLogger<VirtualHostFileLoggerImpl>
-
getAllFiles
public Content getAllFiles()
- Specified by:
getAllFilesin interfaceVirtualHostFileLogger<VirtualHostFileLoggerImpl>
-
stopLogging
public void stopLogging()
- Specified by:
stopLoggingin interfaceVirtualHostLogger<VirtualHostFileLoggerImpl>- Overrides:
stopLoggingin classAbstractLogger<VirtualHostFileLoggerImpl>
-
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<VirtualHostFileLoggerImpl>
-
-