|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.devexperts.qd.stats.QDStats
public class QDStats
Statistics gathering delegate.
Nested Class Summary | |
---|---|
protected static class |
QDStats.StatsLock
|
static class |
QDStats.SType
Defines specific statistic type, including its name. |
static class |
QDStats.SValue
Defines specific statistic value, including its name and address. |
Field Summary | |
---|---|
protected static QDStats[] |
EMPTY_CHILDREN
|
static int |
FLAG_COLLECTION_OF_ANYTHING
|
static int |
FLAG_COLLECTION_OF_SELF
|
static int |
FLAG_COUNT
|
static int |
FLAG_IO
|
static int |
FLAG_RID
|
protected static int |
GROUP_IO_READ
|
protected static int |
GROUP_IO_WRITE
|
protected static int |
GROUP_RID
|
protected static int |
KIND_ADDED
|
protected static int |
KIND_CHANGED
|
protected static int |
KIND_FILTERED
|
protected static int |
KIND_IO_BYTES
|
protected static int |
KIND_IO_CALLS
|
protected static int |
KIND_REMOVED
|
protected static int |
KIND_SIZE
|
static QDStats |
VOID
The instance of QDStats that is always empty. |
Constructor Summary | |
---|---|
QDStats()
Creates unitialized stats. |
|
QDStats(QDStats.SType type)
Creates root stats with given type . |
|
QDStats(QDStats.SType type,
DataScheme scheme)
|
|
QDStats(QDStats.SType type,
int rid_count)
Deprecated. Use QDStats(com.devexperts.qd.stats.QDStats.SType, com.devexperts.qd.DataScheme) instead. |
Method Summary | |
---|---|
protected void |
addChild(QDStats child)
|
protected void |
addClosedStats(QDStats child)
|
void |
addMBean(java.lang.String type,
java.lang.Object mbean)
|
void |
addValues(QDStats.SValue value,
boolean local_only,
int[] dest)
|
protected static int |
calculateBytes(int refs,
int objs)
|
void |
close()
|
protected void |
closeChildren()
|
protected boolean |
closeInternal(QDStats child)
|
protected void |
closeStats()
|
QDStats |
create(QDStats.SType type)
Creates and returns new child with the corresponding type. |
QDStats |
create(QDStats.SType type,
java.lang.String key_properties)
Creates and returns new child with the corresponding type and key properties. |
protected QDStats |
createInternal(QDStats.SType type,
java.lang.String key_properties,
boolean sum_mode,
int rid_count,
DataScheme scheme)
|
static QDStats |
createNamedVoid(java.lang.String key_properties)
Returns an instance of QDStats that does not actually track anything (is always empty like VOID but is named. |
QDStats |
get(QDStats.SType type)
Returns first found child with the corresponding type or null if not found. |
protected QDStats[] |
getChildren()
|
java.lang.String |
getKeyProperties()
|
protected java.lang.Object |
getLock()
|
QDStats |
getOrCreate(QDStats.SType type)
Returns first found child with the corresponding type or creates new
one if not found. |
QDStats |
getOrVoid(QDStats.SType type)
Returns first found child with the corresponding type or VOID if not found. |
protected QDStats |
getParent()
|
protected int |
getRidCount()
|
protected DataScheme |
getScheme()
|
QDStats.SType |
getType()
Returns type of this statistics instance. |
int |
getValue(QDStats.SValue value)
|
int |
getValue(QDStats.SValue value,
boolean local_only)
|
protected boolean |
hasSum(QDStats parent,
QDStats child)
|
protected void |
initChild(QDStats child,
QDStats.SType type,
java.lang.String key_properties,
int rid_count,
DataScheme scheme)
|
void |
initRoot(QDStats.SType type,
DataScheme scheme)
|
void |
initRoot(QDStats.SType type,
int rid_count)
Deprecated. Use initRoot(com.devexperts.qd.stats.QDStats.SType, com.devexperts.qd.DataScheme) instead. |
protected void |
initStats(QDStats parent,
QDStats.StatsLock lock,
QDStats.SType type,
DataScheme scheme)
|
protected void |
initStats(QDStats parent,
QDStats.StatsLock lock,
QDStats.SType type,
int rid_count)
Deprecated. |
protected boolean |
isSumMode()
|
protected QDStats |
newInstance(QDStats.SType type)
|
static java.lang.String |
quoteKeyPropertyValue(java.lang.String value)
Quotes key property value so that it can be safely used in key_properties of
create(type, key_properties) . |
protected boolean |
removeChild(QDStats child)
|
void |
updateAdded(int rid)
|
void |
updateChanged(int rid)
|
void |
updateFiltered(int rid)
|
void |
updateIORead(int bytes)
|
void |
updateIOWrite(int bytes)
|
void |
updateRemoved(int rid)
|
void |
updateRemoved(int rid,
int count)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final QDStats VOID
protected static final int GROUP_IO_READ
protected static final int GROUP_IO_WRITE
protected static final int GROUP_RID
protected static final int KIND_IO_BYTES
protected static final int KIND_IO_CALLS
protected static final int KIND_ADDED
protected static final int KIND_CHANGED
protected static final int KIND_FILTERED
protected static final int KIND_REMOVED
protected static final int KIND_SIZE
public static final int FLAG_RID
public static final int FLAG_IO
public static final int FLAG_COLLECTION_OF_ANYTHING
public static final int FLAG_COLLECTION_OF_SELF
public static final int FLAG_COUNT
protected static final QDStats[] EMPTY_CHILDREN
Constructor Detail |
---|
public QDStats()
initRoot(com.devexperts.qd.stats.QDStats.SType, int)
or initStats(com.devexperts.qd.stats.QDStats, com.devexperts.qd.stats.QDStats.StatsLock, com.devexperts.qd.stats.QDStats.SType, int)
must be called after construction.
public QDStats(QDStats.SType type)
type
.
public QDStats(QDStats.SType type, int rid_count)
QDStats(com.devexperts.qd.stats.QDStats.SType, com.devexperts.qd.DataScheme)
instead.
type
and rid_count
.
public QDStats(QDStats.SType type, DataScheme scheme)
Method Detail |
---|
public static QDStats createNamedVoid(java.lang.String key_properties)
QDStats
that does not actually track anything (is always empty like VOID
but is named.
protected QDStats getParent()
protected java.lang.Object getLock()
public QDStats.SType getType()
protected int getRidCount()
protected DataScheme getScheme()
protected QDStats[] getChildren()
public java.lang.String getKeyProperties()
protected boolean isSumMode()
protected boolean hasSum(QDStats parent, QDStats child)
protected void initStats(QDStats parent, QDStats.StatsLock lock, QDStats.SType type, int rid_count)
protected void initStats(QDStats parent, QDStats.StatsLock lock, QDStats.SType type, DataScheme scheme)
protected void closeStats()
protected void addClosedStats(QDStats child)
protected void addChild(QDStats child)
protected boolean removeChild(QDStats child)
protected void closeChildren()
protected QDStats newInstance(QDStats.SType type)
protected QDStats createInternal(QDStats.SType type, java.lang.String key_properties, boolean sum_mode, int rid_count, DataScheme scheme)
protected void initChild(QDStats child, QDStats.SType type, java.lang.String key_properties, int rid_count, DataScheme scheme)
protected boolean closeInternal(QDStats child)
protected static int calculateBytes(int refs, int objs)
public final void updateIORead(int bytes)
public final void updateIOWrite(int bytes)
public final void updateAdded(int rid)
public final void updateChanged(int rid)
public final void updateFiltered(int rid)
public final void updateRemoved(int rid)
public final void updateRemoved(int rid, int count)
public int getValue(QDStats.SValue value, boolean local_only)
public void addValues(QDStats.SValue value, boolean local_only, int[] dest)
public int getValue(QDStats.SValue value)
public void initRoot(QDStats.SType type, int rid_count)
initRoot(com.devexperts.qd.stats.QDStats.SType, com.devexperts.qd.DataScheme)
instead.
public void initRoot(QDStats.SType type, DataScheme scheme)
public QDStats get(QDStats.SType type)
null
if not found.
public QDStats getOrCreate(QDStats.SType type)
creates
new
one if not found.
public QDStats getOrVoid(QDStats.SType type)
VOID
if not found.
public final QDStats create(QDStats.SType type)
public QDStats create(QDStats.SType type, java.lang.String key_properties)
public void close()
public void addMBean(java.lang.String type, java.lang.Object mbean)
public static java.lang.String quoteKeyPropertyValue(java.lang.String value)
key_properties
of
create(type, key_properties)
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |