|
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.GalertBossEJBImpl
public class GalertBossEJBImpl
The BizApp's interface to the Events Subsystem
Constructor Summary | |
---|---|
GalertBossEJBImpl()
|
Method Summary | |
---|---|
ExecutionStrategyInfo |
addPartition(int sessionId,
GalertDef def,
GalertDefPartition partition,
ExecutionStrategyTypeInfo stratType,
ConfigResponse stratConfig)
|
void |
configureTriggers(int sessionId,
GalertDef def,
GalertDefPartition partition,
java.util.List triggerInfos,
java.util.List configs)
|
int |
countAlertLogs(int sessionId,
java.lang.Integer gid,
long begin,
long end)
Count the total number of galerts in the time frame |
GalertDef |
createAlertDef(int sessionId,
java.lang.String name,
java.lang.String description,
AlertSeverity severity,
boolean enabled,
ResourceGroup group)
|
void |
ejbActivate()
|
void |
ejbCreate()
|
void |
ejbPassivate()
|
void |
ejbRemove()
|
void |
enable(int sessionId,
GalertDef[] defs,
boolean enable)
Bulk enable or disable GalertDefs |
org.json.JSONObject |
findAlertLogs(int sessionId,
java.lang.Integer gid,
long begin,
long end,
PageControl pc)
retrieve all escalation policy names as a Array of JSONObject. |
GalertDef |
findDefinition(int sessionId,
java.lang.Integer id)
|
PageList |
findDefinitions(int sessionId,
java.lang.Integer gid,
PageControl pc)
Find all the group alert definitions for a given appdef group. |
Escalatable |
findEscalatableAlert(int sessionId,
java.lang.Integer id)
|
ExecutionStrategyTypeInfo |
findStrategyType(int sessionId,
ExecutionStrategyType type)
|
GtriggerTypeInfo |
findTriggerType(int sessionId,
GtriggerType type)
|
java.lang.String |
getLastFix(int sessionID,
GalertDef def)
Get the last fix if available |
void |
markDefsDeleted(int sessionId,
GalertDef def)
|
void |
markDefsDeleted(int sessionId,
java.lang.Integer[] defIds)
|
ExecutionStrategyTypeInfo |
registerExecutionStrategy(int sessionId,
ExecutionStrategyType stratType)
|
GtriggerTypeInfo |
registerTriggerType(int sessionId,
GtriggerType type)
|
void |
setSessionContext(javax.ejb.SessionContext ctx)
|
void |
update(int sessionId,
GalertDef def,
Escalation escalation)
|
void |
update(int sessionId,
GalertDef def,
java.lang.String name,
java.lang.String desc,
AlertSeverity severity,
java.lang.Boolean enabled)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GalertBossEJBImpl()
Method Detail |
---|
public ExecutionStrategyTypeInfo registerExecutionStrategy(int sessionId, ExecutionStrategyType stratType) throws PermissionException, SessionException
PermissionException
SessionException
public ExecutionStrategyTypeInfo findStrategyType(int sessionId, ExecutionStrategyType type) throws PermissionException, SessionException
PermissionException
SessionException
public GtriggerTypeInfo findTriggerType(int sessionId, GtriggerType type) throws SessionException
SessionException
public GtriggerTypeInfo registerTriggerType(int sessionId, GtriggerType type) throws SessionException
SessionException
public ExecutionStrategyInfo addPartition(int sessionId, GalertDef def, GalertDefPartition partition, ExecutionStrategyTypeInfo stratType, ConfigResponse stratConfig) throws SessionException
SessionException
public GalertDef createAlertDef(int sessionId, java.lang.String name, java.lang.String description, AlertSeverity severity, boolean enabled, ResourceGroup group) throws SessionException
SessionException
public void configureTriggers(int sessionId, GalertDef def, GalertDefPartition partition, java.util.List triggerInfos, java.util.List configs) throws SessionException
SessionException
public PageList findDefinitions(int sessionId, java.lang.Integer gid, PageControl pc) throws SessionException, PermissionException
AlertDefinitionBean
s
PermissionException
SessionException
public void markDefsDeleted(int sessionId, GalertDef def) throws SessionException
SessionException
public void markDefsDeleted(int sessionId, java.lang.Integer[] defIds) throws SessionException
SessionException
public GalertDef findDefinition(int sessionId, java.lang.Integer id) throws SessionException
SessionException
public Escalatable findEscalatableAlert(int sessionId, java.lang.Integer id) throws SessionException, PermissionException
SessionException
PermissionException
public void update(int sessionId, GalertDef def, java.lang.String name, java.lang.String desc, AlertSeverity severity, java.lang.Boolean enabled) throws SessionException
SessionException
public void update(int sessionId, GalertDef def, Escalation escalation) throws SessionException
SessionException
public void enable(int sessionId, GalertDef[] defs, boolean enable) throws SessionException
SessionException
- if user session cannot be authenticatedpublic int countAlertLogs(int sessionId, java.lang.Integer gid, long begin, long end) throws SessionTimeoutException, SessionNotFoundException, PermissionException
SessionTimeoutException
SessionNotFoundException
PermissionException
public org.json.JSONObject findAlertLogs(int sessionId, java.lang.Integer gid, long begin, long end, PageControl pc) throws org.json.JSONException, SessionTimeoutException, SessionNotFoundException, PermissionException
org.json.JSONException
SessionTimeoutException
SessionNotFoundException
PermissionException
public java.lang.String getLastFix(int sessionID, GalertDef def) throws SessionNotFoundException, SessionTimeoutException
SessionNotFoundException
SessionTimeoutException
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
|
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 |