Class NewtsConverter
- java.lang.Object
-
- org.opennms.features.newts.converter.NewtsConverter
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public class NewtsConverter extends java.lang.Object implements java.lang.AutoCloseable
The Class NewtsConverter. The converter requires multi-ds metrics; otherwise it won't work.- Author:
- Alejandro Galue
, Dustin Frisch
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
execute()
static java.util.SortedMap<java.lang.Long,java.util.List<java.lang.Double>>
generateSamples(AbstractRRD rrd)
static java.util.NavigableMap<java.lang.Long,java.util.List<java.lang.Double>>
generateSamples(AbstractRRD rrd, AbstractRRA rra)
static void
main(java.lang.String... args)
The main method.protected static org.opennms.newts.api.Sample
toSample(AbstractDS ds, org.opennms.newts.api.Resource resource, org.opennms.newts.api.Timestamp timestamp, double value)
-
-
-
Method Detail
-
main
public static void main(java.lang.String... args)
The main method.- Parameters:
args
- the arguments
-
execute
public void execute()
-
toSample
protected static org.opennms.newts.api.Sample toSample(AbstractDS ds, org.opennms.newts.api.Resource resource, org.opennms.newts.api.Timestamp timestamp, double value)
-
close
public void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
-
generateSamples
public static java.util.SortedMap<java.lang.Long,java.util.List<java.lang.Double>> generateSamples(AbstractRRD rrd)
-
generateSamples
public static java.util.NavigableMap<java.lang.Long,java.util.List<java.lang.Double>> generateSamples(AbstractRRD rrd, AbstractRRA rra)
-
-