org.rhq.enterprise.server.operation
Class ResourceOperationJob

java.lang.Object
  extended by org.rhq.enterprise.server.operation.OperationJob
      extended by 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

Field Summary
static String DATAMAP_INT_RESOURCE_ID
           
 
Fields inherited from class org.rhq.enterprise.server.operation.OperationJob
DATAMAP_INT_ENTITY_ID, DATAMAP_INT_PARAMETERS_ID, DATAMAP_INT_SUBJECT_ID, DATAMAP_STRING_OPERATION_DISPLAY_NAME, DATAMAP_STRING_OPERATION_NAME
 
Constructor Summary
ResourceOperationJob()
           
 
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 org.rhq.enterprise.server.operation.OperationJob
createOperationHistory, getUserWithSession, updateOperationScheduleEntity
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DATAMAP_INT_RESOURCE_ID

public static final String DATAMAP_INT_RESOURCE_ID
See Also:
Constant Field Values
Constructor Detail

ResourceOperationJob

public ResourceOperationJob()
Method Detail

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.