|
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.EventsBossEJBImpl
public class EventsBossEJBImpl
The BizApp's interface to the Events Subsystem
Field Summary |
---|
Fields inherited from class org.hyperic.hq.bizapp.server.session.BizappSessionEJB |
---|
ctx |
Constructor Summary | |
---|---|
EventsBossEJBImpl()
|
Method Summary | |
---|---|
boolean |
acknowledgeAlert(int sessionID,
EscalationAlertType alertType,
java.lang.Integer alertID,
long pauseWaitTime,
java.lang.String moreInfo)
|
void |
activateAlertDefinitions(int sessionID,
AppdefEntityID[] eids,
boolean activate)
Activate or deactivate alert definitions by AppdefEntityID. |
void |
activateAlertDefinitions(int sessionID,
java.lang.Integer[] ids,
boolean activate)
Activate/deactivate a collection of alert definitions |
void |
addAction(int sessionID,
Escalation e,
ActionConfigInterface cfg,
long waitTime)
|
Action |
createAction(int sessionID,
java.lang.Integer adid,
java.lang.String className,
ConfigResponse config)
|
AlertDefinitionValue |
createAlertDefinition(int sessionID,
AlertDefinitionValue adval)
Create an alert definition |
Escalation |
createEscalation(int sessionID,
java.lang.String name,
java.lang.String desc,
boolean allowPause,
long maxWaitTime,
boolean notifyAll,
boolean repeat,
EscalationAlertType alertType,
java.lang.Integer alertDefId)
Create a new escalation. |
AlertDefinitionValue |
createResourceTypeAlertDefinition(int sessionID,
AppdefEntityTypeID aetid,
AlertDefinitionValue adval)
Create an alert definition for a resource type |
void |
deleteAlertDefinitions(int sessionID,
java.lang.Integer[] ids)
Delete a collection of alert definitions |
int |
deleteAlerts(int sessionID,
AppdefEntityID aeid)
Delete all alerts for a resource |
void |
deleteAlerts(int sessionID,
java.lang.Integer[] ids)
Delete list of alerts |
int |
deleteAlerts(int sessionID,
long begin,
long end)
Delete all alerts for a given period of time |
int |
deleteAlertsForDefinitions(int sessionID,
java.lang.Integer[] adids)
Delete all alerts for a list of alert definitions |
void |
deleteEscalationById(int sessionID,
java.lang.Integer id)
|
void |
deleteEscalationById(int sessionID,
java.lang.Integer[] ids)
remove escalation by id |
void |
deleteEscalationByName(int sessionID,
java.lang.String name)
|
void |
ejbActivate()
|
void |
ejbCreate()
|
void |
ejbPassivate()
|
void |
ejbRemove()
|
java.util.Map |
findAlertDefinitionNames(int sessionID,
AppdefEntityID id,
java.lang.Integer parentId)
Find all alert definition names for a resource |
PageList |
findAlertDefinitions(int sessionID,
AppdefEntityID id,
PageControl pc)
Get a collection of alert definitions for a resource |
PageList |
findAlertDefinitions(int sessionID,
AppdefEntityTypeID id,
PageControl pc)
Get a collection of alert definitions for a resource or resource type |
PageList |
findAlerts(int sessionID,
AppdefEntityID id,
long begin,
long end,
PageControl pc)
Find all alerts for an appdef resource |
PageList |
findAlerts(int sessionID,
AppdefEntityID id,
PageControl pc)
Find all alerts for an appdef resource |
PageList |
findAllAlertDefinitions(int sessionID)
Get a list of all alert definitions |
PageList |
findAllAlerts(int sessionID)
Get a list of all alerts |
Escalation |
findEscalationById(int sessionID,
java.lang.Integer id)
retrieve escalation object by escalation id. |
java.util.List |
findRecentAlerts(int sessionID,
int count,
int priority,
long timeRange,
AppdefEntityID[] ids)
Search recent alerts given a set of criteria |
java.util.List |
findRecentAlerts(java.lang.String username,
int count,
int priority,
long timeRange,
AppdefEntityID[] ids)
Search alerts given a set of criteria |
void |
fixAlert(int sessionID,
EscalationAlertType alertType,
java.lang.Integer alertID,
java.lang.String moreInfo)
Fix a single alert. |
void |
fixAlert(int sessionID,
EscalationAlertType alertType,
java.lang.Integer alertID,
java.lang.String moreInfo,
boolean fixAllPrevious)
Fix a batch of alerts. |
ConfigSchema |
getActionConfigSchema(int sessionID,
java.lang.String actionClass)
Get config schema info for an action class |
java.util.List |
getActionsForAlert(int sessionId,
java.lang.Integer alertId)
Get actions for a given alert. |
java.util.List |
getActiveEscalations(int sessionId,
int maxEscalations)
Retrieve a list of EscalationState s, representing the active
escalations in the system. |
Alert |
getAlert(int sessionID,
java.lang.Integer id)
Find an alert by ID |
int[] |
getAlertCount(int sessionID,
AppdefEntityID[] ids)
Get the number of alerts for the given array of AppdefEntityID's |
AlertDefinitionValue |
getAlertDefinition(int sessionID,
java.lang.Integer id)
Get an alert definition by ID |
Escalatable |
getEscalatable(int sessionId,
EscalationState state)
Gets the escalatable associated with the specified state |
java.lang.Integer |
getEscalationIdByAlertDefId(int sessionID,
java.lang.Integer id,
EscalationAlertType alertType)
retrieve escalation name by alert definition id. |
java.lang.String |
getLastFix(int sessionID,
java.lang.Integer defId)
Get the last fix if available |
MaintenanceEvent |
getMaintenanceEvent(int sessionId,
java.lang.Integer groupId)
Get a maintenance event by group id |
static org.hyperic.hq.bizapp.shared.EventsBossLocal |
getOne()
|
ConfigSchema |
getRegisteredTriggerConfigSchema(int sessionID,
java.lang.String triggerClass)
Get config schema info for a trigger class |
void |
inheritResourceTypeAlertDefinition(AuthzSubject subject,
AppdefEntityID id)
|
org.json.JSONObject |
jsonEscalationByAlertDefId(int sessionID,
java.lang.Integer id,
EscalationAlertType alertType)
retrieve escalation JSONObject by alert definition id. |
org.json.JSONArray |
listAllEscalationName(int sessionID)
retrieve all escalation policy names as a Array of JSONObject. |
void |
removeAction(int sessionID,
java.lang.Integer escId,
java.lang.Integer actId)
|
MaintenanceEvent |
scheduleMaintenanceEvent(int sessionId,
MaintenanceEvent event)
Schedule a maintenance event |
void |
setEscalationByAlertDefId(int sessionID,
java.lang.Integer id,
java.lang.Integer escId,
EscalationAlertType alertType)
set escalation name by alert definition id. |
void |
setSessionContext(javax.ejb.SessionContext ctx)
|
void |
startup()
|
void |
unscheduleMaintenanceEvent(int sessionId,
MaintenanceEvent event)
Schedule a maintenance event |
void |
unsetEscalationByAlertDefId(int sessionID,
java.lang.Integer id,
EscalationAlertType alertType)
unset escalation by alert definition id. |
void |
updateAction(int sessionID,
ActionValue aval)
Update an action |
void |
updateAlertDefinition(int sessionID,
AlertDefinitionValue adval)
|
void |
updateAlertDefinitionBasic(int sessionID,
java.lang.Integer alertDefId,
java.lang.String name,
java.lang.String desc,
int priority,
boolean activate)
Update just the basics |
void |
updateEscalation(int sessionID,
Escalation escalation,
java.lang.String name,
java.lang.String desc,
long maxWait,
boolean pausable,
boolean notifyAll,
boolean repeat)
Update basic escalation properties |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EventsBossEJBImpl()
Method Detail |
---|
public int[] getAlertCount(int sessionID, AppdefEntityID[] ids) throws SessionNotFoundException, SessionTimeoutException, PermissionException, javax.ejb.FinderException
SessionNotFoundException
SessionTimeoutException
PermissionException
javax.ejb.FinderException
public AlertDefinitionValue createAlertDefinition(int sessionID, AlertDefinitionValue adval) throws AlertDefinitionCreateException, PermissionException, InvalidOptionException, InvalidOptionValueException, SessionException
AlertDefinitionCreateException
PermissionException
InvalidOptionException
InvalidOptionValueException
SessionException
public AlertDefinitionValue createResourceTypeAlertDefinition(int sessionID, AppdefEntityTypeID aetid, AlertDefinitionValue adval) throws AlertDefinitionCreateException, PermissionException, InvalidOptionException, InvalidOptionValueException, SessionNotFoundException, SessionTimeoutException
AlertDefinitionCreateException
PermissionException
InvalidOptionException
InvalidOptionValueException
SessionNotFoundException
SessionTimeoutException
public void inheritResourceTypeAlertDefinition(AuthzSubject subject, AppdefEntityID id) throws AppdefEntityNotFoundException, PermissionException, InvalidOptionException, InvalidOptionValueException, AlertDefinitionCreateException
AppdefEntityNotFoundException
PermissionException
InvalidOptionException
InvalidOptionValueException
AlertDefinitionCreateException
public Action createAction(int sessionID, java.lang.Integer adid, java.lang.String className, ConfigResponse config) throws SessionNotFoundException, SessionTimeoutException, ActionCreateException, javax.ejb.RemoveException, javax.ejb.FinderException, PermissionException
SessionNotFoundException
SessionTimeoutException
ActionCreateException
javax.ejb.RemoveException
javax.ejb.FinderException
PermissionException
public void activateAlertDefinitions(int sessionID, java.lang.Integer[] ids, boolean activate) throws SessionNotFoundException, SessionTimeoutException, javax.ejb.FinderException, PermissionException
SessionNotFoundException
SessionTimeoutException
javax.ejb.FinderException
PermissionException
public void activateAlertDefinitions(int sessionID, AppdefEntityID[] eids, boolean activate) throws SessionNotFoundException, SessionTimeoutException, AppdefEntityNotFoundException, PermissionException
SessionNotFoundException
SessionTimeoutException
AppdefEntityNotFoundException
PermissionException
public void updateAlertDefinitionBasic(int sessionID, java.lang.Integer alertDefId, java.lang.String name, java.lang.String desc, int priority, boolean activate) throws SessionNotFoundException, SessionTimeoutException, javax.ejb.FinderException, javax.ejb.RemoveException, PermissionException
SessionNotFoundException
SessionTimeoutException
javax.ejb.FinderException
javax.ejb.RemoveException
PermissionException
public void updateAlertDefinition(int sessionID, AlertDefinitionValue adval) throws TriggerCreateException, InvalidOptionException, InvalidOptionValueException, AlertConditionCreateException, ActionCreateException, javax.ejb.FinderException, javax.ejb.RemoveException, SessionNotFoundException, SessionTimeoutException
TriggerCreateException
InvalidOptionException
InvalidOptionValueException
AlertConditionCreateException
ActionCreateException
javax.ejb.FinderException
javax.ejb.RemoveException
SessionNotFoundException
SessionTimeoutException
public java.util.List getActionsForAlert(int sessionId, java.lang.Integer alertId) throws SessionNotFoundException, SessionTimeoutException
alertId
- the alert id
SessionNotFoundException
SessionTimeoutException
public void updateAction(int sessionID, ActionValue aval) throws SessionNotFoundException, SessionTimeoutException
SessionNotFoundException
SessionTimeoutException
public void deleteAlertDefinitions(int sessionID, java.lang.Integer[] ids) throws SessionNotFoundException, SessionTimeoutException, javax.ejb.RemoveException, PermissionException
SessionNotFoundException
SessionTimeoutException
javax.ejb.RemoveException
PermissionException
public void deleteAlerts(int sessionID, java.lang.Integer[] ids) throws SessionNotFoundException, SessionTimeoutException, javax.ejb.RemoveException, PermissionException
SessionNotFoundException
SessionTimeoutException
javax.ejb.RemoveException
PermissionException
public int deleteAlerts(int sessionID, AppdefEntityID aeid) throws SessionNotFoundException, SessionTimeoutException, javax.ejb.RemoveException, PermissionException
SessionNotFoundException
SessionTimeoutException
javax.ejb.RemoveException
PermissionException
public int deleteAlerts(int sessionID, long begin, long end) throws SessionNotFoundException, SessionTimeoutException, javax.ejb.RemoveException, PermissionException
SessionNotFoundException
SessionTimeoutException
javax.ejb.RemoveException
PermissionException
public int deleteAlertsForDefinitions(int sessionID, java.lang.Integer[] adids) throws SessionNotFoundException, SessionTimeoutException, javax.ejb.RemoveException, PermissionException, javax.ejb.FinderException
javax.ejb.FinderException
- if alert definition is not found
SessionNotFoundException
SessionTimeoutException
javax.ejb.RemoveException
PermissionException
public AlertDefinitionValue getAlertDefinition(int sessionID, java.lang.Integer id) throws SessionNotFoundException, SessionTimeoutException, javax.ejb.FinderException, PermissionException
SessionNotFoundException
SessionTimeoutException
javax.ejb.FinderException
PermissionException
public Alert getAlert(int sessionID, java.lang.Integer id) throws SessionNotFoundException, SessionTimeoutException, AlertNotFoundException
SessionNotFoundException
SessionTimeoutException
AlertNotFoundException
public PageList findAllAlertDefinitions(int sessionID) throws SessionNotFoundException, SessionTimeoutException, PermissionException
SessionNotFoundException
SessionTimeoutException
PermissionException
public PageList findAlertDefinitions(int sessionID, AppdefEntityID id, PageControl pc) throws SessionNotFoundException, SessionTimeoutException, PermissionException
SessionNotFoundException
SessionTimeoutException
PermissionException
public PageList findAlertDefinitions(int sessionID, AppdefEntityTypeID id, PageControl pc) throws SessionNotFoundException, SessionTimeoutException, PermissionException
SessionNotFoundException
SessionTimeoutException
PermissionException
public java.util.Map findAlertDefinitionNames(int sessionID, AppdefEntityID id, java.lang.Integer parentId) throws SessionNotFoundException, SessionTimeoutException, AppdefEntityNotFoundException, PermissionException
SessionNotFoundException
SessionTimeoutException
AppdefEntityNotFoundException
PermissionException
public PageList findAllAlerts(int sessionID) throws SessionNotFoundException, SessionTimeoutException
SessionNotFoundException
SessionTimeoutException
public PageList findAlerts(int sessionID, AppdefEntityID id, PageControl pc) throws SessionNotFoundException, SessionTimeoutException, PermissionException
SessionNotFoundException
SessionTimeoutException
PermissionException
public PageList findAlerts(int sessionID, AppdefEntityID id, long begin, long end, PageControl pc) throws SessionNotFoundException, SessionTimeoutException, PermissionException
SessionNotFoundException
SessionTimeoutException
PermissionException
public java.util.List findRecentAlerts(java.lang.String username, int count, int priority, long timeRange, AppdefEntityID[] ids) throws javax.security.auth.login.LoginException, ApplicationException, ConfigPropertyException
username
- the usernamecount
- the maximum number of alerts to returnpriority
- allowable values: 0 (all), 1, 2, or 3timeRange
- the amount of time from current time to includeids
- the IDs of resources to include or null for ALL
Escalatable
s
javax.security.auth.login.LoginException
ApplicationException
ConfigPropertyException
public java.util.List findRecentAlerts(int sessionID, int count, int priority, long timeRange, AppdefEntityID[] ids) throws SessionNotFoundException, SessionTimeoutException, PermissionException
sessionID
- the session tokencount
- the maximum number of alerts to returnpriority
- allowable values: 0 (all), 1, 2, or 3timeRange
- the amount of time from current time to includeids
- the IDs of resources to include or null for ALL
Escalatable
s
SessionNotFoundException
SessionTimeoutException
PermissionException
public ConfigSchema getActionConfigSchema(int sessionID, java.lang.String actionClass) throws SessionNotFoundException, SessionTimeoutException, EncodingException
SessionNotFoundException
SessionTimeoutException
EncodingException
public ConfigSchema getRegisteredTriggerConfigSchema(int sessionID, java.lang.String triggerClass) throws SessionNotFoundException, SessionTimeoutException, EncodingException
SessionNotFoundException
SessionTimeoutException
EncodingException
public void deleteEscalationByName(int sessionID, java.lang.String name) throws SessionTimeoutException, SessionNotFoundException, PermissionException, ApplicationException
SessionTimeoutException
SessionNotFoundException
PermissionException
ApplicationException
public void deleteEscalationById(int sessionID, java.lang.Integer id) throws SessionTimeoutException, SessionNotFoundException, PermissionException, ApplicationException
SessionTimeoutException
SessionNotFoundException
PermissionException
ApplicationException
public void deleteEscalationById(int sessionID, java.lang.Integer[] ids) throws SessionTimeoutException, SessionNotFoundException, PermissionException, ApplicationException
SessionTimeoutException
SessionNotFoundException
PermissionException
ApplicationException
public java.lang.Integer getEscalationIdByAlertDefId(int sessionID, java.lang.Integer id, EscalationAlertType alertType) throws SessionTimeoutException, SessionNotFoundException, PermissionException, javax.ejb.FinderException
SessionTimeoutException
SessionNotFoundException
PermissionException
javax.ejb.FinderException
public void setEscalationByAlertDefId(int sessionID, java.lang.Integer id, java.lang.Integer escId, EscalationAlertType alertType) throws SessionTimeoutException, SessionNotFoundException, PermissionException
SessionTimeoutException
SessionNotFoundException
PermissionException
public void unsetEscalationByAlertDefId(int sessionID, java.lang.Integer id, EscalationAlertType alertType) throws SessionTimeoutException, SessionNotFoundException, PermissionException
SessionTimeoutException
SessionNotFoundException
PermissionException
public org.json.JSONObject jsonEscalationByAlertDefId(int sessionID, java.lang.Integer id, EscalationAlertType alertType) throws SessionException, PermissionException, org.json.JSONException, javax.ejb.FinderException
SessionException
PermissionException
org.json.JSONException
javax.ejb.FinderException
public Escalation findEscalationById(int sessionID, java.lang.Integer id) throws SessionTimeoutException, SessionNotFoundException, PermissionException
SessionTimeoutException
SessionNotFoundException
PermissionException
public void addAction(int sessionID, Escalation e, ActionConfigInterface cfg, long waitTime) throws SessionTimeoutException, SessionNotFoundException, PermissionException
SessionTimeoutException
SessionNotFoundException
PermissionException
public void removeAction(int sessionID, java.lang.Integer escId, java.lang.Integer actId) throws SessionTimeoutException, SessionNotFoundException, PermissionException
SessionTimeoutException
SessionNotFoundException
PermissionException
public java.util.List getActiveEscalations(int sessionId, int maxEscalations) throws SessionException
EscalationState
s, representing the active
escalations in the system.
SessionException
public Escalatable getEscalatable(int sessionId, EscalationState state) throws SessionException
SessionException
public org.json.JSONArray listAllEscalationName(int sessionID) throws org.json.JSONException, SessionTimeoutException, SessionNotFoundException, PermissionException
org.json.JSONException
SessionTimeoutException
SessionNotFoundException
PermissionException
public Escalation createEscalation(int sessionID, java.lang.String name, java.lang.String desc, boolean allowPause, long maxWaitTime, boolean notifyAll, boolean repeat, EscalationAlertType alertType, java.lang.Integer alertDefId) throws SessionTimeoutException, SessionNotFoundException, PermissionException, DuplicateObjectException
SessionTimeoutException
SessionNotFoundException
PermissionException
DuplicateObjectException
public void updateEscalation(int sessionID, Escalation escalation, java.lang.String name, java.lang.String desc, long maxWait, boolean pausable, boolean notifyAll, boolean repeat) throws SessionTimeoutException, SessionNotFoundException, PermissionException, DuplicateObjectException
SessionTimeoutException
SessionNotFoundException
PermissionException
DuplicateObjectException
public boolean acknowledgeAlert(int sessionID, EscalationAlertType alertType, java.lang.Integer alertID, long pauseWaitTime, java.lang.String moreInfo) throws SessionTimeoutException, SessionNotFoundException, PermissionException, ActionExecuteException
SessionTimeoutException
SessionNotFoundException
PermissionException
ActionExecuteException
public void fixAlert(int sessionID, EscalationAlertType alertType, java.lang.Integer alertID, java.lang.String moreInfo) throws SessionTimeoutException, SessionNotFoundException, PermissionException, ActionExecuteException
SessionTimeoutException
SessionNotFoundException
PermissionException
ActionExecuteException
public void fixAlert(int sessionID, EscalationAlertType alertType, java.lang.Integer alertID, java.lang.String moreInfo, boolean fixAllPrevious) throws SessionTimeoutException, SessionNotFoundException, PermissionException, ActionExecuteException
SessionTimeoutException
SessionNotFoundException
PermissionException
ActionExecuteException
public java.lang.String getLastFix(int sessionID, java.lang.Integer defId) throws SessionNotFoundException, SessionTimeoutException, PermissionException, javax.ejb.FinderException
SessionNotFoundException
SessionTimeoutException
PermissionException
javax.ejb.FinderException
public MaintenanceEvent getMaintenanceEvent(int sessionId, java.lang.Integer groupId) throws SessionNotFoundException, SessionTimeoutException, PermissionException, org.quartz.SchedulerException
SessionNotFoundException
SessionTimeoutException
PermissionException
org.quartz.SchedulerException
public MaintenanceEvent scheduleMaintenanceEvent(int sessionId, MaintenanceEvent event) throws SessionNotFoundException, SessionTimeoutException, PermissionException, org.quartz.SchedulerException
SessionNotFoundException
SessionTimeoutException
PermissionException
org.quartz.SchedulerException
public void unscheduleMaintenanceEvent(int sessionId, MaintenanceEvent event) throws SessionNotFoundException, SessionTimeoutException, PermissionException, org.quartz.SchedulerException
SessionNotFoundException
SessionTimeoutException
PermissionException
org.quartz.SchedulerException
public void startup()
public static org.hyperic.hq.bizapp.shared.EventsBossLocal getOne()
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
|
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 |