|
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.escalation.server.session.EscalationManagerEJBImpl
public class EscalationManagerEJBImpl
Constructor Summary | |
---|---|
EscalationManagerEJBImpl()
|
Method Summary | |
---|---|
boolean |
acknowledgeAlert(AuthzSubject subject,
EscalationAlertType type,
java.lang.Integer alertId,
java.lang.String moreInfo,
long pause)
Acknowledge an alert, potentially sending out notifications. |
void |
addAction(Escalation e,
ActionConfigInterface cfg,
long waitTime)
Add an action to the end of an escalation chain. |
Escalation |
createEscalation(java.lang.String name,
java.lang.String description,
boolean pauseAllowed,
long maxWaitTime,
boolean notifyAll,
boolean repeat)
Create a new escalation chain |
void |
deleteAllEscalationStates(java.lang.Integer[] stateIds)
This method is only for internal use by the EscalationRuntime . |
void |
deleteEscalation(AuthzSubject subject,
Escalation e)
Delete an escalation chain. |
void |
ejbActivate()
|
void |
ejbCreate()
|
void |
ejbPassivate()
|
void |
ejbRemove()
|
void |
endEscalation(PerformsEscalations def)
End an escalation. |
void |
executeState(java.lang.Integer stateId)
This method is only for internal use by the EscalationRuntime . |
java.util.Collection |
findAll(AuthzSubject subject)
|
Escalation |
findByDefId(EscalationAlertType type,
java.lang.Integer defId)
Find an escalation based on the type and ID of the definition. |
Escalation |
findById(AuthzSubject subject,
java.lang.Integer id)
|
Escalation |
findById(java.lang.Integer id)
|
Escalation |
findByName(AuthzSubject subject,
java.lang.String name)
|
Escalation |
findByName(java.lang.String name)
|
EscalationState |
findEscalationState(PerformsEscalations def)
|
void |
fixAlert(AuthzSubject subject,
EscalationAlertType type,
java.lang.Integer alertId,
java.lang.String moreInfo)
Fix an alert, potentially sending out notifications. |
void |
fixAlert(AuthzSubject subject,
EscalationAlertType type,
java.lang.Integer alertId,
java.lang.String moreInfo,
boolean suppressNotification)
Fix an alert, potentially sending out notifications. |
boolean |
fixAlert(AuthzSubject subject,
PerformsEscalations def,
java.lang.String moreInfo)
Fix an alert for a an escalation if there is one currently running. |
java.lang.Number |
getActiveEscalationCount()
Get the # of active escalations within HQ inventory |
java.util.List |
getActiveEscalations(int maxEscalations)
|
Escalatable |
getEscalatable(EscalationState s)
|
java.lang.Number |
getEscalationCount()
Get the # of escalations within HQ inventory |
java.lang.String |
getLastFix(PerformsEscalations def)
|
static org.hyperic.hq.escalation.shared.EscalationManagerLocal |
getOne()
|
void |
handleSubjectRemoval(AuthzSubject subject)
Called when subject is removed and therefore have to null out the acknowledgedBy field |
boolean |
isAlertAcknowledgeable(java.lang.Integer alertId,
PerformsEscalations def)
See if an alert is acknowledgeable |
void |
removeAction(Escalation e,
java.lang.Integer actId)
Remove an action from an escalation chain. |
void |
setEscalation(EscalationAlertType type,
java.lang.Integer defId,
Escalation escalation)
Set the escalation for a given alert definition and type |
void |
setSessionContext(javax.ejb.SessionContext ctx)
|
boolean |
startEscalation(PerformsEscalations def,
EscalatableCreator creator)
Start an escalation. |
void |
startup()
|
void |
updateEscalation(AuthzSubject subject,
Escalation esc,
java.lang.String name,
java.lang.String description,
boolean pauseAllowed,
long maxWaitTime,
boolean notifyAll,
boolean repeat)
Update an escalation chain |
void |
updateEscalationOrder(Escalation esc,
java.util.List actions)
Re-order the actions for an escalation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EscalationManagerEJBImpl()
Method Detail |
---|
public Escalation createEscalation(java.lang.String name, java.lang.String description, boolean pauseAllowed, long maxWaitTime, boolean notifyAll, boolean repeat) throws DuplicateObjectException
DuplicateObjectException
for information on fields
public EscalationState findEscalationState(PerformsEscalations def)
public void updateEscalation(AuthzSubject subject, Escalation esc, java.lang.String name, java.lang.String description, boolean pauseAllowed, long maxWaitTime, boolean notifyAll, boolean repeat) throws DuplicateObjectException, PermissionException
DuplicateObjectException
PermissionException
for information on fields
public void addAction(Escalation e, ActionConfigInterface cfg, long waitTime)
public void removeAction(Escalation e, java.lang.Integer actId)
public void deleteEscalation(AuthzSubject subject, Escalation e) throws PermissionException, ApplicationException
PermissionException
ApplicationException
public Escalation findById(java.lang.Integer id)
public Escalation findById(AuthzSubject subject, java.lang.Integer id) throws PermissionException
PermissionException
public java.util.Collection findAll(AuthzSubject subject) throws PermissionException
PermissionException
public Escalation findByName(AuthzSubject subject, java.lang.String name) throws PermissionException
PermissionException
public Escalation findByName(java.lang.String name)
public boolean startEscalation(PerformsEscalations def, EscalatableCreator creator)
def
- The entity performing escalations.creator
- Object which will create an Escalatable
object
if invoking this method actually starts an escalation.
true
if the escalation is started;
false
if not because either there is
no escalation assigned to the entity or the escalation
is already in progress.public Escalatable getEscalatable(EscalationState s)
public void endEscalation(PerformsEscalations def)
public void deleteAllEscalationStates(java.lang.Integer[] stateIds)
EscalationRuntime
.
This method deletes in batch the given escalation states.
stateIds
- The Ids for the escalation states to delete.public void executeState(java.lang.Integer stateId)
EscalationRuntime
.
It ensures that we have a session setup prior to executing any actions.
This method executes the action pointed at by the state, determines
the next stage of the escalation and (optionally) ends it, thus
unscheduling any further executions.
public Escalation findByDefId(EscalationAlertType type, java.lang.Integer defId)
public void setEscalation(EscalationAlertType type, java.lang.Integer defId, Escalation escalation)
public boolean acknowledgeAlert(AuthzSubject subject, EscalationAlertType type, java.lang.Integer alertId, java.lang.String moreInfo, long pause) throws PermissionException
subject
- Person who acknowledged the alertpause
- TODO
PermissionException
public boolean isAlertAcknowledgeable(java.lang.Integer alertId, PerformsEscalations def)
public boolean fixAlert(AuthzSubject subject, PerformsEscalations def, java.lang.String moreInfo) throws PermissionException
PermissionException
public void fixAlert(AuthzSubject subject, EscalationAlertType type, java.lang.Integer alertId, java.lang.String moreInfo) throws PermissionException
subject
- Person who fixed the alert
PermissionException
public void fixAlert(AuthzSubject subject, EscalationAlertType type, java.lang.Integer alertId, java.lang.String moreInfo, boolean suppressNotification) throws PermissionException
subject
- Person who fixed the alert
PermissionException
public void updateEscalationOrder(Escalation esc, java.util.List actions)
actions
- a list of EscalationAction
s (already contained
within the escalation) specifying the new order.public java.lang.Number getActiveEscalationCount()
public java.lang.Number getEscalationCount()
public java.util.List getActiveEscalations(int maxEscalations)
public java.lang.String getLastFix(PerformsEscalations def)
public void handleSubjectRemoval(AuthzSubject subject)
public void startup()
public static org.hyperic.hq.escalation.shared.EscalationManagerLocal 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 |