org.rhq.enterprise.server.operation
Class ResourceOperationJob
java.lang.Object
org.rhq.enterprise.server.operation.OperationJob
org.rhq.enterprise.server.operation.ResourceOperationJob
- All Implemented Interfaces:
- org.quartz.Job
public class ResourceOperationJob
- extends OperationJob
A job that invokes an operation on a single resource.
- Author:
- John Mazzitelli
|
Method Summary |
static String |
createJobGroupName(org.rhq.core.domain.resource.Resource resource)
|
static String |
createUniqueJobName(org.rhq.core.domain.resource.Resource resource,
String operationName)
|
void |
execute(org.quartz.JobExecutionContext context)
This is invoked every time the operation needs to be invoked. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DATAMAP_INT_RESOURCE_ID
public static final String DATAMAP_INT_RESOURCE_ID
- See Also:
- Constant Field Values
ResourceOperationJob
public ResourceOperationJob()
createUniqueJobName
public static String createUniqueJobName(org.rhq.core.domain.resource.Resource resource,
String operationName)
createJobGroupName
public static String createJobGroupName(org.rhq.core.domain.resource.Resource resource)
execute
public void execute(org.quartz.JobExecutionContext context)
throws org.quartz.JobExecutionException
- This is invoked every time the operation needs to be invoked. Therefore, for each call to this method, a new
history item will be created.
- Throws:
org.quartz.JobExecutionException- See Also:
Job.execute(org.quartz.JobExecutionContext)
Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.