public class HistoryStore extends Object
Constructor and Description |
---|
HistoryStore(int pTotalMaxEntries)
Constructor for a history store
|
Modifier and Type | Method and Description |
---|---|
void |
configure(HistoryKey pKey,
HistoryLimit pHistoryLimit)
Configure the history length for a specific entry.
|
int |
getGlobalMaxEntries()
Get the maximum number of entries stored.
|
int |
getSize()
Get the size of this history store in bytes
|
void |
reset()
Reset the complete store.
|
void |
setGlobalMaxEntries(int pGlobalMaxEntries)
Set the global maximum limit for history entries.
|
void |
updateAndAdd(JmxRequest pJmxReq,
JSONObject pJson)
Update the history store with the value of an an read, write or execute operation.
|
public HistoryStore(int pTotalMaxEntries)
pTotalMaxEntries
- number of entries to hold at max. Even when configured, this maximum can not
be overwritten. This is a hard limit.public int getGlobalMaxEntries()
public void setGlobalMaxEntries(int pGlobalMaxEntries)
pGlobalMaxEntries
- limitpublic void configure(HistoryKey pKey, HistoryLimit pHistoryLimit)
pKey
- history keypHistoryLimit
- limit to apply or null
if no history should be recored for this entrypublic void reset()
public void updateAndAdd(JmxRequest pJmxReq, JSONObject pJson)
pJmxReq
- request for which an entry should be added in this history storepJson
- the JSONObject to which to add the history.public int getSize()
Copyright © 2021. All rights reserved.