Class 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 interface java.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)