public class CollectionStats extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
protected long |
fetchCount
fetchCount
|
protected long |
loadCount
loadCount
|
protected long |
recreateCount
recreateCount
|
protected long |
removeCount
removeCount
|
protected String |
roleName
roleName
|
protected String |
shortName
shortName
|
protected long |
updateCount
updateCount
|
Constructor and Description |
---|
CollectionStats(CompositeData cData)
Constructs a CollectionsStats from a JMX CompositeData
|
CollectionStats(String role)
Constructs a CollectionsStats
|
CollectionStats(String role,
CollectionStatistics src)
Constructs a CollectionsStats
|
Modifier and Type | Method and Description |
---|---|
void |
add(CollectionStats stats)
Update the internal stats
|
static CollectionStats[] |
fromTabularData(TabularData tabularData)
Re-builds CollectionStats from JMX TabularData
|
long |
getFetchCount() |
long |
getLoadCount() |
long |
getRecreateCount() |
long |
getRemoveCount() |
String |
getRoleName() |
String |
getShortName() |
long |
getUpdateCount() |
static TabularData |
newTabularDataInstance()
Builds a JMX TabularData
|
CompositeData |
toCompositeData()
Builds a JMX CompositeData view of our state
|
String |
toString() |
protected final String roleName
protected final String shortName
protected long loadCount
protected long fetchCount
protected long updateCount
protected long removeCount
protected long recreateCount
public CollectionStats(String role)
role
- The collection rolepublic CollectionStats(String role, CollectionStatistics src)
role
- The collection rolesrc
- The CollectionStatistics instancepublic CollectionStats(CompositeData cData)
cData
- The JMX CompositeDatapublic void add(CollectionStats stats)
stats
- The incoming statspublic String getRoleName()
public String getShortName()
public long getLoadCount()
public long getFetchCount()
public long getUpdateCount()
public long getRemoveCount()
public long getRecreateCount()
public CompositeData toCompositeData()
public static TabularData newTabularDataInstance()
public static CollectionStats[] fromTabularData(TabularData tabularData)
tabularData
- The JMX TabularDataCopyright © 2001-2015 Red Hat, Inc. All Rights Reserved.