|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD |
public interface IPluginDatastoreService
The individual datastore service is provided to allow a plugin to persist data to the database that is isolated from all other persistent data. It is not designed to store Moab data such as nodes, jobs, or virtual machines, but custom, arbitrary data pertinent only to the individual plugin.
Method Summary | |
---|---|
boolean
|
addData(String pluginId, String collection, Map data)
Adds an entry to the collection. |
boolean
|
addData(String pluginId, String collection, List data)
Adds a list of entries to the collection. |
List
|
clearCollection(String pluginId, String collection)
Clears a collection completely and returns the contents. |
boolean
|
exists(String pluginId, String collection)
Returns true if the collection exists, false otherwise. |
List
|
getCollection(String pluginId, String collection)
Retrieves the entire contents of a collection. |
Map
|
getData(String pluginId, String collection, String key, Object value)
Retrieves an entry in the collection where key = value. |
boolean
|
removeData(String pluginId, String collection, String key, Object value)
Removes and returns an entry from the collection where key = value. |
boolean
|
updateData(String pluginId, String collection, String key, Object value, Map data)
Updates a record in the datastore where key = value to the new data |
Method Detail |
---|
public boolean addData(String pluginId, String collection, Map data)
public boolean addData(String pluginId, String collection, List data)
public List clearCollection(String pluginId, String collection)
public boolean exists(String pluginId, String collection)
public List getCollection(String pluginId, String collection)
public Map getData(String pluginId, String collection, String key, Object value)
public boolean removeData(String pluginId, String collection, String key, Object value)
public boolean updateData(String pluginId, String collection, String key, Object value, Map data)
Groovy Documentation