Groovy Documentation

com.ace.mws.plugins.services
[Java] Interface IPluginPersistenceService


public interface IPluginPersistenceService

The data persistence service is provided to ease the storage of Moab state data such as nodes, jobs, and virtual machines. Objects passed to the service are saved to the Moab Web Services database. It also handles data collisions as explained in the MWS documentation.

Authors:
bsaville


Method Summary
boolean removeJobs(List jobs)

Removes jobs from the cache.

boolean removeNodes(List nodes)

Removes nodes from the cache.

boolean removeVirtualMachines(List virtualMachines)

Removes virtual machines from the cache.

boolean updateJobs(List jobs)

Adds or updates jobs in the cache.

boolean updateNodes(List nodes)

Adds or updates nodes in the cache.

boolean updateVirtualMachines(List virtualMachines)

Adds or updates virtual machines in the cache.

 

Method Detail

removeJobs

public boolean removeJobs(List jobs)
Removes jobs from the cache.
Parameters:
jobs - Job objects
Returns:
True on success, false on failure


removeNodes

public boolean removeNodes(List nodes)
Removes nodes from the cache.
Parameters:
nodes - Node objects
Returns:
True on success, false on failure


removeVirtualMachines

public boolean removeVirtualMachines(List virtualMachines)
Removes virtual machines from the cache.
Parameters:
virtualMachines - Virtual machine objects
Returns:
True on success, false on failure


updateJobs

public boolean updateJobs(List jobs)
Adds or updates jobs in the cache.
Parameters:
jobs - Job objects
Returns:
True on success, false on failure


updateNodes

public boolean updateNodes(List nodes)
Adds or updates nodes in the cache.
Parameters:
nodes - Node objects
Returns:
True on success, false on failure


updateVirtualMachines

public boolean updateVirtualMachines(List virtualMachines)
Adds or updates virtual machines in the cache.
Parameters:
virtualMachines - Virtual machine objects
Returns:
True on success, false on failure


 

Groovy Documentation