public abstract class OperationJob extends Object implements org.quartz.Job
| Modifier and Type | Field and Description |
|---|---|
static String |
DATAMAP_INT_ENTITY_ID |
static String |
DATAMAP_INT_PARAMETERS_ID |
static String |
DATAMAP_INT_SUBJECT_ID |
static String |
DATAMAP_STRING_OPERATION_DISPLAY_NAME |
static String |
DATAMAP_STRING_OPERATION_NAME |
| Constructor and Description |
|---|
OperationJob() |
| Modifier and Type | Method and Description |
|---|---|
protected org.rhq.core.domain.operation.ResourceOperationHistory |
createOperationHistory(String jobName,
String jobGroup,
org.rhq.core.domain.operation.bean.ResourceOperationSchedule schedule,
org.rhq.core.domain.operation.GroupOperationHistory groupHistory,
OperationManagerLocal operationManager) |
protected org.rhq.core.domain.operation.ResourceOperationHistory |
findOperationHistory(String name,
String group,
OperationManagerLocal operationManager,
org.rhq.core.domain.operation.bean.ResourceOperationSchedule schedule) |
protected org.rhq.core.domain.auth.Subject |
getUserWithSession(org.rhq.core.domain.auth.Subject user,
boolean reattach)
For security purposes, we need to provide a subject with a valid login session.
|
protected void |
updateOperationScheduleEntity(org.quartz.JobDetail jobDetail,
Date nextFireTime,
OperationManagerLocal operationManager) |
public static final String DATAMAP_STRING_OPERATION_NAME
public static final String DATAMAP_STRING_OPERATION_DISPLAY_NAME
public static final String DATAMAP_INT_PARAMETERS_ID
public static final String DATAMAP_INT_SUBJECT_ID
public static final String DATAMAP_INT_ENTITY_ID
protected org.rhq.core.domain.auth.Subject getUserWithSession(org.rhq.core.domain.auth.Subject user,
boolean reattach)
throws Exception
reattach is true, in which case if a session
already exists, it will be refreshed - only if a session doesn't exist will a new one be created.user - the user whose needs a valid session assigned to it - the session ID will be assigned to this objectreattach - if the user already has a session, reattach to it rather than creating a new sessionExceptionSubjectManagerLocal.loginUnauthenticated(String)protected void updateOperationScheduleEntity(org.quartz.JobDetail jobDetail,
Date nextFireTime,
OperationManagerLocal operationManager)
protected org.rhq.core.domain.operation.ResourceOperationHistory createOperationHistory(String jobName, String jobGroup, org.rhq.core.domain.operation.bean.ResourceOperationSchedule schedule, org.rhq.core.domain.operation.GroupOperationHistory groupHistory, OperationManagerLocal operationManager)
protected org.rhq.core.domain.operation.ResourceOperationHistory findOperationHistory(String name, String group, OperationManagerLocal operationManager, org.rhq.core.domain.operation.bean.ResourceOperationSchedule schedule)
Copyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.