Class Runner


  • public class Runner
    extends java.lang.Object
    Author:
    Einar M R Rosenvinge, dybis
    • Constructor Summary

      Constructors 
      Constructor Description
      Runner()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void main​(java.lang.String[] args)  
      static long send​(FeedClient feedClient, java.io.InputStream inputStream, boolean isJson, java.util.concurrent.atomic.AtomicInteger numSent, boolean verbose)
      Feed data from inputFile to session.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Runner

        public Runner()
    • Method Detail

      • send

        public static long send​(FeedClient feedClient,
                                java.io.InputStream inputStream,
                                boolean isJson,
                                java.util.concurrent.atomic.AtomicInteger numSent,
                                boolean verbose)
        Feed data from inputFile to session.
        Parameters:
        feedClient - where to send data to
        inputStream - source of data
        isJson - if input stream is of json formatted data
        numSent - is updated while sending by this method
        verbose - if true will print some information to stderr
        Returns:
        send time in ms, not including validating
      • main

        public static void main​(java.lang.String[] args)
                         throws java.io.IOException
        Throws:
        java.io.IOException