public class EntityStats extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
protected long |
deleteCount
deleteCount
|
protected long |
fetchCount
fetchCount
|
protected long |
insertCount
insertCount
|
protected long |
loadCount
loadCount
|
protected String |
name
name
|
protected long |
optimisticFailureCount
optimisticFailureCount
|
protected String |
shortName
shortName
|
protected long |
updateCount
updateCount
|
Constructor and Description |
---|
EntityStats(CompositeData cData)
Constructor from compositeDate
|
EntityStats(String name)
Constructor only naming the stat
|
EntityStats(String name,
EntityStatistics src)
Constructor naming the stat and sourcing stats
|
Modifier and Type | Method and Description |
---|---|
void |
add(EntityStats stats)
Adds the counters of this instance up with the ones passed in
|
static EntityStats[] |
fromTabularData(TabularData tabularData)
Reads an array of entityStats from TabularData
|
long |
getDeleteCount()
Amount of delete ops on the entity
|
long |
getFetchCount()
Amount of fetch ops on the entity
|
long |
getInsertCount()
Amount of insert ops on the entity
|
long |
getLoadCount()
Amount of load ops on the entity
|
String |
getName()
The name of the entity those stats are about
|
long |
getOptimisticFailureCount()
Amount of optimistic failures on the entity
|
String |
getShortName()
The short name of the entity those stats are about
|
long |
getUpdateCount()
Amount of update ops on the entity
|
static TabularData |
newTabularDataInstance()
Creates a new TabularData
|
CompositeData |
toCompositeData()
Creates a CompositeData instance of this instance
|
String |
toString() |
protected final String name
protected final String shortName
protected long loadCount
protected long updateCount
protected long insertCount
protected long deleteCount
protected long fetchCount
protected long optimisticFailureCount
public EntityStats(String name)
name
- the name of the entitypublic EntityStats(String name, EntityStatistics src)
name
- the name of the entitysrc
- its source for the stats to exposepublic EntityStats(CompositeData cData)
cData
- CompositeData of the statspublic void add(EntityStats stats)
stats
- the stats to add to this onepublic String getName()
public String getShortName()
public long getLoadCount()
public long getUpdateCount()
public long getInsertCount()
public long getDeleteCount()
public long getFetchCount()
public long getOptimisticFailureCount()
public CompositeData toCompositeData()
public static TabularData newTabularDataInstance()
public static EntityStats[] fromTabularData(TabularData tabularData)
tabularData
- the tabularData with the CompositeData
of stats to extractCopyright © 2001-2015 Red Hat, Inc. All Rights Reserved.