|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rhq.core.pc.operation.OperationInvocation
public class OperationInvocation
The runnable that is actually responsible for invoking an operation on a plugin's OperationFacet.
| Nested Class Summary | |
|---|---|
static class |
OperationInvocation.Status
Indicates the current status of this invocation (QUEUED, RUNNING or FINISHED). |
| Constructor Summary | |
|---|---|
OperationInvocation(int resourceId,
long invocationTime,
TimerTask timerTask,
org.rhq.core.domain.configuration.Configuration parameterConfig,
String jobId,
String operationName,
OperationFacet operationComponent,
OperationServerService operationServerService,
OperationThreadPoolGateway operationThreadPoolGateway,
org.rhq.core.domain.operation.OperationDefinition operationDefinition)
|
|
| Method Summary | |
|---|---|
String |
getJobId()
Returns the job ID that identifies this specific operation invocation. |
int |
getResourceId()
Identifies the resource that this invocation will operate on. |
EnumSet<OperationInvocation.Status> |
getStatus()
|
EnumSet<OperationInvocation.Status> |
markAsCanceled()
Flags this operation as being canceled. |
void |
markAsTimedOut()
Flags this operation as being canceled due to a time out. |
void |
run()
This actually invokes the plugin's operation facet and executes the operation. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public OperationInvocation(int resourceId,
long invocationTime,
TimerTask timerTask,
org.rhq.core.domain.configuration.Configuration parameterConfig,
String jobId,
String operationName,
OperationFacet operationComponent,
OperationServerService operationServerService,
OperationThreadPoolGateway operationThreadPoolGateway,
org.rhq.core.domain.operation.OperationDefinition operationDefinition)
| Method Detail |
|---|
public int getResourceId()
public String getJobId()
public String toString()
toString in class Objectpublic EnumSet<OperationInvocation.Status> getStatus()
public EnumSet<OperationInvocation.Status> markAsCanceled()
public void markAsTimedOut()
public void run()
markAsTimedOut() interrupt this thread}. This thread will also be
interrupted if the operation was canceled.
run in interface RunnableRunnable.run()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||