public final class JPPFStatisticsHelper extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CLIENT_CLASS_REQUESTS_TIME
Time for class loading requests from nodes to complete.
|
static String |
CLIENT_IN_TRAFFIC
Bytes received from remote clients.
|
static String |
CLIENT_OUT_TRAFFIC
Bytes sent to remote clients.
|
static String |
CLIENTS
Number of client connections.
|
static String |
EXECUTION
Execution times including server/nodes transport overhead.
|
static String |
IDLE_NODES
Number of idle connected nodes.
|
static String |
JOB_COUNT
Jobs counters.
|
static String |
JOB_TASKS
Number of tasks in jobs.
|
static String |
JOB_TIME
Jobs times.
|
static String |
JOB_TOTAL
Total number of submitted jobs.
|
static String |
NODE_CLASS_REQUESTS_TIME
Time for class loading requests from nodes to complete.
|
static String |
NODE_EXECUTION
Execution times in the nodes.
|
static String |
NODE_IN_TRAFFIC
Bytes received from remote nodes.
|
static String |
NODE_OUT_TRAFFIC
Bytes sent to remote nodes.
|
static String |
NODES
Number of connected nodes.
|
static String |
PEER_IN_TRAFFIC
Bytes received from remote peer servers.
|
static String |
PEER_OUT_TRAFFIC
Bytes sent to remote peer servers.
|
static String |
TASK_DISPATCH
Count of tasks dispatched to nodes.
|
static String |
TASK_QUEUE_COUNT
Queue tasks count.
|
static String |
TASK_QUEUE_TIME
Queue tasks times.
|
static String |
TASK_QUEUE_TOTAL
Total queued tasks.
|
static String |
TRANSPORT_TIME
JPPF and network transport overhead.
|
static String |
UNIDENTIFIED_IN_TRAFFIC
Bytes received from unidentified remote peers.
|
static String |
UNIDENTIFIED_OUT_TRAFFIC
Bytes sent to unidentified remote peers.
|
Constructor and Description |
---|
JPPFStatisticsHelper() |
Modifier and Type | Method and Description |
---|---|
static String |
getLocalizedLabel(JPPFSnapshot snapshot)
Get the localized translation of the label of the specified snapshot in the current locale.
|
static String |
getLocalizedLabel(JPPFSnapshot snapshot,
Locale locale)
Get the localized translation of the label of the specified snapshot in the specified locale.
|
static boolean |
isCumulative(JPPFSnapshot snapshot)
Determine wether the specified snapshot is a cumulative snapshot.
|
static boolean |
isNonCumulative(JPPFSnapshot snapshot)
Determine wether the specified snapshot is a non-cumulative snapshot.
|
static boolean |
isSingleValue(JPPFSnapshot snapshot)
Determine wether the specified snapshot is a single value snapshot.
|
static void |
toProperties(TypedProperties statsProperties,
JPPFSnapshot snapshot)
Add or update the values of the specified snapshot as properties in the specified set of properties.
|
public static final String TASK_DISPATCH
public static final String EXECUTION
public static final String NODE_EXECUTION
public static final String TRANSPORT_TIME
public static final String TASK_QUEUE_TOTAL
public static final String TASK_QUEUE_COUNT
public static final String TASK_QUEUE_TIME
public static final String JOB_TOTAL
public static final String JOB_COUNT
public static final String JOB_TIME
public static final String JOB_TASKS
public static final String NODES
public static final String IDLE_NODES
public static final String CLIENTS
public static final String NODE_CLASS_REQUESTS_TIME
public static final String CLIENT_CLASS_REQUESTS_TIME
public static final String NODE_IN_TRAFFIC
public static final String NODE_OUT_TRAFFIC
public static final String CLIENT_IN_TRAFFIC
public static final String CLIENT_OUT_TRAFFIC
public static final String PEER_IN_TRAFFIC
public static final String PEER_OUT_TRAFFIC
public static final String UNIDENTIFIED_IN_TRAFFIC
public static final String UNIDENTIFIED_OUT_TRAFFIC
public JPPFStatisticsHelper()
public static boolean isSingleValue(JPPFSnapshot snapshot)
snapshot
- the snapshot to evaluate.true
if the snapshot is a single value snapshot, false
otherwise.public static boolean isCumulative(JPPFSnapshot snapshot)
snapshot
- the snapshot to evaluate.true
if the snapshot is a cumulative snapshot, false
otherwise.public static boolean isNonCumulative(JPPFSnapshot snapshot)
snapshot
- the snapshot to evaluate.true
if the snapshot is a non-cumulative snapshot, false
otherwise.public static String getLocalizedLabel(JPPFSnapshot snapshot)
snapshot
- the snapshot whose label to translate.public static String getLocalizedLabel(JPPFSnapshot snapshot, Locale locale)
snapshot
- the snapshot whose label to translate.locale
- the locale in which to translate.public static void toProperties(TypedProperties statsProperties, JPPFSnapshot snapshot)
statsProperties
- the set of properties to update.snapshot
- the snapshot to update from.Copyright © 2005-2016 JPPF Team.