Package org.opennms.netmgt.config.poller
Class Service
- java.lang.Object
-
- org.opennms.netmgt.config.poller.Service
-
- All Implemented Interfaces:
Serializable
public class Service extends Object implements Serializable
Service to be polled for addresses in this package.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addParameter(String key, String value)
void
addParameter(Parameter parameter)
boolean
equals(Object obj)
Overrides the Object.equals method.Long
getInterval()
Interval at which the service is to be polledString
getName()
Service nameParameter
getParameter(String key)
Map<String,Object>
getParameterMap()
List<Parameter>
getParameters()
String
getPattern()
String
getStatus()
Status of the service.String
getUserDefined()
Specifies if the service is user defined.int
hashCode()
Overrides the Object.hashCode method.boolean
removeParameter(Parameter parameter)
void
setInterval(Integer interval)
void
setInterval(Long interval)
void
setName(String name)
void
setParameters(List<Parameter> parameters)
void
setPattern(String pattern)
void
setStatus(String status)
void
setUserDefined(String userDefined)
String
toString()
-
-
-
Method Detail
-
getName
public String getName()
Service name
-
setName
public void setName(String name)
-
getInterval
public Long getInterval()
Interval at which the service is to be polled
-
setInterval
public void setInterval(Long interval)
-
setInterval
public void setInterval(Integer interval)
-
getUserDefined
public String getUserDefined()
Specifies if the service is user defined. Used specifically for UI purposes.
-
setUserDefined
public void setUserDefined(String userDefined)
-
getStatus
public String getStatus()
Status of the service. The service is polled only if this is set to 'on'.
-
setStatus
public void setStatus(String status)
-
getPattern
public String getPattern()
-
setPattern
public void setPattern(String pattern)
-
addParameter
public void addParameter(Parameter parameter) throws IndexOutOfBoundsException
- Throws:
IndexOutOfBoundsException
-
removeParameter
public boolean removeParameter(Parameter parameter)
-
equals
public boolean equals(Object obj)
Overrides the Object.equals method.
-
hashCode
public int hashCode()
Overrides the Object.hashCode method.The following steps came from Effective Java Programming Language Guide by Joshua Bloch, Chapter 3
-
-