|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.adaptc.mws.plugins.AbstractPluginInfo com.adaptc.mws.plugins.AbstractPlugin
public abstract class AbstractPlugin extends AbstractPluginInfo
Optional base class for all plugin types and therefore plugin instances which extends AbstractPluginInfo. Contains method definitions to facilitate creating new plugin types.
Field Summary |
---|
Fields inherited from class AbstractPluginInfo | |
---|---|
id |
Constructor Summary | |
AbstractPlugin()
|
Method Summary | |
---|---|
void
|
afterStart()
Hook to do any post-start logic. |
void
|
afterStop()
Hook to do any post-stop teardown of the plugin after it stops. |
void
|
beforeStart()
Hook to do any initialization needed before the plugin starts. |
void
|
beforeStop()
Hook to start any processes needed to teardown the plugin before it stops. |
void
|
configure()
Verifies the configuration of the plugin and performs any initial setup needed each time the configuration is loaded or changed. |
org.apache.commons.logging.Log
|
getLog()
Returns a log that can be used throughout the Plugin. |
boolean
|
jobCancel(List jobs)
Cancels the specified job(s). |
boolean
|
jobModify(List jobs, Map properties)
Modifies the specified job(s) with the properties given. |
boolean
|
jobRequeue(List jobs)
Requeues the specified job(s). |
boolean
|
jobResume(List jobs)
Resumes the specified job(s). |
boolean
|
jobStart(String jobName, String taskList, String username)
Starts the specified job with a tasklist and username. |
boolean
|
jobStart(String jobName, String taskList, String username, Map properties)
Starts the specified job with a tasklist, username, and other properties. |
boolean
|
jobSubmit(Map properties)
Submits a new job specified by the properties given. |
boolean
|
jobSuspend(List jobs)
Suspends the specified job. |
String
|
message(Map parameters)
Returns an i18n message from any file ending in "-messages.properties" included in the project JAR file. |
boolean
|
nodeModify(List nodes, Map properties)
Modifies the specified node(s) with the properties given. |
boolean
|
nodePower(List nodes, NodeReportPower state)
Changes the power state of the specified node(s). |
boolean
|
resourceCreate(String type, String name, Map attributes)
Creates a resource with the specified arguments. |
void
|
start()
Starts the Plugin, including polling if enabled. |
void
|
stop()
Stops the Plugin, including polling if started. |
boolean
|
systemModify(Map properties)
Modifies system properties as specified. |
List
|
systemQuery(List attributes)
Retrieves the specified system attribute(s). |
boolean
|
virtualMachineMigrate(String vmName, String hypervisorName, String operationName)
Migrates a virtual machine with the specified ID to the specified hypervisor. |
Methods inherited from class AbstractPluginInfo | |
---|---|
getAutoStart, getConfig, getId, getPluginType, getPollInterval, getState, getSubstate, setId |
Methods inherited from class Object | |
---|---|
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Constructor Detail |
---|
AbstractPlugin()
Method Detail |
---|
public void afterStart()
public void afterStop()
public void beforeStart()
public void beforeStop()
public void configure()
public org.apache.commons.logging.Log getLog()
public boolean jobCancel(List jobs)
jobs
- The name(s) of the job(s) to cancel
public boolean jobModify(List jobs, Map properties)
properties
- The properties to modify on the job(s)jobs
- The name(s) of the job(s) to modify
public boolean jobRequeue(List jobs)
jobs
- The name(s) of the job(s) to requeue
public boolean jobResume(List jobs)
jobs
- The name(s) of the job(s) to resume
public boolean jobStart(String jobName, String taskList, String username)
jobName
- The name of the job to starttaskList
- The tasklist of the jobusername
- The user starting the job
public boolean jobStart(String jobName, String taskList, String username, Map properties)
jobName
- The name of the job to starttaskList
- The tasklist of the jobusername
- The user starting the jobproperties
- The other properties to set when starting the job
public boolean jobSubmit(Map properties)
properties
- The job's properties
public boolean jobSuspend(List jobs)
jobs
- The name(s) of the job(s)
public String message(Map parameters)
parameters
- The parameters used to retrieve the message, such as code, error, default, and args.
public boolean nodeModify(List nodes, Map properties)
properties
- The properties to modify on the node(s)nodes
- The name(s) of the node(s) to modify
public boolean nodePower(List nodes, NodeReportPower state)
state
- The new requested power state of the node(s)nodes
- The name(s) of the node(s) to modify
public boolean resourceCreate(String type, String name, Map attributes)
type
- The type of the resource (ie vm)name
- The name of the resource (ie hv1:vm1 for a VM)attributes
- The attributes used to create the resource
public void start()
public void stop()
public boolean systemModify(Map properties)
properties
- The system properties to modify
public List systemQuery(List attributes)
attributes
- The attributes to query for
public boolean virtualMachineMigrate(String vmName, String hypervisorName, String operationName)
vmName The
- name of the virtual machinehypervisorName The
- name of the new desired hypervisor for the VMoperationName The
- name of the operation
Groovy Documentation