|
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.ui.action.resource.common.monitor.alerts.AlertDefUtil
public class AlertDefUtil
Utility class for dealing with rendering alert definition conditions.
Constructor Summary | |
---|---|
AlertDefUtil()
|
Method Summary | |
---|---|
static java.util.List |
getAlertConditionBeanList(int sessionID,
javax.servlet.http.HttpServletRequest request,
org.hyperic.hq.bizapp.shared.MeasurementBoss mb,
AlertConditionValue[] acvList,
boolean template)
Converts the list of alert conditions into a list of AlertConditionBean objects. |
static AlertDefinitionValue |
getAlertDefinition(javax.servlet.http.HttpServletRequest request,
int sessionID,
org.hyperic.hq.bizapp.shared.EventsBoss eb)
Retrieve the alert definition from either the request or from the bizapp as necessary. |
static java.util.List |
getControlActions(int sessionID,
AppdefEntityID adeId,
org.hyperic.hq.bizapp.shared.ControlBoss cb)
Returns a List of LabelValueBean objects whose labels and values are both set to the string of the control actions for the passed-in resource. |
static java.lang.Long[] |
getDurationAndUnits(java.lang.Long seconds)
Return the duration and units for the passed-in number of seconds. |
static long |
getSecondsConsideringUnits(long duration,
int units)
Converts the duration and units into a number of seconds. |
static ActionValue |
getSyslogActionValue(AlertDefinitionValue adv)
|
static void |
prepareSyslogActionForm(AlertDefinitionValue adv,
SyslogActionForm form)
|
static void |
setEnablementRequestAttributes(javax.servlet.http.HttpServletRequest request,
AlertDefinitionValue adv)
Sets the following request attributes based on what's contained in the AlertConditionValue. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AlertDefUtil()
Method Detail |
---|
public static long getSecondsConsideringUnits(long duration, int units)
duration
- durationunits
- one of
org.hyperic.hq.ui.Constants.ALERT_ACTION_ENABLE_UNITS_MINUTES,
org.hyperic.hq.ui.Constants.ALERT_ACTION_ENABLE_UNITS_HOURS,
org.hyperic.hq.ui.Constants.ALERT_ACTION_ENABLE_UNITS_DAYS,
org.hyperic.hq.ui.Constants.ALERT_ACTION_ENABLE_UNITS_WEEKS
public static java.lang.Long[] getDurationAndUnits(java.lang.Long seconds)
Return the duration and units for the passed-in number of
seconds. The first element of the returned array will be the
duration. The second element in the returned array will be one
of
org.hyperic.hq.ui.Constants.ALERT_ACTION_ENABLE_UNITS_SECONDS,
org.hyperic.hq.ui.Constants.ALERT_ACTION_ENABLE_UNITS_MINUTES,
org.hyperic.hq.ui.Constants.ALERT_ACTION_ENABLE_UNITS_HOURS,
org.hyperic.hq.ui.Constants.ALERT_ACTION_ENABLE_UNITS_DAYS,
org.hyperic.hq.ui.Constants.ALERT_ACTION_ENABLE_UNITS_WEEKS
.
seconds
- number of seconds (will be updated)
public static java.util.List getAlertConditionBeanList(int sessionID, javax.servlet.http.HttpServletRequest request, org.hyperic.hq.bizapp.shared.MeasurementBoss mb, AlertConditionValue[] acvList, boolean template)
acvList
- the list of alert conditions to convert
public static void setEnablementRequestAttributes(javax.servlet.http.HttpServletRequest request, AlertDefinitionValue adv)
request
- the http requestadv
- the conditionpublic static AlertDefinitionValue getAlertDefinition(javax.servlet.http.HttpServletRequest request, int sessionID, org.hyperic.hq.bizapp.shared.EventsBoss eb) throws SessionNotFoundException, SessionTimeoutException, javax.naming.NamingException, javax.ejb.CreateException, SystemException, javax.ejb.FinderException, java.rmi.RemoteException, PermissionException, ParameterNotFoundException
SessionNotFoundException
SessionTimeoutException
javax.naming.NamingException
javax.ejb.CreateException
SystemException
javax.ejb.FinderException
java.rmi.RemoteException
PermissionException
ParameterNotFoundException
public static ActionValue getSyslogActionValue(AlertDefinitionValue adv)
public static void prepareSyslogActionForm(AlertDefinitionValue adv, SyslogActionForm form) throws EncodingException
EncodingException
public static java.util.List getControlActions(int sessionID, AppdefEntityID adeId, org.hyperic.hq.bizapp.shared.ControlBoss cb) throws SessionNotFoundException, SessionTimeoutException, AppdefEntityNotFoundException, PluginNotFoundException, PermissionException, java.rmi.RemoteException, GroupNotCompatibleException
java.rmi.RemoteException
PermissionException
PluginNotFoundException
AppdefEntityNotFoundException
SessionTimeoutException
SessionNotFoundException
GroupNotCompatibleException
|
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 |