how to enable cache-status,hits,hit-ratio attributes defined in infinispan
rituraj Sep 6, 2014 1:32 PMgoing through the cli command i saw a lot of attributes which are not available or may be i missed but where can i activate them
"outcome" => "success",
"result" => {
"description" => "A distributed cache",
"attributes" => {
"cache-status" => {
"type" => STRING,
"description" => "The status of the cache component. May return null if the cache is not started.",
"expressions-allowed" => false,
"nillable" => true,
"min-length" => 1L,
"max-length" => 2147483647L,
"access-type" => "metric",
"storage" => "runtime"
"hits" => {
"type" => LONG,
"description" => "The number of cache attribute hits. May return null if the cache is not started.",
"expressions-allowed" => false,
"nillable" => true,
"access-type" => "metric",
"storage" => "runtime"
},
"hit-ratio" => {
"type" => DOUBLE,
"description" => "The hit/miss ratio for the cache (hits/hits+misses). May return null if the cache is not started.",
"expressions-allowed" => false,
"nillable" => true,
"access-type" => "metric",
"storage" => "runtime"
},
"remove-misses" => {
"type" => LONG,
"description" => "The number of cache attribute remove misses. May return null if the cache is not started.",
"expressions-allowed" => false,
"nillable" => true,
"access-type" => "metric",
"storage" => "runtime"
},
"misses" => {
"type" => LONG,
"description" => "The number of cache attribute misses. May return null if the cache is not started.",
"expressions-allowed" => false,
"nillable" => true,
"access-type" => "metric",
"storage" => "runtime"
},
so basically i am looking here
/profile=ha/subsystem=infinispan/cache-container=web/distributed-cache=dist
ls
backup transaction invalidations=undefined remote-timeout=300000
backup-for async-marshalling=undefined jndi-name=undefined remove-hits=undefined
binary-keyed-jdbc-store average-read-time=undefined l1-lifespan=0 remove-misses=undefined
eviction average-replication-time=undefined misses=undefined replication-count=undefined
expiration average-write-time=undefined mode=SYNC replication-failures=undefined
file-store batching=true module=undefined segments=80
locking cache-status=undefined number-of-entries=undefined start=undefined
mixed-keyed-jdbc-store elapsed-time=undefined owners=${jboss.owner.value} statistics-enabled=undefined
remote-store hit-ratio=undefined passivations=undefined stores=undefined
state-transfer hits=undefined queue-flush-interval=undefined success-ratio=undefined
store indexing=undefined queue-size=undefined time-since-reset=undefined
string-keyed-jdbc-store indexing-properties=undefined read-write-ratio=undefined virtual-nodes=1
Thanks
Rituraj