public class WindowMonitoringTimerTask extends MonitoringTimerTask
WindowMonitoringTimerTask
class allows to periodically watch
JMX attributes and send the corresponding values to the outpuStrean.Modifier and Type | Field and Description |
---|---|
(package private) JTextField |
addMbeanField |
(package private) JTextField |
attField |
static String |
DEFAULT_MONITORING_CONFIG_PATH
Default value for the pathname of a configuration file for the monitoring task
in the server, value is
windowMonitoring.props . |
static long |
DEFAULT_MONITORING_CONFIG_PERIOD
Default value for the scanning period for the monitoring task in the
server, value is
60000L (60 seconds). |
(package private) JTextField |
delMbeanField |
(package private) Graphics |
graph |
static String |
MONITORING_CONFIG_PATH_PROPERTY
Name of property allowing to fix the pathname of a configuration file for the
monitoring task in the server.
|
static String |
MONITORING_CONFIG_PERIOD_PROPERTY
Name of property allowing to fix the scanning period for the monitoring
task in the server.
|
(package private) StringBuffer |
strbuf |
(package private) JTextArea |
textArea |
attlist, logger, MBean_name, period
Constructor and Description |
---|
WindowMonitoringTimerTask()
Instantiates the
WindowMonitoringTimerTask component. |
WindowMonitoringTimerTask(Timer timer,
long period,
Properties attlist)
Initializes the
FileMonitoringTimerTask component. |
Modifier and Type | Method and Description |
---|---|
protected void |
addRecord(String mbean,
String att,
Object value)
Records information about the specified attribute.
|
protected void |
finalizeRecords()
Finalize the record for the current time.
|
protected void |
GUI(String title,
int x,
int y)
Create window for print monitoring results
|
void |
init(Timer timer,
long period,
Properties attlist,
Properties taskProps)
Initializes the
WindowMonitoringTimerTask component. |
protected void |
initializeRecords()
Initialize the record for the current collect time.
|
addMonitoredAttributes, cancelTask, delMonitoredAttributes, getMonitoredAttributes, getPeriod, run, start
cancel, scheduledExecutionTime
public static final String MONITORING_CONFIG_PERIOD_PROPERTY
This property can be fixed either from java
launching command,
or in a3servers.xml
configuration file.
public static final long DEFAULT_MONITORING_CONFIG_PERIOD
60000L
(60 seconds).public static final String MONITORING_CONFIG_PATH_PROPERTY
This property can be fixed either from java
launching command,
or in a3servers.xml
configuration file.
public static final String DEFAULT_MONITORING_CONFIG_PATH
windowMonitoring.props
.
If the file does not exist the timer task is not launched.
StringBuffer strbuf
JTextArea textArea
JTextField attField
JTextField addMbeanField
JTextField delMbeanField
Graphics graph
public WindowMonitoringTimerTask(Timer timer, long period, Properties attlist)
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.public WindowMonitoringTimerTask()
WindowMonitoringTimerTask
component.public void init(Timer timer, long period, Properties attlist, Properties taskProps)
WindowMonitoringTimerTask
component.init
in class MonitoringTimerTask
protected void initializeRecords()
initializeRecords
in class MonitoringTimerTask
MonitoringTimerTask.initializeRecords()
protected void addRecord(String mbean, String att, 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.fr.dyade.aaa.common.monitoring.MonitoringTimerTask#addRecord(javax.management.ObjectName,
java.lang.String, java.lang.Object)
protected void finalizeRecords()
finalizeRecords
in class MonitoringTimerTask
MonitoringTimerTask.finalizeRecords()
protected void GUI(String title, int x, int y)
Copyright © 2018 ScalAgent D.T.. All Rights Reserved.