|
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.galerts.server.session.GalertManagerEJBImpl
public class GalertManagerEJBImpl
Constructor Summary | |
---|---|
GalertManagerEJBImpl()
|
Method Summary | |
---|---|
ExecutionStrategyInfo |
addPartition(GalertDef def,
GalertDefPartition partition,
ExecutionStrategyTypeInfo stratType,
ConfigResponse stratConfig)
|
void |
configureTriggers(GalertDef def,
GalertDefPartition partition,
java.util.List triggerInfos,
java.util.List configs)
Configure triggers for a given partition. |
void |
createActionLog(GalertLog alert,
java.lang.String detail,
Action action,
AuthzSubject subject)
|
GalertDef |
createAlertDef(AuthzSubject subject,
java.lang.String name,
java.lang.String description,
AlertSeverity severity,
boolean enabled,
ResourceGroup group)
|
GalertLog |
createAlertLog(GalertDef def,
ExecutionReason reason)
Save the alert log and associated auxillary log information to the DB. |
void |
deleteAlertLog(GalertLog log)
|
void |
deleteAlertLogs(ResourceGroup group)
|
void |
ejbActivate()
|
void |
ejbCreate()
|
void |
ejbPassivate()
|
void |
ejbRemove()
|
void |
enable(GalertDef def,
boolean enable)
Enable/disable an alert def |
int[] |
fillAlertCount(AuthzSubject subj,
AppdefEntityID[] ids,
int[] counts)
Get the number of alerts for the given array of AppdefEntityID's |
java.util.List |
findAlertDefs(AuthzSubject subj,
AlertSeverity minSeverity,
java.lang.Boolean enabled,
PageInfo pInfo)
Find all group alert definitions. |
PageList |
findAlertDefs(ResourceGroup g,
PageControl pc)
Find all alert definitions for the specified group |
GalertLog |
findAlertLog(java.lang.Integer id)
|
java.util.List |
findAlertLogs(GalertDef def)
|
java.util.List |
findAlertLogs(ResourceGroup group)
|
PageList |
findAlertLogsByTimeWindow(ResourceGroup group,
long begin,
long end,
PageControl pc)
|
java.util.List |
findAlerts(AuthzSubject subj,
AlertSeverity severity,
long timeRange,
long endTime,
boolean inEsc,
boolean notFixed,
java.lang.Integer groupId,
java.lang.Integer galertDefId,
PageInfo pInfo)
|
java.util.List |
findAlerts(AuthzSubject subj,
AlertSeverity severity,
long timeRange,
long endTime,
boolean inEsc,
boolean notFixed,
java.lang.Integer groupId,
PageInfo pInfo)
|
java.util.List |
findAlerts(AuthzSubject subj,
int count,
int priority,
long timeRange,
long endTime,
java.util.List includes)
Find group alerts based on a set of criteria |
java.util.Collection |
findAllStrategyTypes()
|
GalertAuxLog |
findAuxLogById(java.lang.Integer id)
|
GalertDef |
findById(java.lang.Integer id)
|
Escalatable |
findEscalatableAlert(java.lang.Integer id)
|
java.util.List |
findEscalatables(AuthzSubject subj,
int count,
int priority,
long timeRange,
long endTime,
java.util.List includes)
|
GalertLog |
findLastFixedByDef(GalertDef def)
|
ExecutionStrategyTypeInfo |
findStrategyType(ExecutionStrategyType t)
|
ExecutionStrategyTypeInfo |
findStrategyType(java.lang.Integer id)
|
java.util.List |
findUnfixedAlertLogsByTimeWindow(ResourceGroup group,
long begin,
long end)
|
void |
fixAlert(GalertLog alert)
Simply sets the 'fixed' flag on an alert |
GalertLog |
getAlertLog(java.lang.Integer id)
|
static org.hyperic.hq.galerts.shared.GalertManagerLocal |
getOne()
|
java.util.List |
getTriggersById(java.lang.Integer id,
GalertDefPartition partition)
Retrieve the Gtriggers for a partition in the given galert def. |
java.util.Collection |
getUsing(Escalation e)
Returns a list of GalertDef s using the passed escalation. |
void |
markDefDeleted(GalertDef def)
Mark an alert definition as deleted. |
void |
nukeAlertDef(GalertDef def)
Delete an alert definition along with all logs which are tied to it. |
void |
processGroupDeletion(ResourceGroup g)
Remove all the galert defs associated with this resource group. |
ExecutionStrategyTypeInfo |
registerExecutionStrategy(ExecutionStrategyType stratType)
Register an execution strategy. |
void |
reloadAlertDef(GalertDef def)
Reload an alert definition. |
void |
setSessionContext(javax.ejb.SessionContext ctx)
|
void |
startEscalation(GalertDef def,
ExecutionReason reason)
Start an escalation for a group alert definition. |
void |
startup()
|
void |
unregisterExecutionStrategy(ExecutionStrategyType sType)
Unregister an execution strategy. |
void |
update(GalertDef def,
Escalation escalation)
Update the escalation of an alert def |
void |
update(GalertDef def,
java.lang.String name,
java.lang.String desc,
AlertSeverity severity,
java.lang.Boolean enabled)
Update basic properties of an alert definition If any of the passed params are non-null, they will be updated with the new value |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GalertManagerEJBImpl()
Method Detail |
---|
public void update(GalertDef def, java.lang.String name, java.lang.String desc, AlertSeverity severity, java.lang.Boolean enabled)
public void update(GalertDef def, Escalation escalation)
public void enable(GalertDef def, boolean enable)
public PageList findAlertDefs(ResourceGroup g, PageControl pc)
public java.util.List findAlertDefs(AuthzSubject subj, AlertSeverity minSeverity, java.lang.Boolean enabled, PageInfo pInfo)
minSeverity
- Minimum severity for returned defsenabled
- If non-null specifies the nature of the 'enabled'
flag for the results.pInfo
- Paging information. Must contain a sort field from
GalertDefSortField
public java.util.Collection findAllStrategyTypes()
public ExecutionStrategyTypeInfo findStrategyType(java.lang.Integer id)
public ExecutionStrategyTypeInfo findStrategyType(ExecutionStrategyType t)
public GalertDef findById(java.lang.Integer id)
public GalertAuxLog findAuxLogById(java.lang.Integer id)
public java.util.List getTriggersById(java.lang.Integer id, GalertDefPartition partition)
id
- The galert def id.partition
- The partition.
public GalertLog createAlertLog(GalertDef def, ExecutionReason reason) throws ResourceDeletedException
ResourceDeletedException
public void createActionLog(GalertLog alert, java.lang.String detail, Action action, AuthzSubject subject)
public java.util.List findAlertLogs(GalertDef def)
public GalertLog findLastFixedByDef(GalertDef def)
public void fixAlert(GalertLog alert)
public Escalatable findEscalatableAlert(java.lang.Integer id)
public GalertLog getAlertLog(java.lang.Integer id)
public GalertLog findAlertLog(java.lang.Integer id)
public java.util.List findAlertLogs(ResourceGroup group)
public PageList findAlertLogsByTimeWindow(ResourceGroup group, long begin, long end, PageControl pc)
public java.util.List findUnfixedAlertLogsByTimeWindow(ResourceGroup group, long begin, long end)
public java.util.List findEscalatables(AuthzSubject subj, int count, int priority, long timeRange, long endTime, java.util.List includes) throws PermissionException
Escalatable
s
PermissionException
findAlerts
public java.util.List findAlerts(AuthzSubject subj, int count, int priority, long timeRange, long endTime, java.util.List includes) throws PermissionException
subj
- Subject doing the findingcount
- Max # of alerts to returnpriority
- A value from EventConstants
timeRange
- the amount of milliseconds prior to current that the
alerts will be contained in. e.g. the beginning of the
time range will be (current - timeRante)includes
- A list of entity IDs to include in the result. If null
then ignore and return all.
GalertLog
s
PermissionException
public java.util.List findAlerts(AuthzSubject subj, AlertSeverity severity, long timeRange, long endTime, boolean inEsc, boolean notFixed, java.lang.Integer groupId, PageInfo pInfo)
public java.util.List findAlerts(AuthzSubject subj, AlertSeverity severity, long timeRange, long endTime, boolean inEsc, boolean notFixed, java.lang.Integer groupId, java.lang.Integer galertDefId, PageInfo pInfo)
public int[] fillAlertCount(AuthzSubject subj, AppdefEntityID[] ids, int[] counts) throws PermissionException, javax.ejb.FinderException
PermissionException
javax.ejb.FinderException
public void deleteAlertLog(GalertLog log)
public void deleteAlertLogs(ResourceGroup group)
public ExecutionStrategyTypeInfo registerExecutionStrategy(ExecutionStrategyType stratType)
public void unregisterExecutionStrategy(ExecutionStrategyType sType)
public void configureTriggers(GalertDef def, GalertDefPartition partition, java.util.List triggerInfos, java.util.List configs)
triggerInfos
- A list of GtriggerTypeInfo
sconfigs
- A list of ConfigResponse
s, one for each
trigger infopublic ExecutionStrategyInfo addPartition(GalertDef def, GalertDefPartition partition, ExecutionStrategyTypeInfo stratType, ConfigResponse stratConfig)
public GalertDef createAlertDef(AuthzSubject subject, java.lang.String name, java.lang.String description, AlertSeverity severity, boolean enabled, ResourceGroup group)
public void reloadAlertDef(GalertDef def)
public void markDefDeleted(GalertDef def)
public void nukeAlertDef(GalertDef def)
public java.util.Collection getUsing(Escalation e)
GalertDef
s using the passed escalation.
public void startEscalation(GalertDef def, ExecutionReason reason)
public void processGroupDeletion(ResourceGroup g)
public void startup()
public static org.hyperic.hq.galerts.shared.GalertManagerLocal 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
|
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 |