org.rhq.enterprise.server.operation
Class OperationJob
java.lang.Object
org.rhq.enterprise.server.operation.OperationJob
- All Implemented Interfaces:
- org.quartz.Job
- Direct Known Subclasses:
- GroupOperationJob, ResourceOperationJob
public abstract class OperationJob
- extends java.lang.Object
- implements org.quartz.Job
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.quartz.Job |
execute |
DATAMAP_STRING_OPERATION_NAME
public static final java.lang.String DATAMAP_STRING_OPERATION_NAME
- See Also:
- Constant Field Values
DATAMAP_STRING_OPERATION_DISPLAY_NAME
public static final java.lang.String DATAMAP_STRING_OPERATION_DISPLAY_NAME
- See Also:
- Constant Field Values
DATAMAP_INT_PARAMETERS_ID
public static final java.lang.String DATAMAP_INT_PARAMETERS_ID
- See Also:
- Constant Field Values
DATAMAP_INT_SUBJECT_ID
public static final java.lang.String DATAMAP_INT_SUBJECT_ID
- See Also:
- Constant Field Values
OperationJob
public OperationJob()
getUserWithSession
protected Subject getUserWithSession(Subject user,
boolean reattach)
throws java.lang.Exception
- For security purposes, we need to provide a subject with a valid login session. This creates such a subject by
logging in as the given user and returning the subject with a valid session. Call this even if the user already
has a session if you think the session may have timed out - this will refresh the session.
- Parameters:
user - the user whose needs a valid session assigned to itreattach - if the user already has a session, reattach to it rather than creating a new session
- Returns:
- the user with a valid session associated with it
- Throws:
java.lang.Exception- See Also:
SubjectManagerLocal.loginUnauthenticated(String, boolean)
updateOperationScheduleEntity
protected void updateOperationScheduleEntity(org.quartz.JobDetail jobDetail,
java.util.Date nextFireTime,
OperationManagerLocal operationManager)
createOperationHistory
protected ResourceOperationHistory createOperationHistory(java.lang.String jobName,
java.lang.String jobGroup,
ResourceOperationSchedule schedule,
GroupOperationHistory groupHistory,
OperationManagerLocal operationManager)
Copyright © 2008-2009 Red Hat, Inc.. All Rights Reserved.