|
Hyperic HQ Plugin API v. 4.4.0.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hyperic.hq.measurement.server.session.AvailabilityCache
public class AvailabilityCache
Dynamic EhCache that is allowed to grow over time as needed. AvailabilityCache should only be used in AvailabilityManager.addData() OR Backfiller operations. In big environments it will be very contentious and due to its nature may not have the data being sought at any given time. Use AvailabilityManager.getLastAvail().
Method Summary | |
---|---|
boolean |
beginTran()
|
void |
commitTran()
|
DataPoint |
get(java.lang.Integer id)
Get a DataPoint from the cache based on the Measurement id. |
DataPoint |
get(java.lang.Integer id,
DataPoint defaultState)
Get a DataPoint from the cache based on Measurement id |
static AvailabilityCache |
getInstance()
DO NOT USE THIS unless it is to maintain Availability RLE state as in AvailabilityManager.addData() OR Backfiller operations!!! Use AvailabilityManager.getLastAvail |
void |
put(java.lang.Integer id,
DataPoint state)
Put an item into the cache. |
void |
rollbackTran()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static AvailabilityCache getInstance()
AvailabilityManager.getLastAvail
public void rollbackTran()
public void commitTran()
public boolean beginTran()
public DataPoint get(java.lang.Integer id, DataPoint defaultState)
id
- The Measurement id in question.
public DataPoint get(java.lang.Integer id)
id
- The Measurement id in question.
public void put(java.lang.Integer id, DataPoint state)
id
- The Measurement id representing the availability data point.state
- The DataPoint to store for the given id.
|
Hyperic HQ Plugin API v. 4.4.0.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |