org.rhq.core.domain.measurement
Class MeasurementScheduleRequest

java.lang.Object
  extended by org.rhq.core.domain.measurement.MeasurementScheduleRequest
All Implemented Interfaces:
Serializable

public class MeasurementScheduleRequest
extends Object
implements Serializable

This class is a stripped down version of the MeasurementSchedule from the domain project. It is used to send between Agent and Server, so it does not need all fields.

See Also:
MeasurementSchedule, Serialized Form

Constructor Summary
MeasurementScheduleRequest(int scheduleId, String name, long interval, boolean enabled, DataType dataType)
           
MeasurementScheduleRequest(int scheduleId, String name, long interval, boolean enabled, DataType dataType, NumericType rawNumericType)
           
MeasurementScheduleRequest(MeasurementSchedule schedule)
           
MeasurementScheduleRequest(MeasurementScheduleRequest scheduleRequest)
           
 
Method Summary
 boolean equals(Object obj)
           
 DataType getDataType()
           
 long getInterval()
           
 String getName()
           
 NumericType getRawNumericType()
           
 int getScheduleId()
           
 int hashCode()
           
 boolean isEnabled()
           
 boolean isPerMinute()
           
 void setEnabled(boolean enabled)
           
 void setInterval(long interval)
           
 void setName(String name)
           
 void setScheduleId(int scheduleId)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MeasurementScheduleRequest

public MeasurementScheduleRequest(MeasurementSchedule schedule)

MeasurementScheduleRequest

public MeasurementScheduleRequest(int scheduleId,
                                  String name,
                                  long interval,
                                  boolean enabled,
                                  DataType dataType)

MeasurementScheduleRequest

public MeasurementScheduleRequest(int scheduleId,
                                  String name,
                                  long interval,
                                  boolean enabled,
                                  DataType dataType,
                                  NumericType rawNumericType)

MeasurementScheduleRequest

public MeasurementScheduleRequest(MeasurementScheduleRequest scheduleRequest)
Method Detail

getName

public String getName()

setName

public void setName(String name)

getScheduleId

public int getScheduleId()

setScheduleId

public void setScheduleId(int scheduleId)

getInterval

public long getInterval()

setInterval

public void setInterval(long interval)

isEnabled

public boolean isEnabled()

setEnabled

public void setEnabled(boolean enabled)

getDataType

public DataType getDataType()

isPerMinute

public boolean isPerMinute()

getRawNumericType

public NumericType getRawNumericType()

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


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