org.rhq.enterprise.gui.legacy.action.resource.common.monitor.config
Class MonitoringConfigForm

java.lang.Object
  extended by org.apache.struts.action.ActionForm
      extended by org.apache.struts.validator.ValidatorForm
          extended by org.rhq.enterprise.gui.legacy.action.BaseValidatorForm
              extended by org.rhq.enterprise.gui.legacy.action.CalendarForm
                  extended by org.rhq.enterprise.gui.legacy.action.ScheduleForm
                      extended by org.rhq.enterprise.gui.legacy.action.resource.ResourceForm
                          extended by org.rhq.enterprise.gui.legacy.action.resource.common.monitor.config.MonitoringConfigForm
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
GroupMonitoringConfigForm

public class MonitoringConfigForm
extends ResourceForm

Form for setting the collection interval for metrics in resource/monitoring/configuration areas of the application, and for adding metrics to a resource.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.rhq.enterprise.gui.legacy.action.resource.ResourceForm
ResourceForm.FormContext
 
Field Summary
 
Fields inherited from class org.rhq.enterprise.gui.legacy.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.rhq.enterprise.gui.legacy.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
MonitoringConfigForm()
          Creates new MonitoringConfigForm
 
Method Summary
 Integer[] getAvailableMids()
          Non-Indexed getter for property availableMids.
 Integer getAvailableMids(int index)
          Indexed getter for property availableMids.
 Long getCollectionInterval()
           
 long getCollectionUnit()
          Getter for property collectionUnit.
 String getFilterBy()
          Getter for property filterBy.
 List getFilterOptions()
          Getter for property filterOptions.
 long getIntervalTime()
          Derived property based on collectionInterval and collectionUnit, return the time as a long
 int[] getMids()
          Getter for property mids.
 org.apache.struts.util.ImageButtonBean getNullBtn()
           
 Integer[] getPendingMids()
          Getter for property pendingMids.
 Integer getPsa()
          Getter for property psa.
 Integer getPsp()
          Getter for property psp.
 boolean getSchedulesShouldChange()
           
 void reset(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request)
           
 void setAvailableMids(Integer[] availableMids)
          Non-Indexed setter for property availableMids.
 void setCollectionInterval(Long collectionInterval)
          Setter for property collectionInterval.
 void setCollectionUnit(long collectionUnit)
          Setter for property collectionUnit.
 void setFilterBy(String filterBy)
          Setter for property filterBy.
 void setFilterOptions(List filterOptions)
          Setter for property filterOptions.
 void setMids(int[] mids)
          Setter for property mids.
 void setNullBtn(org.apache.struts.util.ImageButtonBean bean)
           
 void setPendingMids(Integer[] pendingMids)
          Setter for property pendingMids.
 void setPsa(Integer psa)
          Setter for property psa.
 void setPsp(Integer psp)
          Setter for property psp.
 void setSchedulesShouldChange(boolean schedulesShouldChange)
           
 
Methods inherited from class org.rhq.enterprise.gui.legacy.action.resource.ResourceForm
getContext, getDescription, getGroupId, getId, getLocation, getName, getResourceType, getResourceTypes, getRid, getType, loadResourceValue, setDescription, setGroupId, setId, setLocation, setName, setResourceType, setResourceTypes, setRid, setType, toString, updateResourceValue, validate
 
Methods inherited from class org.rhq.enterprise.gui.legacy.action.ScheduleForm
getControlActions, getEachDay, getEndTime, getIsNow, getMonthlyRecurrenceDay, getNumControlActions, getNumDays, getNumMonths, getNumWeeks, getRecurInterval, getRecurrenceDay, getRecurrenceFrequencyDaily, getRecurrenceFrequencyMonthly, getRecurrenceWeek, getStartTime, setControlActions, setEachDay, setEndTime, setMonthlyRecurrenceDay, setNumDays, setNumMonths, setNumWeeks, setRecurInterval, setRecurrenceDay, setRecurrenceFrequencyDaily, setRecurrenceFrequencyMonthly, setRecurrenceWeek, setStartTime
 
