Package org.opennms.nrtg.api.model
Class DefaultCollectionJob
- java.lang.Object
-
- org.opennms.nrtg.api.model.DefaultCollectionJob
-
- All Implemented Interfaces:
Serializable
,CollectionJob
public class DefaultCollectionJob extends Object implements CollectionJob
- Author:
- Christian Pape, Markus Neumann
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DefaultCollectionJob()
-
Method Summary
-
-
-
Method Detail
-
getId
public String getId()
- Specified by:
getId
in interfaceCollectionJob
-
setId
public void setId(String id)
- Specified by:
setId
in interfaceCollectionJob
-
setNodeId
public void setNodeId(int nodeId)
- Specified by:
setNodeId
in interfaceCollectionJob
-
getNodeId
public int getNodeId()
- Specified by:
getNodeId
in interfaceCollectionJob
-
getSite
public String getSite()
- Specified by:
getSite
in interfaceCollectionJob
-
setSite
public void setSite(String site)
- Specified by:
setSite
in interfaceCollectionJob
-
getNetInterface
public String getNetInterface()
- Specified by:
getNetInterface
in interfaceCollectionJob
-
setNetInterface
public void setNetInterface(String netInterface)
- Specified by:
setNetInterface
in interfaceCollectionJob
-
getService
public String getService()
- Specified by:
getService
in interfaceCollectionJob
-
setService
public void setService(String service)
- Specified by:
setService
in interfaceCollectionJob
-
getProtocolConfiguration
public String getProtocolConfiguration()
- Specified by:
getProtocolConfiguration
in interfaceCollectionJob
-
setProtocolConfiguration
public void setProtocolConfiguration(String protocolConfiguration)
- Specified by:
setProtocolConfiguration
in interfaceCollectionJob
-
setParameters
public void setParameters(Map<String,Object> parameters)
- Specified by:
setParameters
in interfaceCollectionJob
-
getParameters
public Map<String,Object> getParameters()
- Specified by:
getParameters
in interfaceCollectionJob
-
getMeasurementSet
public MeasurementSet getMeasurementSet()
- Specified by:
getMeasurementSet
in interfaceCollectionJob
-
setCreationTimestamp
public void setCreationTimestamp(Date creationTimestamp)
- Specified by:
setCreationTimestamp
in interfaceCollectionJob
-
getCreationTimestamp
public Date getCreationTimestamp()
- Specified by:
getCreationTimestamp
in interfaceCollectionJob
-
getFinishedTimestamp
public Date getFinishedTimestamp()
- Specified by:
getFinishedTimestamp
in interfaceCollectionJob
-
setFinishedTimestamp
public void setFinishedTimestamp(Date finishedTimestamp)
- Specified by:
setFinishedTimestamp
in interfaceCollectionJob
-
addMetric
public void addMetric(String metricId, Set<String> destinationSet, String onmsLogicMetricId) throws IllegalArgumentException
- Specified by:
addMetric
in interfaceCollectionJob
- Throws:
IllegalArgumentException
-
setMetricValue
public void setMetricValue(String metricId, String metricType, String value) throws IllegalArgumentException
- Specified by:
setMetricValue
in interfaceCollectionJob
- Throws:
IllegalArgumentException
-
setMetricValue
public void setMetricValue(String metricId, String value) throws IllegalArgumentException
- Specified by:
setMetricValue
in interfaceCollectionJob
- Throws:
IllegalArgumentException
-
getMetricValue
public String getMetricValue(String metricId) throws IllegalArgumentException
- Specified by:
getMetricValue
in interfaceCollectionJob
- Throws:
IllegalArgumentException
-
getMetricType
public String getMetricType(String metricId) throws IllegalArgumentException
- Specified by:
getMetricType
in interfaceCollectionJob
- Throws:
IllegalArgumentException
-
getOnmsLogicMetricId
public String getOnmsLogicMetricId(String metricId)
- Specified by:
getOnmsLogicMetricId
in interfaceCollectionJob
-
getMeasurementSetsByDestination
public Map<String,MeasurementSet> getMeasurementSetsByDestination()
- Specified by:
getMeasurementSetsByDestination
in interfaceCollectionJob
-
getAllMetrics
public Set<String> getAllMetrics()
- Specified by:
getAllMetrics
in interfaceCollectionJob
-
-