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