Methods inherited from class org.rhq.enterprise.gui.legacy.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.rhq.enterprise.gui.legacy.action.BaseValidatorForm
getAdd, getCancel, getCreate, getDelete, getEnable, getInstall, getManualUninstall, getOk, getOkassign, getPn, getPs, getRemove, getReset, getUninventory, getUserset, isAddClicked, isCancelClicked, isCreateClicked, isDeleteClicked, isEnableClicked, isInstallClicked, isManualUninstallClicked, isOkAssignClicked, isOkClicked, isRemoveClicked, isResetClicked, isUsersetClicked, setAdd, setCancel, setCreate, setDelete, setEnable, setInstall, setOk, setOkassign, setPn, setPs, setRemove, setReset, setUninventory, 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

MonitoringConfigForm

public MonitoringConfigForm()
Creates new MonitoringConfigForm

Method Detail

getIntervalTime

public long getIntervalTime()
Derived property based on collectionInterval and collectionUnit, return the time as a long

Returns:
the collection interval time, in milliseconds

reset

public void reset(org.apache.struts.action.ActionMapping mapping,
                  javax.servlet.http.HttpServletRequest request)
Overrides:
reset in class ResourceForm

getCollectionInterval

public Long getCollectionInterval()

getMids

public int[] getMids()
Getter for property mids.

Returns:
Value of property mids.

setMids

public void setMids(int[] mids)
Setter for property mids.

Parameters:
mids - New value of property mids.

setCollectionInterval

public void setCollectionInterval(Long collectionInterval)
Setter for property collectionInterval.

Parameters:
collectionInterval - New value of property collectionInterval.

getCollectionUnit

public long getCollectionUnit()
Getter for property collectionUnit.

Returns:
Value of property collectionUnit.

setCollectionUnit

public void setCollectionUnit(long collectionUnit)
Setter for property collectionUnit.

Parameters:
collectionUnit - New value of property collectionUnit.

getAvailableMids

public Integer getAvailableMids(int index)
Indexed getter for property availableMids.

Parameters:
index - Index of the property.
Returns:
Value of the property at index.

getAvailableMids

public Integer[] getAvailableMids()
Non-Indexed getter for property availableMids.

Returns:
Value of the property at index.

setAvailableMids

public void setAvailableMids(Integer[] availableMids)
Non-Indexed setter for property availableMids.

Parameters:
availableMids - New value of the property.

getPendingMids

public Integer[] getPendingMids()
Getter for property pendingMids.

Returns:
Value of property pendingMids.

setPendingMids

public void setPendingMids(Integer[] pendingMids)
Setter for property pendingMids.

Parameters:
pendingMids - New value of property pendingMids.

getFilterBy

public String getFilterBy()
Getter for property filterBy.

Returns:
Value of property filterBy.

setFilterBy

public void setFilterBy(String filterBy)
Setter for property filterBy.

Parameters:
filterBy - New value of property filterBy.

getPsp

public Integer getPsp()
Getter for property psp.

Returns:
Value of property psp.

setPsp

public void setPsp(Integer psp)
Setter for property psp.

Parameters:
psp - New value of property psp.

getPsa

public Integer getPsa()
Getter for property psa.

Returns:
Value of property psa.

setPsa

public void setPsa(Integer psa)
Setter for property psa.

Parameters:
psa - New value of property psa.

getFilterOptions

public List getFilterOptions()
Getter for property filterOptions.

Returns:
Value of property filterOptions.

setFilterOptions

public void setFilterOptions(List filterOptions)
Setter for property filterOptions.

Parameters:
filterOptions - New value of property filterOptions.

getNullBtn

public org.apache.struts.util.ImageButtonBean getNullBtn()
Returns:

setNullBtn

public void setNullBtn(org.apache.struts.util.ImageButtonBean bean)
Parameters:
bean -

getSchedulesShouldChange

public boolean getSchedulesShouldChange()
Returns:
the schedulesShouldChange

setSchedulesShouldChange

public void setSchedulesShouldChange(boolean schedulesShouldChange)
Parameters:
schedulesShouldChange - the schedulesShouldChange to set


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.