public class StreamSummaryContainer extends Object
Modifier and Type | Class and Description |
---|---|
static class |
StreamSummaryContainer.Stat |
Constructor and Description |
---|
StreamSummaryContainer(String cacheName,
String address) |
Modifier and Type | Method and Description |
---|---|
void |
addGet(Object key,
boolean remote)
Adds the key to the read top-key.
|
void |
addLockInformation(Object key,
boolean contention,
boolean failLock)
Adds the lock information about the key, namely if the key suffer some contention and if the keys was locked or
not.
|
void |
addPut(Object key,
boolean remote)
Adds the key to the put top-key.
|
void |
addWriteSkewFailed(Object key)
Adds the key to the write skew failed top-key.
|
boolean |
equals(Object o) |
int |
getCapacity() |
static StreamSummaryContainer |
getOrCreateStreamLibContainer(Cache cache) |
Map<Object,Long> |
getTopKFrom(StreamSummaryContainer.Stat stat)
|
Map<Object,Long> |
getTopKFrom(StreamSummaryContainer.Stat stat,
int topK) |
Map<String,Long> |
getTopKFromAsKeyString(StreamSummaryContainer.Stat stat)
Same as
getTopKFrom(org.infinispan.stats.topK.StreamSummaryContainer.Stat) but the keys are returned in
their String format. |
Map<String,Long> |
getTopKFromAsKeyString(StreamSummaryContainer.Stat stat,
int topK)
Same as
getTopKFrom(org.infinispan.stats.topK.StreamSummaryContainer.Stat, int) but the keys are returned
in their String format. |
int |
hashCode() |
boolean |
isEnabled() |
void |
resetAll()
Resets all the top-key collected so far.
|
void |
setCapacity(int capacity)
Sets the capacity of the top-key.
|
void |
setEnabled(boolean enabled)
Enables or disables the top-key collection
|
String |
toString() |
void |
tryFlushAll()
Tries to flush all the enqueue offers to be visible globally.
|
public static StreamSummaryContainer getOrCreateStreamLibContainer(Cache cache)
public boolean isEnabled()
true
if the top-key collection is enabled, false
otherwise.public void setEnabled(boolean enabled)
public int getCapacity()
public void setCapacity(int capacity)
public void addGet(Object key, boolean remote)
remote
- true
if the key is remote, false
otherwise.public void addPut(Object key, boolean remote)
remote
- true
if the key is remote, false
otherwise.public void addLockInformation(Object key, boolean contention, boolean failLock)
contention
- true
if the key was contented.failLock
- true
if the key was not locked.public void addWriteSkewFailed(Object key)
public Map<Object,Long> getTopKFrom(StreamSummaryContainer.Stat stat)
public Map<Object,Long> getTopKFrom(StreamSummaryContainer.Stat stat, int topK)
topK
- the topK-th first key.public Map<String,Long> getTopKFromAsKeyString(StreamSummaryContainer.Stat stat)
getTopKFrom(org.infinispan.stats.topK.StreamSummaryContainer.Stat)
but the keys are returned in
their String format.public Map<String,Long> getTopKFromAsKeyString(StreamSummaryContainer.Stat stat, int topK)
getTopKFrom(org.infinispan.stats.topK.StreamSummaryContainer.Stat, int)
but the keys are returned
in their String format.public final void resetAll()
public final void tryFlushAll()
Copyright © 2014 JBoss, a division of Red Hat. All Rights Reserved.