|
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 |
public interface AgentStorageProvider
Provides a very simple/generic storage interface. Subsystems within the Agent may require local storage for configurations or for a temporary datastore. This interface should be used by things such as a property file writer, or a JDBC backend. It is based on the Properties object.
Method Summary | |
---|---|
void |
addOverloadedInfo(java.lang.String listName,
java.lang.String info)
|
void |
addToList(java.lang.String listName,
java.lang.String value)
Add a value to a storage column. |
void |
createList(java.lang.String listName,
int recSize)
Create a list in storage. |
void |
deleteList(java.lang.String listName)
Delete an entire list from storage. |
void |
dispose()
Perform any cleanup that the storage provider requires. |
void |
flush()
Flush values to permanent storage. |
java.lang.String |
getDescription()
Get information about the storage provider. |
java.util.Set |
getKeys()
|
java.util.Iterator |
getListIterator(java.lang.String listName)
Get an iterator for a named list. |
java.lang.String |
getValue(java.lang.String key)
Gets a value from the storage object. |
void |
init(java.lang.String info)
Initialize the storage provider with simple bootstrap information. |
void |
setValue(java.lang.String key,
java.lang.String value)
Sets a value within the storage object. |
Method Detail |
---|
java.lang.String getDescription()
void setValue(java.lang.String key, java.lang.String value)
setValue
in interface GenericValueMap
key
- Key for the attributevalue
- Value of the keyjava.lang.String getValue(java.lang.String key)
getValue
in interface GenericValueMap
key
- Key for which to retrieve the value
java.util.Set getKeys()
getKeys
in interface GenericValueMap
void flush() throws AgentStorageException
AgentStorageException
void init(java.lang.String info) throws AgentStorageException
info
- parameters for the StorageProvider to store data and index files
AgentStorageException
void dispose()
void addToList(java.lang.String listName, java.lang.String value) throws AgentStorageException
listName
- Name of the column to add tovalue
- Value to add to the column
AgentStorageException
java.util.Iterator getListIterator(java.lang.String listName)
listName
- name of the list to get an iterator for.void deleteList(java.lang.String listName)
void createList(java.lang.String listName, int recSize) throws AgentStorageException
AgentStorageException
void addOverloadedInfo(java.lang.String listName, java.lang.String info)
|
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 |