Package org.jppf.utils.stats
Class JPPFStatisticsHelper
java.lang.Object
org.jppf.utils.stats.JPPFStatisticsHelper
This helper class holds the constants definitions for the labels
of the statistics snapshots used in JPPF, along with utility methods.
- Author:
- Laurent Cohen
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringTime for class loading requests from nodes to complete.static final StringBytes received from remote clients.static final StringBytes sent to remote clients.static final StringNumber of client connections.static final StringJob dispatches per job counters.static final StringExecution times including server/nodes transport overhead.static final StringNumber of idle connected nodes.static final StringBytes received from JMX remote peers.static final StringBytes sent to JMX remote peers.static final StringJobs counters.static final StringJob dispatches counters.static final StringNumber of tasks in job dispatches.static final StringJob dispatches times.static final StringTotal number of job dispatches.static final StringNumber of tasks in jobs.static final StringJobs times.static final StringTotal number of submitted jobs.static final StringTime for class loading requests from nodes to complete.static final StringExecution times in the nodes.static final StringBytes received from remote nodes.static final StringBytes sent to remote nodes.static final StringNumber of connected nodes.static final StringBytes received from remote peer servers.static final StringBytes sent to remote peer servers.static final StringCount of tasks dispatched to nodes.static final StringQueue tasks count.static final StringQueue tasks times.static final StringTotal queued tasks.static final StringJPPF and network transport overhead.static final StringBytes received from unidentified remote peers.static final StringBytes sent to unidentified remote peers. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic JPPFStatisticsCreate a statistics object initialized with all the required server snapshots.static StringgetLocalizedLabel(JPPFSnapshot snapshot) Get the localized translation of the label of the specified snapshot in the current locale.static StringgetLocalizedLabel(JPPFSnapshot snapshot, Locale locale) Get the localized translation of the label of the specified snapshot in the specified locale.static booleanisCumulative(JPPFSnapshot snapshot) Determine wether the specified snapshot is a cumulative snapshot.static booleanisNonCumulative(JPPFSnapshot snapshot) Determine wether the specified snapshot is a non-cumulative snapshot.static booleanisSingleValue(JPPFSnapshot snapshot) Determine wether the specified snapshot is a single value snapshot.static voidtoProperties(TypedProperties statsProperties, JPPFSnapshot snapshot) Add or update the values of the specified snapshot as properties in the specified set of properties.
-
Field Details
-
TASK_DISPATCH
Count of tasks dispatched to nodes.- See Also:
-
EXECUTION
Execution times including server/nodes transport overhead.- See Also:
-
NODE_EXECUTION
Execution times in the nodes.- See Also:
-
TRANSPORT_TIME
JPPF and network transport overhead.- See Also:
-
TASK_QUEUE_TOTAL
Total queued tasks.- See Also:
-
TASK_QUEUE_COUNT
Queue tasks count.- See Also:
-
TASK_QUEUE_TIME
Queue tasks times.- See Also:
-
JOB_TOTAL
Total number of submitted jobs.- See Also:
-
JOB_COUNT
Jobs counters.- See Also:
-
JOB_TIME
Jobs times.- See Also:
-
JOB_TASKS
Number of tasks in jobs.- See Also:
-
JOB_DISPATCH_TOTAL
Total number of job dispatches.- See Also:
-
JOB_DISPATCH_COUNT
Job dispatches counters.- See Also:
-
DISPATCH_PER_JOB_COUNT
Job dispatches per job counters.- See Also:
-
JOB_DISPATCH_TIME
Job dispatches times.- See Also:
-
JOB_DISPATCH_TASKS
Number of tasks in job dispatches.- See Also:
-
NODES
Number of connected nodes.- See Also:
-
IDLE_NODES
Number of idle connected nodes.- See Also:
-
CLIENTS
Number of client connections.- See Also:
-
NODE_CLASS_REQUESTS_TIME
Time for class loading requests from nodes to complete.- See Also:
-
CLIENT_CLASS_REQUESTS_TIME
Time for class loading requests from nodes to complete.- See Also:
-
NODE_IN_TRAFFIC
Bytes received from remote nodes.- See Also:
-
NODE_OUT_TRAFFIC
Bytes sent to remote nodes.- See Also:
-
CLIENT_IN_TRAFFIC
Bytes received from remote clients.- See Also:
-
CLIENT_OUT_TRAFFIC
Bytes sent to remote clients.- See Also:
-
PEER_IN_TRAFFIC
Bytes received from remote peer servers.- See Also:
-
PEER_OUT_TRAFFIC
Bytes sent to remote peer servers.- See Also:
-
JMX_IN_TRAFFIC
Bytes received from JMX remote peers.- See Also:
-
JMX_OUT_TRAFFIC
Bytes sent to JMX remote peers.- See Also:
-
UNKNOWN_IN_TRAFFIC
Bytes received from unidentified remote peers.- See Also:
-
UNKNOWN_OUT_TRAFFIC
Bytes sent to unidentified remote peers.- See Also:
-
-
Constructor Details
-
JPPFStatisticsHelper
public JPPFStatisticsHelper()
-
-
Method Details
-
isSingleValue
Determine wether the specified snapshot is a single value snapshot.- Parameters:
snapshot- the snapshot to evaluate.- Returns:
trueif the snapshot is a single value snapshot,falseotherwise.
-
isCumulative
Determine wether the specified snapshot is a cumulative snapshot.- Parameters:
snapshot- the snapshot to evaluate.- Returns:
trueif the snapshot is a cumulative snapshot,falseotherwise.
-
isNonCumulative
Determine wether the specified snapshot is a non-cumulative snapshot.- Parameters:
snapshot- the snapshot to evaluate.- Returns:
trueif the snapshot is a non-cumulative snapshot,falseotherwise.
-
getLocalizedLabel
Get the localized translation of the label of the specified snapshot in the current locale.- Parameters:
snapshot- the snapshot whose label to translate.- Returns:
- a translation of the label, or the label itself if no translation could be found.
-
getLocalizedLabel
Get the localized translation of the label of the specified snapshot in the specified locale.- Parameters:
snapshot- the snapshot whose label to translate.locale- the locale in which to translate.- Returns:
- a translation of the label, or the label itself if no translation could be found.
-
toProperties
Add or update the values of the specified snapshot as properties in the specified set of properties.- Parameters:
statsProperties- the set of properties to update.snapshot- the snapshot to update from.
-
createServerStatistics
Create a statistics object initialized with all the required server snapshots.- Returns:
- a
JPPFStatisticsinstance.
-