public interface OperationAgentService
| Modifier and Type | Method and Description |
|---|---|
CancelResults |
cancelOperation(String jobId)
Asks that the operation invocation with the given
jobId be canceled. |
void |
invokeOperation(String jobId,
int resourceId,
String operationName,
org.rhq.core.domain.configuration.Configuration parameters)
Invoke the operation with the specified name.
|
void invokeOperation(@NotNull
String jobId,
int resourceId,
@NotNull
String operationName,
@Nullable
org.rhq.core.domain.configuration.Configuration parameters)
throws PluginContainerException
jobId - a unique job id for the invocation - when the agent sends back the result for the
invocation, it will include this job id so the server can associate the results with the
correct invocationresourceId - identifies the resource on which the operation should be invoked (either a physical
resource or a compatible group)operationName - the name of the operationparameters - the parameters for the operation, or null if the operation has no parametersPluginContainerException - if failed to submit the request to the resource for invocation. Note that this
is not an indication that the actual operation invocation failed. This
method only submits the invocation request - the actual invocation happens
asynchronously. The server will be notified via a separate mechanism that the
operation invocation failed.CancelResults cancelOperation(@NotNull String jobId)
jobId be canceled.jobId - identifies the job that is to be canceledCopyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.