|
Hyperic HQ Plugin API v. 4.4.0.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hyperic.hq.scheduler.server.session.BaseScheduleManagerEJB
org.hyperic.hq.control.server.session.ControlScheduleManagerEJBImpl
public class ControlScheduleManagerEJBImpl
Control manager for dealing with scheduled actions
Field Summary |
---|
Fields inherited from class org.hyperic.hq.scheduler.server.session.BaseScheduleManagerEJB |
---|
_scheduler, historyPager, SCHED_SEPARATOR, schedulePager |
Constructor Summary | |
---|---|
ControlScheduleManagerEJBImpl()
|
Method Summary | |
---|---|
ControlHistory |
createHistory(AppdefEntityID id,
java.lang.Integer groupId,
java.lang.Integer batchId,
java.lang.String subjectName,
java.lang.String action,
java.lang.String args,
java.lang.Boolean scheduled,
long startTime,
long stopTime,
long scheduleTime,
java.lang.String status,
java.lang.String description,
java.lang.String errorMessage)
Create a control history entry |
void |
deleteControlJob(AuthzSubject subject,
java.lang.Integer[] ids)
Delete a scheduled control actions based on id |
void |
deleteJobHistory(AuthzSubject subject,
java.lang.Integer[] ids)
Remove an entry from the control history |
java.lang.Integer |
doAgentControlCommand(AppdefEntityID id,
AppdefEntityID gid,
java.lang.Integer batchId,
AuthzSubject subject,
java.util.Date dateScheduled,
java.lang.Boolean scheduled,
java.lang.String description,
java.lang.String action,
java.lang.String args)
Do a control command on a single appdef entity |
void |
doScheduledAction(AppdefEntityID id,
AuthzSubject subject,
java.lang.String action,
ScheduleValue schedule,
int[] order)
Schedule an action on an appdef entity |
void |
doSingleAction(AppdefEntityID id,
AuthzSubject subject,
java.lang.String action,
java.lang.String args,
int[] order)
Execute a single action on an appdef entity |
void |
ejbCreate()
A pseudo-ejbCreate method called by subclasses from their real ejbCreate implementations. |
PageList |
findGroupJobHistory(AuthzSubject subject,
int batchId,
AppdefEntityID id,
PageControl pc)
Get a batch job history based on batchJobId and appdef id |
PageList |
findJobHistory(AuthzSubject subject,
AppdefEntityID id,
PageControl pc)
Get a job history based on appdef id |
PageList |
findScheduledJobs(AuthzSubject subject,
AppdefEntityID id,
PageControl pc)
Get a list of scheduled jobs based on appdef id |
ControlSchedule |
getControlJob(AuthzSubject subject,
java.lang.Integer id)
Obtain a scheduled control action based on an id |
ControlHistory |
getCurrentJob(AuthzSubject whoami,
AppdefEntityID id)
Obtain the current action that is being executed. |
protected java.lang.String |
getHistoryPagerClass()
|
ControlHistory |
getJobByJobId(AuthzSubject subject,
java.lang.Integer id)
Obtain a control history object based on the history id |
ControlHistory |
getJobHistoryValue(java.lang.Integer jobId)
Get a control history value based on primary key |
protected java.lang.String |
getJobPrefix()
|
ControlHistory |
getLastJob(AuthzSubject subject,
AppdefEntityID id)
Obtain the last control action that fired. |
PageList |
getOnDemandControlFrequency(AuthzSubject subject,
int numToReturn)
Get a list of most active control operations |
static org.hyperic.hq.control.shared.ControlScheduleManagerLocal |
getOne()
|
PageList |
getPendingControlActions(AuthzSubject subject,
int rows)
Get a list of pending control actions in decending order |
PageList |
getRecentControlActions(AuthzSubject subject,
int rows,
long window)
Get a list of recent control actions in decending order |
protected java.lang.String |
getSchedulePagerClass()
|
protected java.lang.String |
getSchedulePrefix()
|
void |
removeHistory(java.lang.Integer id)
Get a control history value based on primary key |
void |
removeScheduledJobs(AuthzSubject subject,
AppdefEntityID id)
Removes all jobs associated with an appdef entity |
protected void |
setupJobData(org.quartz.JobDetail jobDetail,
AuthzSubject subject,
AppdefEntityID id,
java.lang.String action,
java.lang.String args,
java.lang.String scheduleString,
java.lang.Boolean scheduled,
java.lang.String description,
int[] order)
|
void |
updateHistory(java.lang.Integer jobId,
long endTime,
java.lang.String status,
java.lang.String message)
Update a control history entry |
Methods inherited from class org.hyperic.hq.scheduler.server.session.BaseScheduleManagerEJB |
---|
ejbActivate, ejbPassivate, ejbRemove, getDbType, getJobName, getPrefix, getTriggerName, setDbType, setSessionContext, setupJobData |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.ejb.SessionBean |
---|
ejbActivate, ejbPassivate, ejbRemove, setSessionContext |
Constructor Detail |
---|
public ControlScheduleManagerEJBImpl()
Method Detail |
---|
protected java.lang.String getHistoryPagerClass()
getHistoryPagerClass
in class BaseScheduleManagerEJB
protected java.lang.String getSchedulePagerClass()
getSchedulePagerClass
in class BaseScheduleManagerEJB
protected java.lang.String getJobPrefix()
getJobPrefix
in class BaseScheduleManagerEJB
protected java.lang.String getSchedulePrefix()
getSchedulePrefix
in class BaseScheduleManagerEJB
public static org.hyperic.hq.control.shared.ControlScheduleManagerLocal getOne()
public void ejbCreate()
BaseScheduleManagerEJB
ejbCreate
in class BaseScheduleManagerEJB
protected void setupJobData(org.quartz.JobDetail jobDetail, AuthzSubject subject, AppdefEntityID id, java.lang.String action, java.lang.String args, java.lang.String scheduleString, java.lang.Boolean scheduled, java.lang.String description, int[] order)
public PageList getRecentControlActions(AuthzSubject subject, int rows, long window) throws ApplicationException
ApplicationException
public PageList getPendingControlActions(AuthzSubject subject, int rows) throws ApplicationException
ApplicationException
public PageList getOnDemandControlFrequency(AuthzSubject subject, int numToReturn) throws ApplicationException
ApplicationException
public PageList findScheduledJobs(AuthzSubject subject, AppdefEntityID id, PageControl pc) throws ScheduledJobNotFoundException
ScheduledJobNotFoundException
public PageList findJobHistory(AuthzSubject subject, AppdefEntityID id, PageControl pc) throws PermissionException, AppdefEntityNotFoundException, GroupNotCompatibleException
PermissionException
AppdefEntityNotFoundException
GroupNotCompatibleException
public PageList findGroupJobHistory(AuthzSubject subject, int batchId, AppdefEntityID id, PageControl pc) throws ApplicationException
ApplicationException
public void deleteJobHistory(AuthzSubject subject, java.lang.Integer[] ids) throws ApplicationException
ApplicationException
public ControlHistory getCurrentJob(AuthzSubject whoami, AppdefEntityID id) throws ApplicationException
ApplicationException
public ControlHistory getJobByJobId(AuthzSubject subject, java.lang.Integer id) throws ApplicationException
ApplicationException
public ControlHistory getLastJob(AuthzSubject subject, AppdefEntityID id) throws ApplicationException
ApplicationException
public ControlSchedule getControlJob(AuthzSubject subject, java.lang.Integer id) throws PluginException
PluginException
public void deleteControlJob(AuthzSubject subject, java.lang.Integer[] ids) throws PluginException
PluginException
public void removeScheduledJobs(AuthzSubject subject, AppdefEntityID id) throws ScheduledJobRemoveException
ScheduledJobRemoveException
public java.lang.Integer doAgentControlCommand(AppdefEntityID id, AppdefEntityID gid, java.lang.Integer batchId, AuthzSubject subject, java.util.Date dateScheduled, java.lang.Boolean scheduled, java.lang.String description, java.lang.String action, java.lang.String args) throws PluginException
PluginException
public void doSingleAction(AppdefEntityID id, AuthzSubject subject, java.lang.String action, java.lang.String args, int[] order) throws PluginException
PluginException
public void doScheduledAction(AppdefEntityID id, AuthzSubject subject, java.lang.String action, ScheduleValue schedule, int[] order) throws PluginException, org.quartz.SchedulerException
PluginException
org.quartz.SchedulerException
public ControlHistory createHistory(AppdefEntityID id, java.lang.Integer groupId, java.lang.Integer batchId, java.lang.String subjectName, java.lang.String action, java.lang.String args, java.lang.Boolean scheduled, long startTime, long stopTime, long scheduleTime, java.lang.String status, java.lang.String description, java.lang.String errorMessage)
public void updateHistory(java.lang.Integer jobId, long endTime, java.lang.String status, java.lang.String message) throws ApplicationException
ApplicationException
public ControlHistory getJobHistoryValue(java.lang.Integer jobId) throws ApplicationException
ApplicationException
public void removeHistory(java.lang.Integer id) throws ApplicationException
ApplicationException
|
Hyperic HQ Plugin API v. 4.4.0.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |