org.rhq.core.domain.sync.entity
Class MetricTemplate

java.lang.Object
  extended by org.rhq.core.domain.sync.entity.AbstractExportedEntity
      extended by org.rhq.core.domain.sync.entity.MetricTemplate
All Implemented Interfaces:
Serializable

public class MetricTemplate
extends AbstractExportedEntity

This is a exportable/importable representation of a metric template.

See Also:
Serialized Form

Constructor Summary
MetricTemplate()
           
MetricTemplate(MeasurementDefinition definition)
           
 
Method Summary
 boolean equals(Object other)
           
 long getDefaultInterval()
           
 String getMetricName()
           
 String getResourceTypeName()
           
 String getResourceTypePlugin()
           
 int hashCode()
           
 boolean isEnabled()
           
 boolean isPerMinute()
           
 void setDefaultInterval(long defaultInterval)
           
 void setEnabled(boolean enabled)
           
 void setMetricName(String metricName)
           
 void setPerMinute(boolean perMinute)
           
 void setResourceTypeName(String resourceTypeName)
           
 void setResourceTypePlugin(String resourceTypePlugin)
           
 String toString()
           
 
Methods inherited from class org.rhq.core.domain.sync.entity.AbstractExportedEntity
getReferencedEntityId, setReferencedEntityId
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MetricTemplate

public MetricTemplate()

MetricTemplate

public MetricTemplate(MeasurementDefinition definition)
Method Detail

getResourceTypeName

public String getResourceTypeName()

setResourceTypeName

public void setResourceTypeName(String resourceTypeName)

getResourceTypePlugin

public String getResourceTypePlugin()

setResourceTypePlugin

public void setResourceTypePlugin(String resourceTypePlugin)

getMetricName

public String getMetricName()

setMetricName

public void setMetricName(String metricName)

getDefaultInterval

public long getDefaultInterval()

setDefaultInterval

public void setDefaultInterval(long defaultInterval)

isEnabled

public boolean isEnabled()

setEnabled

public void setEnabled(boolean enabled)

isPerMinute

public boolean isPerMinute()
Returns:
the perMinute

setPerMinute

public void setPerMinute(boolean perMinute)
Parameters:
perMinute - the perMinute to set

hashCode

public int hashCode()
Overrides:
hashCode in class AbstractExportedEntity

equals

public boolean equals(Object other)
Overrides:
equals in class AbstractExportedEntity

toString

public String toString()
Overrides:
toString in class Object


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