Class Service
- java.lang.Object
-
- org.opennms.netmgt.config.collectd.Service
-
- All Implemented Interfaces:
java.io.Serializable
public class Service extends java.lang.Object implements java.io.Serializable
Service to be collected for addresses in this package- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Service()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addParameter(java.lang.String key, java.lang.String value)
void
addParameter(Parameter parameter)
boolean
equals(java.lang.Object obj)
java.lang.Long
getInterval()
the interval at which the service is to be collectedjava.lang.String
getName()
the service namejava.lang.String
getParameter(java.lang.String key)
java.util.List<Parameter>
getParameters()
java.lang.String
getStatus()
status of the service, service is collected only if onjava.lang.String
getUserDefined()
marker to say if service is user defined, used specifically for UI purposesint
hashCode()
boolean
removeParameter(Parameter parameter)
void
setInterval(java.lang.Long interval)
void
setName(java.lang.String name)
void
setParameters(java.util.List<Parameter> parameters)
void
setStatus(java.lang.String status)
void
setUserDefined(java.lang.String userDefined)
java.lang.String
toString()
-
-
-
Method Detail
-
getName
public java.lang.String getName()
the service name
-
setName
public void setName(java.lang.String name)
-
getInterval
public java.lang.Long getInterval()
the interval at which the service is to be collected
-
setInterval
public void setInterval(java.lang.Long interval)
-
getUserDefined
public java.lang.String getUserDefined()
marker to say if service is user defined, used specifically for UI purposes
-
setUserDefined
public void setUserDefined(java.lang.String userDefined)
-
getStatus
public java.lang.String getStatus()
status of the service, service is collected only if on
-
setStatus
public void setStatus(java.lang.String status)
-
getParameters
public java.util.List<Parameter> getParameters()
-
setParameters
public void setParameters(java.util.List<Parameter> parameters)
-
addParameter
public void addParameter(Parameter parameter) throws java.lang.IndexOutOfBoundsException
- Throws:
java.lang.IndexOutOfBoundsException
-
addParameter
public void addParameter(java.lang.String key, java.lang.String value)
-
removeParameter
public boolean removeParameter(Parameter parameter)
-
getParameter
public java.lang.String getParameter(java.lang.String key)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-