|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.TimerTask
fr.dyade.aaa.common.monitoring.MonitoringTimerTask
fr.dyade.aaa.common.monitoring.FileMonitoringTimerTask
public class FileMonitoringTimerTask
The FileMonitoringTimerTask
class allows to periodically watch JMX attributes
and store the corresponding values to a file in CSV format.
Field Summary | |
---|---|
static java.lang.String |
DEFAULT_MONITORING_CONFIG_PATH
Default value for the pathname of a configuration file for a csv file monitoring task in the server, value is fileMonitoring.props . |
static long |
DEFAULT_MONITORING_CONFIG_PERIOD
Default value for the scanning period for the csv file monitoring task in the server, value is 60000L (5 seconds). |
static java.lang.String |
DEFAULT_MONITORING_RESULT_PATH
Default value for the pathname of the results file for the monitoring task in the server, value is monitoringStats.csv . |
static java.lang.String |
MONITORING_CONFIG_PATH_PROPERTY
Name of property allowing to fix the pathname of a configuration file for a csv file monitoring task in the server. |
static java.lang.String |
MONITORING_CONFIG_PERIOD_PROPERTY
Name of property allowing to fix the scanning period for the csv file monitoring task in the server. |
static java.lang.String |
MONITORING_RESULT_PATH_PROPERTY
Name of property allowing to fix the pathname of the results file for the csv file monitoring task in the server. |
(package private) java.lang.StringBuffer |
strbuf
|
(package private) java.io.FileWriter |
writer
|
Fields inherited from class fr.dyade.aaa.common.monitoring.MonitoringTimerTask |
---|
attlist, logger, period |
Constructor Summary | |
---|---|
FileMonitoringTimerTask(java.util.Timer timer,
long period,
java.util.Properties attlist,
java.lang.String path)
Initializes the FileMonitoringTimerTask component. |
Method Summary | |
---|---|
protected void |
addRecord(javax.management.ObjectName mbean,
java.lang.String att,
java.lang.Object value)
Records information about the specified attribute. |
protected void |
finalizeRecords()
Finalize the record for the current time. |
protected void |
initializeRecords()
Initialize the record for the current collect time. |
Methods inherited from class fr.dyade.aaa.common.monitoring.MonitoringTimerTask |
---|
addMonitoredAttributes, cancelTask, delMonitoredAttributes, getMonitoredAttributes, getPeriod, run, start |
Methods inherited from class java.util.TimerTask |
---|
cancel, scheduledExecutionTime |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String MONITORING_CONFIG_PERIOD_PROPERTY
This property can be fixed either from java
launching command,
or in a3servers.xml
configuration file.
FileMonitoringTimerTask
,
Constant Field Valuespublic static final long DEFAULT_MONITORING_CONFIG_PERIOD
60000L
(5 seconds).
FileMonitoringTimerTask
,
Constant Field Valuespublic static final java.lang.String MONITORING_CONFIG_PATH_PROPERTY
This property can be fixed either from java
launching command,
or in a3servers.xml
configuration file.
FileMonitoringTimerTask
,
Constant Field Valuespublic static final java.lang.String DEFAULT_MONITORING_CONFIG_PATH
fileMonitoring.props
.
If the file does not exist the timer task is not launched.
FileMonitoringTimerTask
,
Constant Field Valuespublic static final java.lang.String MONITORING_RESULT_PATH_PROPERTY
This property can be fixed either from java
launching command,
or in a3servers.xml
configuration file.
FileMonitoringTimerTask
,
Constant Field Valuespublic static final java.lang.String DEFAULT_MONITORING_RESULT_PATH
monitoringStats.csv
.
FileMonitoringTimerTask
,
Constant Field Valuesjava.io.FileWriter writer
java.lang.StringBuffer strbuf
Constructor Detail |
---|
public FileMonitoringTimerTask(java.util.Timer timer, long period, java.util.Properties attlist, java.lang.String path)
FileMonitoringTimerTask
component.
timer
- Timer to use to schedule the resulting task.period
- Period value of the resulting taskattlist
- List of JMX attributes to periodically watch.path
- Pathname of resulting CSV file.Method Detail |
---|
protected void initializeRecords()
initializeRecords
in class MonitoringTimerTask
MonitoringTimerTask.initializeRecords()
protected void addRecord(javax.management.ObjectName mbean, java.lang.String att, java.lang.Object value)
addRecord
in class MonitoringTimerTask
mbean
- The name of the related mbean.att
- The name of the related attribute.value
- The value of the related attribute.MonitoringTimerTask.addRecord(javax.management.ObjectName, java.lang.String, java.lang.Object)
protected void finalizeRecords()
finalizeRecords
in class MonitoringTimerTask
MonitoringTimerTask.finalizeRecords()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |