Class TDBProtocol

    • Constructor Detail

      • TDBProtocol

        public TDBProtocol()
    • Method Detail

      • getSSLPort

        public static int getSSLPort​(int port)
      • getPort

        public static int getPort​(int port,
                                  boolean ssl)
      • getHttpProtocol

        public static java.lang.String getHttpProtocol​(boolean ssl)
      • getProtocol

        public static java.lang.String getProtocol​(boolean ssl)
      • isSSL

        public static boolean isSSL​(java.lang.String protocol)
      • writeParameters

        public static void writeParameters​(Parameter[] params,
                                           java.io.DataOutputStream out)
                                    throws java.io.IOException
        Throws:
        java.io.IOException
      • readParameters

        public static Parameter[] readParameters​(java.io.DataInputStream in,
                                                 int clientVersion)
                                          throws java.io.IOException
        Throws:
        java.io.IOException
      • writeTransformationTask

        public static void writeTransformationTask​(TransformationTask task,
                                                   java.io.DataOutputStream out)
                                            throws java.io.IOException
        Throws:
        java.io.IOException
      • readTransformationTask

        public static TransformationTask readTransformationTask​(java.io.DataInputStream in)
                                                         throws java.io.IOException
        Throws:
        java.io.IOException
      • writeTimeRange

        public static void writeTimeRange​(long[] range,
                                          java.io.DataOutputStream out)
                                   throws java.io.IOException
        Throws:
        java.io.IOException
      • writeTimeRange

        public static void writeTimeRange​(deltix.qsrv.hf.pub.TimeInterval range,
                                          java.io.DataOutputStream out)
                                   throws java.io.IOException
        Throws:
        java.io.IOException
      • readTimeRangeLong

        public static long[] readTimeRangeLong​(java.io.DataInputStream in)
                                        throws java.io.IOException
        Throws:
        java.io.IOException
      • writeBGProcessInfo

        public static void writeBGProcessInfo​(BackgroundProcessInfo info,
                                              java.io.DataOutputStream out)
                                       throws java.io.IOException
        Throws:
        java.io.IOException
      • readBGProcessInfo

        public static BackgroundProcessInfo readBGProcessInfo​(java.io.DataInputStream in)
                                                       throws java.io.IOException,
                                                              java.lang.ClassNotFoundException
        Throws:
        java.io.IOException
        java.lang.ClassNotFoundException
      • writeClassSet

        public static void writeClassSet​(java.io.DataOutputStream out,
                                         ClassSet set)
                                  throws java.io.IOException
        Throws:
        java.io.IOException
      • toString

        public static java.lang.String toString​(RecordClassSet md)
                                         throws java.io.IOException
        Throws:
        java.io.IOException
      • readClassSet

        public static ClassSet readClassSet​(java.lang.String in)
      • readClassSet

        public static ClassSet readClassSet​(java.io.DataInputStream in)
                                     throws java.io.IOException
        Throws:
        java.io.IOException
      • writeTimeRange

        public static void writeTimeRange​(java.io.DataOutputStream out,
                                          DXTickStream stream,
                                          deltix.qsrv.hf.pub.InstrumentIdentity[] ids)
                                   throws java.io.IOException
        Throws:
        java.io.IOException
      • writeStream

        public static void writeStream​(java.io.DataOutputStream out,
                                       DXTickStream stream,
                                       int clientVersion)
                                throws java.io.IOException
        Throws:
        java.io.IOException
      • writeStreamOptions

        public static void writeStreamOptions​(java.io.DataOutputStream out,
                                              StreamOptions so,
                                              int clientVersion)
                                       throws java.io.IOException
        Throws:
        java.io.IOException
      • readStreamOptions

        public static StreamOptions readStreamOptions​(java.io.DataInputStream in,
                                                      int clientVersion)
                                               throws java.io.IOException
        Throws:
        java.io.IOException
      • readStreamOptions76

        public static StreamOptions readStreamOptions76​(java.io.DataInputStream in)
                                                 throws java.io.IOException
        Throws:
        java.io.IOException
      • writeNonNullableStrings

        public static void writeNonNullableStrings​(java.io.DataOutputStream out,
                                                   java.lang.String[] strings)
                                            throws java.io.IOException
        Throws:
        java.io.IOException
      • readNonNullableStrings

        public static java.lang.String[] readNonNullableStrings​(java.io.DataInputStream in)
                                                         throws java.io.IOException
        Throws:
        java.io.IOException
      • writeNullableStringArray

        public static void writeNullableStringArray​(java.io.DataOutputStream out,
                                                    @Nullable
                                                    java.lang.String[] strings)
                                             throws java.io.IOException
        Throws:
        java.io.IOException
      • writeNullableStringArray

        public static void writeNullableStringArray​(java.io.DataOutputStream out,
                                                    @Nullable
                                                    java.util.List<java.lang.CharSequence> strings)
                                             throws java.io.IOException
        Throws:
        java.io.IOException
      • readNullableStringArray

        @Nullable
        public static java.lang.String[] readNullableStringArray​(java.io.DataInputStream din)
                                                          throws java.io.IOException
        Throws:
        java.io.IOException
      • writeCredentials

        public static void writeCredentials​(VSChannel channel,
                                            UserPrincipal principal)
                                     throws java.io.IOException
        Throws:
        java.io.IOException
      • writeCredentials

        public static void writeCredentials​(VSChannel channel,
                                            UserPrincipal principal,
                                            java.security.Principal delegate)
                                     throws java.io.IOException
        Throws:
        java.io.IOException
      • writeBinary

        public static void writeBinary​(java.io.DataOutputStream out,
                                       java.lang.Throwable e)
                                throws java.io.IOException
        Throws:
        java.io.IOException
      • readBinary

        public static java.lang.Throwable readBinary​(java.io.DataInputStream in)
                                              throws java.io.IOException,
                                                     java.lang.ClassNotFoundException
        Throws:
        java.io.IOException
        java.lang.ClassNotFoundException
      • writeError

        public static void writeError​(java.io.DataOutputStream out,
                                      java.lang.Throwable e)
                               throws java.io.IOException
        Throws:
        java.io.IOException
      • readError

        public static java.lang.Throwable readError​(java.io.DataInputStream in)
                                             throws java.io.IOException,
                                                    java.lang.ClassNotFoundException
        Throws:
        java.io.IOException
        java.lang.ClassNotFoundException
      • readError

        public static java.lang.Throwable readError​(java.io.DataInputStream in,
                                                    ExceptionResolver resolver)
                                             throws java.io.IOException,
                                                    java.lang.ClassNotFoundException
        Throws:
        java.io.IOException
        java.lang.ClassNotFoundException
      • readCredentials

        public static UserCredentials readCredentials​(VSChannel channel)
                                               throws java.io.IOException
        Throws:
        java.io.IOException