wt.jmx.core.mbeans
Interface DirViewMBean

All Superinterfaces:
AbstractFileViewMBean, SelfEmailingMBean
All Known Implementing Classes:
DirView, LogsDirViewer, SimpleDirViewer

public interface DirViewMBean
extends AbstractFileViewMBean

Allows viewing of selected contents of a selected directory

Supported API: true

Extendable: true


Method Summary
 void emailFiles(String addressesOrEmailList, String subject, boolean oneMessagePerFile, boolean recursive)
          E-mail files filtered as per MBean attributes

Supported API: true
 void emailFiles(String addressesOrEmailList, String subject, boolean oneMessagePerFile, boolean recursive, int maxAgeInDays)
          E-mail files filtered as per MBean attributes and specified file age

Supported API: true
 void emailFiles(String addressesOrEmailList, String subject, boolean oneMessagePerFile, boolean recursive, int maxAgeInDays, int minAgeInDays, String matchingExpression)
          E-mail files filtered as per MBean attributes, specified file age, and matching expression

Supported API: true
 Boolean getAllowNumericSuffixes()
          Whether file filter allows numeric suffixes (".1", for example) after the specified extension (ignored when FileExtensions is unspecified/null)

Supported API: true
 String[] getFileExtensions()
          Extensions of files to be shown

Supported API: true
 String getFileMatchingExpression()
          Regular expression used to filter file names shown

Supported API: true
 void refresh()
          Refresh set of MBeans aggregated by this one based on current file system state

Supported API: true
 
Methods inherited from interface wt.jmx.core.mbeans.AbstractFileViewMBean
getLastModifiedTime, getName, getPath, isExists
 
Methods inherited from interface wt.jmx.core.mbeans.SelfEmailingMBean
emailThisMBean
 

Method Detail

getFileExtensions

String[] getFileExtensions()
Extensions of files to be shown

Supported API: true


getAllowNumericSuffixes

Boolean getAllowNumericSuffixes()
Whether file filter allows numeric suffixes (".1", for example) after the specified extension (ignored when FileExtensions is unspecified/null)

Supported API: true


getFileMatchingExpression

String getFileMatchingExpression()
Regular expression used to filter file names shown

Supported API: true


refresh

void refresh()
Refresh set of MBeans aggregated by this one based on current file system state

Supported API: true


emailFiles

void emailFiles(String addressesOrEmailList,
                String subject,
                boolean oneMessagePerFile,
                boolean recursive)
                throws IOException
E-mail files filtered as per MBean attributes

Supported API: true

Parameters:
addressesOrEmailList - Comma-delimited list of e-mail addresses or name of e-mail list to send e-mail to
subject - Subject to give e-mail
oneMessagePerFile - Whether to send a separate e-mail message for each file
recursive - Whether to include files from sub-directories
Throws:
IOException

emailFiles

void emailFiles(String addressesOrEmailList,
                String subject,
                boolean oneMessagePerFile,
                boolean recursive,
                int maxAgeInDays)
                throws IOException
E-mail files filtered as per MBean attributes and specified file age

Supported API: true

Parameters:
addressesOrEmailList - Comma-delimited list of e-mail addresses or name of e-mail list to send e-mail to
subject - Subject to give e-mail
oneMessagePerFile - Whether to send a separate e-mail message for each file
recursive - Whether to include files from sub-directories
maxAgeInDays - Maximum age in days (by modification date) of files to e-mail
Throws:
IOException

emailFiles

void emailFiles(String addressesOrEmailList,
                String subject,
                boolean oneMessagePerFile,
                boolean recursive,
                int maxAgeInDays,
                int minAgeInDays,
                String matchingExpression)
                throws IOException
E-mail files filtered as per MBean attributes, specified file age, and matching expression

Supported API: true

Parameters:
addressesOrEmailList - Comma-delimited list of e-mail addresses or name of e-mail list to send e-mail to
subject - Subject to give e-mail
oneMessagePerFile - Whether to send a separate e-mail message for each file
recursive - Whether to include files from sub-directories
maxAgeInDays - Maximum age in days (by modification date) of files to e-mail
minAgeInDays - Minimum age in days (by modification date) of files to e-mail; ignored when less than or equal to zero
matchingExpression - Regular expression file names must match to be e-mailed; ignored if empty or null
Throws:
IOException