|
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.apache.struts.action.ActionForm
org.apache.struts.validator.ValidatorForm
org.hyperic.hq.ui.action.BaseValidatorForm
org.hyperic.hq.ui.action.CalendarForm
org.hyperic.hq.ui.action.ScheduleForm
org.hyperic.hq.ui.action.resource.ResourceForm
org.hyperic.hq.ui.action.resource.common.monitor.alerts.config.DefinitionForm
public class DefinitionForm
Form for editing / creating new alert definitions.
Field Summary |
---|
Fields inherited from class org.hyperic.hq.ui.action.ScheduleForm |
---|
END_NEVER, END_ON_DATE, EVERY_DAY, EVERY_WEEKDAY, ON_DAY, ON_EACH, RECUR_DAILY, RECUR_MONTHLY, RECUR_NEVER, RECUR_WEEKLY, START_NOW, START_ON_DATE |
Fields inherited from class org.hyperic.hq.ui.action.CalendarForm |
---|
AM, PM |
Fields inherited from class org.apache.struts.validator.ValidatorForm |
---|
page, validatorResults |
Fields inherited from class org.apache.struts.action.ActionForm |
---|
multipartRequestHandler, servlet |
Constructor Summary | |
---|---|
DefinitionForm()
|
Method Summary | |
---|---|
void |
deleteCondition(int deletedCondition)
|
void |
exportConditionsEnablement(AlertDefinitionValue adv,
javax.servlet.http.HttpServletRequest request,
int sessionId,
org.hyperic.hq.bizapp.shared.MeasurementBoss mb,
boolean typeAlert)
Export the conditions and enablement properties from this form to the AlertDefinitionValue. |
java.lang.Integer |
getAd()
|
java.lang.String[] |
getComparators()
|
ConditionBean |
getCondition(int index)
|
ConditionBean[] |
getConditions()
|
java.lang.String[] |
getControlActionStatuses()
|
java.util.Collection |
getCustomProperties()
|
java.lang.String |
getDescription()
Returns the description. |
java.lang.Integer |
getHowLong()
|
java.lang.Integer |
getHowLongNT()
|
java.lang.Integer |
getHowLongTP()
|
int |
getHowLongUnits()
|
int |
getHowLongUnitsNT()
Get units for time period. |
int |
getHowLongUnitsTP()
Get units for time period. |
java.lang.Integer |
getMeetTimeTP()
|
int |
getMeetTimeUnitsTP()
Get units for time period. |
int |
getMetricId()
|
java.lang.String |
getMetricName()
|
java.util.List |
getMetrics()
|
java.lang.String |
getName()
Returns the name. |
int |
getNumConditions()
|
java.lang.Integer |
getNumTimesNT()
|
int[] |
getPriorities()
|
int |
getPriority()
|
int[] |
getTimeUnits()
|
int |
getWhenEnabled()
Get when to enable the actions. |
void |
importConditionsEnablement(AlertDefinitionValue adv,
int sessionId,
org.hyperic.hq.bizapp.shared.MeasurementBoss mb)
Import the conditions and enablement properties from the AlertDefinitionValue to this form. |
void |
importProperties(AlertDefinitionValue adv)
Import basic properties from The AlertDefinitionValue to this form. |
boolean |
isActive()
|
boolean |
isDisableForRecovery()
|
boolean |
isEnabled()
|
void |
reset(org.apache.struts.action.ActionMapping mapping,
javax.servlet.http.HttpServletRequest request)
|
void |
resetConditions()
|
void |
setActive(boolean active)
|
void |
setAd(java.lang.Integer id)
|
void |
setCustomProperties(java.util.Collection customProperties)
|
protected void |
setDefaults()
|
void |
setDescription(java.lang.String description)
Sets the description. |
void |
setDisableForRecovery(boolean disableForRecovery)
|
void |
setEnabled(boolean enabled)
|
void |
setHowLongNT(java.lang.Integer howLongNT)
|
void |
setHowLongTP(java.lang.Integer howLongTP)
|
void |
setHowLongUnitsNT(int howLongUnitsNT)
Set units for time period. |
void |
setHowLongUnitsTP(int howLongUnitsTP)
Set units for time period. |
void |
setMeetTimeTP(java.lang.Integer meetTimeTP)
|
void |
setMeetTimeUnitsTP(int meetTimeUnitsTP)
Set units for time period. |
void |
setMetricId(int metricId)
|
void |
setMetricName(java.lang.String metricName)
|
void |
setMetrics(java.util.List metrics)
|
void |
setName(java.lang.String name)
sets the name. |
void |
setNumConditions(int numConditions)
|
void |
setNumTimesNT(java.lang.Integer numTimesNT)
|
void |
setPriority(int priority)
|
void |
setWhenEnabled(int whenEnabled)
Set when to enable the actions. |
org.apache.struts.action.ActionErrors |
validate(org.apache.struts.action.ActionMapping mapping,
javax.servlet.http.HttpServletRequest request)
Only validate if 1) the form's ok or okassign button was clicked and 2) the mapping specifies an input form to return to. |
Methods inherited from class org.hyperic.hq.ui.action.resource.ResourceForm |
---|
getAetid, getEid, getLocation, getResourceType, getResourceTypes, getRid, getType, isCanModify, loadResourceValue, setAetid, setCanModify, setEid, setLocation, setResourceType, setResourceTypes, setRid, setType, toString, updateResourceValue |
Methods inherited from class org.hyperic.hq.ui.action.CalendarForm |
---|
calcHour, getEndAmPm, getEndDate, getEndDay, getEndHour, getEndMin, getEndMonth, getEndYear, getInitStartTime, getStartAmPm, getStartDate, getStartDay, getStartHour, getStartMin, getStartMonth, getStartYear, getWantEndDate, getYearOptions, populateEndDate, populateStartDate, setEndAmPm, setEndDay, setEndHour, setEndMin, setEndMonth, setEndYear, setStartAmPm, setStartDay, setStartHour, setStartMin, setStartMonth, setStartYear, setWantEndDate, shouldValidateDateRange, validateDateRange |
Methods inherited from class org.hyperic.hq.ui.action.BaseValidatorForm |
---|
getAdd, getCancel, getCreate, getDelete, getEnable, getOk, getOkassign, getPn, getPs, getRemove, getReset, getUserset, isAddClicked, isCancelClicked, isCreateClicked, isDeleteClicked, isEnableClicked, isOkAssignClicked, isOkClicked, isRemoveClicked, isResetClicked, isUsersetClicked, setAdd, setCancel, setCreate, setDelete, setEnable, setOk, setOkassign, setPn, setPs, setRemove, setReset, setUserset, shouldValidate |
Methods inherited from class org.apache.struts.validator.ValidatorForm |
---|
getPage, getResultValueMap, getValidationKey, getValidatorResults, setPage, setValidatorResults |
Methods inherited from class org.apache.struts.action.ActionForm |
---|
getMultipartRequestHandler, getServlet, getServletWrapper, reset, setMultipartRequestHandler, setServlet, validate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DefinitionForm()
Method Detail |
---|
public java.lang.String[] getControlActionStatuses()
public java.lang.Integer getAd()
public void setAd(java.lang.Integer id)
public java.lang.String getName()
ResourceForm
getName
in class ResourceForm
public void setName(java.lang.String name)
ResourceForm
setName
in class ResourceForm
public java.lang.String getDescription()
ResourceForm
getDescription
in class ResourceForm
public void setDescription(java.lang.String description)
ResourceForm
setDescription
in class ResourceForm
description
- The description to setpublic int getPriority()
public void setPriority(int priority)
public boolean isActive()
public void setActive(boolean active)
public boolean isEnabled()
public void setEnabled(boolean enabled)
public ConditionBean[] getConditions()
public ConditionBean getCondition(int index)
public int getMetricId()
public void setMetricId(int metricId)
metricId
- The metricId to set.public java.lang.String getMetricName()
public void setMetricName(java.lang.String metricName)
public int getNumConditions()
public void setNumConditions(int numConditions)
public int getWhenEnabled()
public void setWhenEnabled(int whenEnabled)
public java.lang.Integer getMeetTimeTP()
public void setMeetTimeTP(java.lang.Integer meetTimeTP)
public int getMeetTimeUnitsTP()
public void setMeetTimeUnitsTP(int meetTimeUnitsTP)
public java.lang.Integer getHowLongTP()
public void setHowLongTP(java.lang.Integer howLongTP)
public int getHowLongUnitsTP()
public void setHowLongUnitsTP(int howLongUnitsTP)
public java.lang.Integer getNumTimesNT()
public void setNumTimesNT(java.lang.Integer numTimesNT)
public java.lang.Integer getHowLongNT()
public void setHowLongNT(java.lang.Integer howLongNT)
public int getHowLongUnitsNT()
public void setHowLongUnitsNT(int howLongUnitsNT)
public java.lang.Integer getHowLong()
public int getHowLongUnits()
public void deleteCondition(int deletedCondition)
public java.util.List getMetrics()
public void setMetrics(java.util.List metrics)
public java.util.Collection getCustomProperties()
public void setDisableForRecovery(boolean disableForRecovery)
disableForRecovery
- The disableForRecovery to set.public boolean isDisableForRecovery()
public void setCustomProperties(java.util.Collection customProperties)
public int[] getPriorities()
public int[] getTimeUnits()
public java.lang.String[] getComparators()
public void reset(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request)
reset
in class ResourceForm
public void importProperties(AlertDefinitionValue adv)
public void importConditionsEnablement(AlertDefinitionValue adv, int sessionId, org.hyperic.hq.bizapp.shared.MeasurementBoss mb) throws MeasurementNotFoundException, SessionNotFoundException, SessionTimeoutException, TemplateNotFoundException, java.rmi.RemoteException
MeasurementNotFoundException
SessionNotFoundException
SessionTimeoutException
TemplateNotFoundException
java.rmi.RemoteException
public void exportConditionsEnablement(AlertDefinitionValue adv, javax.servlet.http.HttpServletRequest request, int sessionId, org.hyperic.hq.bizapp.shared.MeasurementBoss mb, boolean typeAlert) throws SessionTimeoutException, SessionNotFoundException, MeasurementNotFoundException, TemplateNotFoundException, java.rmi.RemoteException
SessionTimeoutException
SessionNotFoundException
MeasurementNotFoundException
TemplateNotFoundException
java.rmi.RemoteException
public void resetConditions()
public org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request)
BaseValidatorForm
validate
in class ResourceForm
protected void setDefaults()
|
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 |