Class TickDBCreator


  • public class TickDBCreator
    extends deltix.util.cmdline.DefaultApplication
    • Field Detail

      • LOCATION

        public static final java.lang.String LOCATION
      • RO_MINUTES_LOCATION

        public static final java.lang.String RO_MINUTES_LOCATION
      • RO_CUST_TICKS_LOCATION

        public static final java.lang.String RO_CUST_TICKS_LOCATION
      • TEST_STREAM_KEYS

        public static final java.lang.String[] TEST_STREAM_KEYS
      • TEST_SYMBOLS

        public static final java.lang.String[] TEST_SYMBOLS
      • TEST_IDS

        public static final deltix.qsrv.hf.pub.InstrumentIdentity[] TEST_IDS
      • TYPE_NAMES

        public static final java.lang.String[] TYPE_NAMES
      • NUM_TYPES

        public static final int NUM_TYPES
    • Constructor Detail

      • TickDBCreator

        public TickDBCreator​(java.lang.String[] args)
    • Method Detail

      • openStdMinutesTestDB

        public static DXTickDB openStdMinutesTestDB()
      • openStdTicksTestDB

        public static DXTickDB openStdTicksTestDB​(java.lang.String path)
                                           throws java.io.IOException,
                                                  java.lang.InterruptedException
        Throws:
        java.io.IOException
        java.lang.InterruptedException
      • loadBars

        public static void loadBars​(java.lang.String symbol,
                                    java.io.InputStream is,
                                    TickLoader loader)
                             throws java.io.IOException
        Throws:
        java.io.IOException
      • loadBarsFromZip

        public static void loadBarsFromZip​(java.util.zip.ZipInputStream zis,
                                           TickLoader loader)
                                    throws java.io.IOException
        Throws:
        java.io.IOException
      • loadBarsFromZipResource

        public static void loadBarsFromZipResource​(java.lang.String path,
                                                   TickLoader loader)
                                            throws java.io.IOException
        Throws:
        java.io.IOException
      • testEntities

        public static deltix.qsrv.hf.pub.InstrumentIdentity[] testEntities​(int... ids)
      • getTestTimestamp

        public static long getTestTimestamp​(int streamIdx,
                                            int entityIdx,
                                            int sequenceIdx)
      • generateTestData

        public static void generateTestData​(int sidx,
                                            TickLoader loader)
      • createTestStreams

        public static void createTestStreams​(DXTickDB db)
      • createTickDB

        public static DXTickDB createTickDB​(java.lang.String url,
                                            boolean format)
      • createBarsStream

        public static DXTickStream createBarsStream​(DXTickDB tdb,
                                                    java.lang.String name)
      • run

        protected void run()
                    throws java.lang.Throwable
        Specified by:
        run in class deltix.util.cmdline.DefaultApplication
        Throws:
        java.lang.Throwable
      • main

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