Overview | Package | Class | Tree | Deprecated | Index | Help
| 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

## org.hyperic.hq.measurement.server.session
Class SRNCache

    java.lang.Object
      org.hyperic.hq.measurement.server.session.SRNCache

    public class SRNCache

extends java.lang.Object

Method Summary
`ScheduleRevNum` | `get(AppdefEntityID aid)`
`ScheduleRevNum` | `get(SrnId id)` Get the SRN entry from the cache falling back to loading from the database if the SRN is not found.
`static SRNCache` | `getInstance()`
`java.util.List` | `getKeys()`
`long` | `getSize()` Get the current cache size.
`void` | `put(ScheduleRevNum val)`
`boolean` | `remove(SrnId id)`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Method Detail

### getInstance

    public static SRNCache getInstance()

### getSize

    public long getSize()

  Get the current cache size.

  Returns:
    The size of the cache

### put

    public void put(ScheduleRevNum val)

### get

    public ScheduleRevNum get(AppdefEntityID aid)

### get

    public ScheduleRevNum get(SrnId id)

  Get the SRN entry from the cache falling back to loading from the database if the SRN is not found. Since the SRNCache is pre-populated the fallback to the database should only occur in clustered setups.

### remove

    public boolean remove(SrnId id)

### getKeys

    public java.util.List getKeys()

Overview | Package | Class | Tree | Deprecated | Index | Help
| 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

Copyright © 2004-2006 Hyperic, Inc. support@hyperic.net, All Rights Reserved.