public abstract class JCSMPStats extends Object
Represents a set of message statistics.
Session statistics are enumerated as members of the StatType
class
and can be accessed through JCSMPSessionStats
. The API also provides
a set of Java VM-wide runtime statistics (which span across JCSMP sessions),
which are enumerated in RuntimeStatType
, and can be accessed through
JCSMPRuntime
.
Applications may experience reduced performance when statistics collection is enabled.
If your application does not require session or runtime statistics, you can
disable statistics collection by defining the environment variable
JCSMP_DISABLE_STATS
.
StatType
,
RuntimeStatType
Constructor and Description |
---|
JCSMPStats(String title)
Deprecated.
|
JCSMPStats(String title,
JCSMPSession session) |
Modifier and Type | Method and Description |
---|---|
long |
getLastStatsReset()
Gets the date/time of the last reset of this instance.
|
long |
getStat(StatType t)
Poll a specific statistic.
|
String |
getTitle()
Gets the title this instance of
JCSMPStats was initialized
with. |
void |
resetStats()
Reset the statistics in this instance of
JCSMPStats . |
String |
toString()
Returns a string representation of the statistics set.
|
@Deprecated public JCSMPStats(String title)
JCSMPSessionStats
object.public JCSMPStats(String title, JCSMPSession session)
public String getTitle()
JCSMPStats
was initialized
with.public long getLastStatsReset()
System.currentTimeMillis()
.public void resetStats()
JCSMPStats
.public long getStat(StatType t)
Copyright 2004-2024 Solace Corporation. All rights reserved.