|
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.bizapp.server.session.BizappSessionEJB
org.hyperic.hq.bizapp.server.session.ControlBossEJBImpl
public class ControlBossEJBImpl
Field Summary |
---|
Fields inherited from class org.hyperic.hq.bizapp.server.session.BizappSessionEJB |
---|
ctx |
Constructor Summary | |
---|---|
ControlBossEJBImpl()
|
Method Summary | |
---|---|
java.util.List |
batchCheckControlPermissions(int sessionId,
AppdefEntityID[] entities)
Accept an array of appdef entity Ids and verify control permission on each entity for specified subject. |
void |
deleteControlJob(int sessionId,
java.lang.Integer[] ids)
Delete a ControlJob based on an id |
void |
deleteJobHistory(int sessionId,
java.lang.Integer[] ids)
Remove an entry from the control history |
void |
doAction(int sessionId,
AppdefEntityID id,
java.lang.String action,
ScheduleValue schedule)
Execute a control action This is used for doing scheduled control actions. |
void |
doAction(int sessionId,
AppdefEntityID id,
java.lang.String action,
java.lang.String args)
Execute a control action immediately on an appdef entity. |
void |
doGroupAction(int sessionId,
AppdefEntityID groupEnt,
java.lang.String action,
int[] orderSpec,
ScheduleValue schedule)
Schedule a control action on a group entity. |
void |
doGroupAction(int sessionId,
AppdefEntityID groupEnt,
java.lang.String action,
java.lang.String args,
int[] orderSpec)
Execute a control action immediately on a group entity. |
void |
ejbActivate()
|
void |
ejbCreate()
|
void |
ejbPassivate()
|
void |
ejbRemove()
|
java.util.Map |
findControllablePlatformTypes(int sessionID)
Find types of all controllable platforms defined in the system. |
java.util.Map |
findControllableResourceNames(int sessionID,
AppdefEntityTypeID aetid)
Find names of all controllable resources of a given type. |
java.util.Map |
findControllableServerTypes(int sessionID)
Find types of all controllable servers defined in the system. |
java.util.Map |
findControllableServiceTypes(int sessionID)
Find types of all controllable services defined in the system. |
PageList |
findGroupJobHistory(int sessionId,
AppdefEntityID id,
int batchJobId,
PageControl pc)
Group job history detail on group appdef id |
PageList |
findJobHistory(int sessionId,
AppdefEntityID id,
PageControl pc)
Get a job history based on appdef id |
PageList |
findScheduledJobs(int sessionId,
AppdefEntityID id,
PageControl pc)
Finder for all of the scheduled jobs for an appdef entity. |
java.util.List |
getActions(int sessionId,
AppdefEntityID id)
Get the actions supported for an appdef entity |
java.util.List |
getActions(int sessionId,
AppdefEntityTypeID aetid)
Get the actions supported for an appdef entity type |
ControlSchedule |
getControlJob(int sessionId,
java.lang.Integer id)
Obtain a ControlJob based on an id |
ControlHistory |
getCurrentJob(int sessionId,
AppdefEntityID id)
Obtain the current action that is being executed. |
ControlHistory |
getJobByJobId(int sessionId,
java.lang.Integer id)
Obtain a control action based on job id |
ControlHistory |
getLastJob(int sessionId,
AppdefEntityID id)
Obtain the last control action that fired |
PageList |
getOnDemandControlFrequency(int sessionId,
int numToReturn)
Get a list of most active control operations |
PageList |
getPendingControlActions(int sessionId,
int rows)
Get a list of pending control actions in decending order |
PageList |
getRecentControlActions(int sessionId,
int rows,
long window)
Get a list of recent control actions in decending order |
PageList |
getRecentControlActions(java.lang.String user,
int rows,
long window)
Get a list of recent control actions in decending order. |
boolean |
isControlEnabled(int sessionId)
Check if anything has been enabled for control |
boolean |
isControlEnabled(int sessionId,
AppdefEntityID id)
Check if an entity has been enabled for control |
boolean |
isControlSupported(int sessionId,
AppdefEntityTypeID tid)
Check if the entity's resource supports control |
boolean |
isControlSupported(int sessionId,
AppdefResourceValue res)
Check if the entity's resource supports control |
boolean |
isGroupControlEnabled(int sessionId,
AppdefEntityID id)
Check if a group has been enabled for control |
void |
removeScheduledJobs(int sessionId,
AppdefEntityID id)
Remove all of the scheduled jobs for an appdef entity. |
void |
setSessionContext(javax.ejb.SessionContext ctx)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ControlBossEJBImpl()
Method Detail |
---|
public void ejbCreate()
public void ejbRemove()
ejbRemove
in interface javax.ejb.SessionBean
public void ejbActivate()
ejbActivate
in interface javax.ejb.SessionBean
public void ejbPassivate()
ejbPassivate
in interface javax.ejb.SessionBean
public void setSessionContext(javax.ejb.SessionContext ctx)
setSessionContext
in interface javax.ejb.SessionBean
setSessionContext
in class BizappSessionEJB
public void doAction(int sessionId, AppdefEntityID id, java.lang.String action, java.lang.String args) throws PluginException, GroupNotCompatibleException, SessionNotFoundException, SessionTimeoutException, PermissionException, AppdefEntityNotFoundException
action
- The action to perform
PluginException
GroupNotCompatibleException
SessionNotFoundException
SessionTimeoutException
PermissionException
AppdefEntityNotFoundException
public void doAction(int sessionId, AppdefEntityID id, java.lang.String action, ScheduleValue schedule) throws PluginException, org.quartz.SchedulerException, SessionNotFoundException, SessionTimeoutException, PermissionException, AppdefEntityNotFoundException, GroupNotCompatibleException, ApplicationException
controlJob
- The control job action nameschedule
- The control job schedule
PluginException
org.quartz.SchedulerException
SessionNotFoundException
SessionTimeoutException
PermissionException
AppdefEntityNotFoundException
GroupNotCompatibleException
ApplicationException
public void doGroupAction(int sessionId, AppdefEntityID groupEnt, java.lang.String action, int[] orderSpec, ScheduleValue schedule) throws PluginException, org.quartz.SchedulerException, SessionNotFoundException, SessionTimeoutException, PermissionException, AppdefEntityNotFoundException, GroupNotCompatibleException, ApplicationException
action
- The action to perform
PluginException
org.quartz.SchedulerException
SessionNotFoundException
SessionTimeoutException
PermissionException
AppdefEntityNotFoundException
GroupNotCompatibleException
ApplicationException
public void doGroupAction(int sessionId, AppdefEntityID groupEnt, java.lang.String action, java.lang.String args, int[] orderSpec) throws PluginException, GroupNotCompatibleException, SessionNotFoundException, SessionTimeoutException, PermissionException, AppdefEntityNotFoundException
action
- The action to perform
PluginException
GroupNotCompatibleException
SessionNotFoundException
SessionTimeoutException
PermissionException
AppdefEntityNotFoundException
public java.util.List getActions(int sessionId, AppdefEntityID id) throws PluginNotFoundException, AppdefEntityNotFoundException, SessionNotFoundException, SessionTimeoutException, PermissionException, GroupNotCompatibleException
PluginNotFoundException
AppdefEntityNotFoundException
SessionNotFoundException
SessionTimeoutException
PermissionException
GroupNotCompatibleException
public java.util.List getActions(int sessionId, AppdefEntityTypeID aetid) throws PluginNotFoundException, PermissionException, SessionNotFoundException, SessionTimeoutException
PluginNotFoundException
PermissionException
SessionNotFoundException
SessionTimeoutException
public boolean isGroupControlEnabled(int sessionId, AppdefEntityID id) throws AppdefEntityNotFoundException, PermissionException, SessionNotFoundException, SessionTimeoutException
AppdefEntityNotFoundException
PermissionException
SessionNotFoundException
SessionTimeoutException
public boolean isControlSupported(int sessionId, AppdefResourceValue res) throws SessionNotFoundException, SessionTimeoutException
SessionNotFoundException
SessionTimeoutException
public boolean isControlSupported(int sessionId, AppdefEntityTypeID tid) throws SessionNotFoundException, SessionTimeoutException
SessionNotFoundException
SessionTimeoutException
public boolean isControlEnabled(int sessionId) throws SessionNotFoundException, SessionTimeoutException, PermissionException
SessionNotFoundException
SessionTimeoutException
PermissionException
public boolean isControlEnabled(int sessionId, AppdefEntityID id) throws AppdefEntityNotFoundException, SessionNotFoundException, SessionTimeoutException, PermissionException
AppdefEntityNotFoundException
SessionNotFoundException
SessionTimeoutException
PermissionException
public PageList findScheduledJobs(int sessionId, AppdefEntityID id, PageControl pc) throws PluginException, ScheduledJobNotFoundException, SessionNotFoundException, SessionTimeoutException, PermissionException
PluginException
ScheduledJobNotFoundException
SessionNotFoundException
SessionTimeoutException
PermissionException
public void removeScheduledJobs(int sessionId, AppdefEntityID id) throws SessionNotFoundException, SessionTimeoutException, ScheduledJobRemoveException
SessionNotFoundException
SessionTimeoutException
ScheduledJobRemoveException
public PageList findJobHistory(int sessionId, AppdefEntityID id, PageControl pc) throws PluginException, ApplicationException, PermissionException, SessionNotFoundException, SessionTimeoutException
PluginException
ApplicationException
PermissionException
SessionNotFoundException
SessionTimeoutException
public PageList findGroupJobHistory(int sessionId, AppdefEntityID id, int batchJobId, PageControl pc) throws PluginException, ApplicationException, SessionNotFoundException, SessionTimeoutException, PermissionException, AppdefGroupNotFoundException
PluginException
ApplicationException
SessionNotFoundException
SessionTimeoutException
PermissionException
AppdefGroupNotFoundException
public void deleteJobHistory(int sessionId, java.lang.Integer[] ids) throws ApplicationException, PermissionException, SessionNotFoundException, SessionTimeoutException
ApplicationException
PermissionException
SessionNotFoundException
SessionTimeoutException
public ControlHistory getCurrentJob(int sessionId, AppdefEntityID id) throws ApplicationException, PermissionException, SessionNotFoundException, SessionTimeoutException
ApplicationException
PermissionException
SessionNotFoundException
SessionTimeoutException
public ControlHistory getJobByJobId(int sessionId, java.lang.Integer id) throws ApplicationException, PermissionException, SessionNotFoundException, SessionTimeoutException
ApplicationException
PermissionException
SessionNotFoundException
SessionTimeoutException
public ControlHistory getLastJob(int sessionId, AppdefEntityID id) throws ApplicationException, PermissionException, SessionNotFoundException, SessionTimeoutException
ApplicationException
PermissionException
SessionNotFoundException
SessionTimeoutException
public ControlSchedule getControlJob(int sessionId, java.lang.Integer id) throws PluginException, ApplicationException, PermissionException, SessionNotFoundException, SessionTimeoutException
triggerName
- The control trigger name
PluginException
ApplicationException
PermissionException
SessionNotFoundException
SessionTimeoutException
public void deleteControlJob(int sessionId, java.lang.Integer[] ids) throws PluginException, ApplicationException, PermissionException, SessionNotFoundException, SessionTimeoutException
ids
- Array of job ids to be deleted
PluginException
ApplicationException
PermissionException
SessionNotFoundException
SessionTimeoutException
public PageList getRecentControlActions(int sessionId, int rows, long window) throws ApplicationException, PermissionException, SessionNotFoundException, SessionTimeoutException
ApplicationException
PermissionException
SessionNotFoundException
SessionTimeoutException
public PageList getRecentControlActions(java.lang.String user, int rows, long window) throws javax.security.auth.login.LoginException, ApplicationException
ApplicationException
- if user is not found
javax.security.auth.login.LoginException
- if user account has been disabledpublic PageList getPendingControlActions(int sessionId, int rows) throws ApplicationException, PermissionException, SessionNotFoundException, SessionTimeoutException
ApplicationException
PermissionException
SessionNotFoundException
SessionTimeoutException
public PageList getOnDemandControlFrequency(int sessionId, int numToReturn) throws ApplicationException, PermissionException, ApplicationException, SessionNotFoundException, SessionTimeoutException
ApplicationException
PermissionException
SessionNotFoundException
SessionTimeoutException
public java.util.List batchCheckControlPermissions(int sessionId, AppdefEntityID[] entities) throws AppdefEntityNotFoundException, PermissionException, SessionNotFoundException, SessionTimeoutException
AppdefEntityNotFoundException
PermissionException
SessionNotFoundException
SessionTimeoutException
public java.util.Map findControllablePlatformTypes(int sessionID) throws SessionNotFoundException, SessionTimeoutException, PermissionException
PermissionException
SessionNotFoundException
SessionTimeoutException
public java.util.Map findControllableServerTypes(int sessionID) throws SessionNotFoundException, SessionTimeoutException, PermissionException
PermissionException
SessionNotFoundException
SessionTimeoutException
public java.util.Map findControllableServiceTypes(int sessionID) throws SessionNotFoundException, SessionTimeoutException, PermissionException
PermissionException
SessionNotFoundException
SessionTimeoutException
public java.util.Map findControllableResourceNames(int sessionID, AppdefEntityTypeID aetid) throws SessionNotFoundException, SessionException, PermissionException
PermissionException
SessionNotFoundException
SessionException
|
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 |