Package wt.jmx.core.mbeans
Class ManagedDirView
java.lang.Object
javax.management.StandardMBean
wt.jmx.core.StandardMBean
wt.jmx.core.SelfAwareMBean
wt.jmx.core.mbeans.AbstractFileView
wt.jmx.core.mbeans.DirView
wt.jmx.core.mbeans.ManagedDirView
- All Implemented Interfaces:
DynamicMBean,MBeanRegistration,BaseObjectNamed,AbstractFileViewMBean,DirViewMBean,ManagedDirViewMBean,SelfEmailingMBean
- Direct Known Subclasses:
LogsDirViewer
Extension of
Supported API: true
Extendable: false
DirView that provides basic
functionality for managing old files.
Supported API: true
Extendable: false
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classFileVisitorthat attempts to gzip any non-directory, non-.gz file it visits except for files older than ReallyOldThresholdDays which it simply deletes likeManagedDirView.FileDeleter.static classSimpleFileVisitorthat attempts to delete any non-directory file it visits. -
Method Summary
Modifier and TypeMethodDescriptionstatic ManagedDirViewnewManagedDirView(File dir, String[] fileExtensions) Static factory method.static ManagedDirViewnewManagedDirView(File dir, String[] fileExtensions, boolean allowNumericSuffixes, boolean refreshOnStart) Static factory method.static ManagedDirViewnewManagedDirView(File dir, String fileMatchingExpression, boolean refreshOnStart) Static factory method.Methods inherited from class wt.jmx.core.mbeans.DirView
newDirView, newDirView, newDirViewMethods inherited from class wt.jmx.core.SelfAwareMBean
deregister, destroy, getBaseObjectName, getObjectName, getObjectNameOnPreRegister, getOwnerMBean, getSelfAwareMBean, init, isInited, isRegistered, isStarted, onDestroy, onInit, postDeregister, postRegister, preDeregister, preRegister, register, register, register, resetObjectName, setOwnerMBean, start, stopMethods inherited from class wt.jmx.core.StandardMBean
cacheMBeanInfo, cacheMBeanInfoInInstance, createMBeanInfo, emailThisMBean, getAttributes, getCachedInstanceMBeanInfo, getCachedMBeanInfo, getDescription, getDescription, getDescription, getDescription, getImpact, getMBeanInfo, getParameterName, setAttributesMethods inherited from class javax.management.StandardMBean
getAttribute, getClassName, getConstructors, getDescription, getDescription, getDescription, getImplementation, getImplementationClass, getMBeanInterface, getParameterName, invoke, setAttribute, setImplementationMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface wt.jmx.core.mbeans.AbstractFileViewMBean
getLastModifiedTime, getName, getPath, isExistsMethods inherited from interface wt.jmx.core.mbeans.DirViewMBean
emailFiles, emailFiles, emailFiles, getAllowGzip, getAllowNumericSuffixes, getFileAsGzippedBytes, getFileAsStreamingResult, getFileAsStreamingResult, getFileExtensions, getFileMatchingExpression, getFilesAsStreamingResult, getFilesAsStreamingResult, getFreeSpace, getLastModifiedTime, getPercentFreeSpace, getPercentUsableSpace, getTotalSpace, getUsableSpace, listFiles, listFiles, refresh, searchFiles, searchFiles, searchFiles, searchFiles, searchFilesAsMap, searchFilesAsMap, searchFilesAsMap, searchFilesAsMap, sendFilesToSupport, sendFilesToSupport, sendFilesToSupport, viewFile, viewFileMethods inherited from interface wt.jmx.core.mbeans.SelfEmailingMBean
emailThisMBean
-
Method Details
-
newManagedDirView
Static factory method.
Supported API: true -
newManagedDirView
public static ManagedDirView newManagedDirView(File dir, String[] fileExtensions, boolean allowNumericSuffixes, boolean refreshOnStart) Static factory method.
Supported API: true -
newManagedDirView
public static ManagedDirView newManagedDirView(File dir, String fileMatchingExpression, boolean refreshOnStart) Static factory method.
Supported API: true
-