| org.jboss.services.loggingmonitor.LoggingMonitorMBean
All known Subclasses: org.jboss.services.loggingmonitor.LoggingMonitor,
LoggingMonitorMBean | public interface LoggingMonitorMBean extends ServiceMBean(Code) | | This is the management interface of the LoggingMonitor service which provides
the ability to create monitoring logs for various MBeans and their
attributes.
author: James Wilson author: Dimitris Andreadis version: $Revision: 57210 $ |
getAppendToFile | boolean getAppendToFile()(Code) | | |
getMonitorPeriod | long getMonitorPeriod()(Code) | | |
getRolloverFormat | String getRolloverFormat()(Code) | | This monitor's log file rollover format as determined by the
RolloverPeriod attribute.
|
setAppendToFile | void setAppendToFile(boolean appendToFile)(Code) | | Flag to indicate whether or not this monitor's log file should have
information appended to it, if it already exists. (default is true)
|
setFilename | void setFilename(String filename)(Code) | | The name of the file to which this monitor's information
will be logged.
|
setMonitorPeriod | void setMonitorPeriod(long monitorPeriod)(Code) | | The period to delay between monitoring snapshots.
(non-zero positive value)
|
setMonitoredObjects | void setMonitoredObjects(Element monitoredObjects) throws MalformedObjectNameException(Code) | | Sets the monitored objects configuration.
Parameters: monitoredObjects - the objects to be monitored specified in thefollowing format:<attribute name="MonitoredObjects"><configuration><monitoredmbean name="[object name]" logger="[logger name]"><attribute>[attribute name]</attribute><attribute>[attribute name]</attribute>...</monitoredmbean></configuration></attribute> throws: MalformedObjectNameException - if the monitored objectsconfiguration contains an invalidobject name. |
setPatternLayout | void setPatternLayout(String patternLayout)(Code) | | The PatternLayout for logging entries
(default is "%d %-5p [%c] %m%n")
|
setRolloverPeriod | void setRolloverPeriod(String rolloverPeriod)(Code) | | This monitor's log file rollover period. Valid values are
MONTH, WEEK, DAY, HALFDAY, HOUR, and MINUTE (case insensitive).
(default is DAY)
|
|
|