Package com.jalios.jcms.monitoring
Class Measure
- java.lang.Object
-
- com.jalios.jcms.monitoring.Measure
-
public class Measure extends java.lang.Object
Event that store all the values which are taken for a monitoring measures.- Since:
- jcms-5.7
- Author:
- Olivier Jaquemet
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.String
EVENT_TIME
protected static java.lang.String
MEASURE_ACTIVE_THREADS_NBR
protected static java.lang.String
MEASURE_CONTENT_NBR
protected static java.lang.String
MEASURE_DAEMON_THREADS_NBR
protected static java.lang.String
MEASURE_DATA_NBR
protected static java.lang.String
MEASURE_DBDATA_NBR
protected static java.lang.String
MEASURE_DOC_NBR
protected static java.lang.String
MEASURE_GUEST_SESSION_NBR
protected static java.lang.String
MEASURE_INTERRUPTED_THREADS_NBR
protected static java.lang.String
MEASURE_LOGGED_SESSION_NBR
protected static java.lang.String
MEASURE_MBR_NBR
protected static java.lang.String
MEASURE_MEM_FREE
protected static java.lang.String
MEASURE_MEM_MAX
protected static java.lang.String
MEASURE_MEM_TOTAL
protected static java.lang.String
MEASURE_REQUEST_NBR
protected static java.lang.String
MEASURE_ROBOT_SESSION_NBR
protected static java.lang.String
MEASURE_THREADS_NBR
protected static java.lang.String
MEASURE_UGC_NBR
static java.lang.String
NAME
-
Constructor Summary
Constructors Constructor Description Measure(MonitoringManager mm)
Create a new measure with current system valuesMeasure(MonitoringManager mm, long time, java.util.Random rand, Measure baseMeasure)
Create a new measure with random valuesMeasure(MonitoringManager mm, org.xml.sax.Attributes atts)
Create a new measure by reading given XML attributes
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getName()
long
getTime()
java.lang.String
getXmlString()
-
-
-
Field Detail
-
NAME
public static final java.lang.String NAME
- See Also:
- Constant Field Values
-
MEASURE_MEM_FREE
protected static final java.lang.String MEASURE_MEM_FREE
- See Also:
- Constant Field Values
-
MEASURE_MEM_TOTAL
protected static final java.lang.String MEASURE_MEM_TOTAL
- See Also:
- Constant Field Values
-
MEASURE_MEM_MAX
protected static final java.lang.String MEASURE_MEM_MAX
- See Also:
- Constant Field Values
-
MEASURE_DATA_NBR
protected static final java.lang.String MEASURE_DATA_NBR
- See Also:
- Constant Field Values
-
MEASURE_DBDATA_NBR
protected static final java.lang.String MEASURE_DBDATA_NBR
- See Also:
- Constant Field Values
-
MEASURE_UGC_NBR
protected static final java.lang.String MEASURE_UGC_NBR
- See Also:
- Constant Field Values
-
MEASURE_CONTENT_NBR
protected static final java.lang.String MEASURE_CONTENT_NBR
- See Also:
- Constant Field Values
-
MEASURE_DOC_NBR
protected static final java.lang.String MEASURE_DOC_NBR
- See Also:
- Constant Field Values
-
MEASURE_MBR_NBR
protected static final java.lang.String MEASURE_MBR_NBR
- See Also:
- Constant Field Values
-
MEASURE_REQUEST_NBR
protected static final java.lang.String MEASURE_REQUEST_NBR
- See Also:
- Constant Field Values
-
MEASURE_LOGGED_SESSION_NBR
protected static final java.lang.String MEASURE_LOGGED_SESSION_NBR
- See Also:
- Constant Field Values
-
MEASURE_GUEST_SESSION_NBR
protected static final java.lang.String MEASURE_GUEST_SESSION_NBR
- See Also:
- Constant Field Values
-
MEASURE_ROBOT_SESSION_NBR
protected static final java.lang.String MEASURE_ROBOT_SESSION_NBR
- See Also:
- Constant Field Values
-
MEASURE_THREADS_NBR
protected static final java.lang.String MEASURE_THREADS_NBR
- See Also:
- Constant Field Values
-
MEASURE_ACTIVE_THREADS_NBR
protected static final java.lang.String MEASURE_ACTIVE_THREADS_NBR
- See Also:
- Constant Field Values
-
MEASURE_DAEMON_THREADS_NBR
protected static final java.lang.String MEASURE_DAEMON_THREADS_NBR
- See Also:
- Constant Field Values
-
MEASURE_INTERRUPTED_THREADS_NBR
protected static final java.lang.String MEASURE_INTERRUPTED_THREADS_NBR
- See Also:
- Constant Field Values
-
EVENT_TIME
protected static final java.lang.String EVENT_TIME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Measure
public Measure(MonitoringManager mm)
Create a new measure with current system values- Parameters:
mm
- the MonitoringManager instance- Since:
- jcms-5.7
-
Measure
public Measure(MonitoringManager mm, org.xml.sax.Attributes atts)
Create a new measure by reading given XML attributes- Parameters:
mm
- the MonitoringManager instanceatts
- the attributes of the XML element- Since:
- jcms-5.7
-
Measure
public Measure(MonitoringManager mm, long time, java.util.Random rand, Measure baseMeasure)
Create a new measure with random values- Parameters:
mm
- the MonitoringManager instancetime
- the time of this measurerand
- a Random seed to usebaseMeasure
- the base measure around which random value will be generated- Since:
- jcms-5.7
-
-