Class VSServerFramework

  • All Implemented Interfaces:
    deltix.util.lang.DisposableListener<VSDispatcher>, deltix.util.tomcat.ConnectionHandshakeHandler, java.io.Closeable, java.lang.AutoCloseable

    public class VSServerFramework
    extends java.lang.Object
    implements deltix.util.tomcat.ConnectionHandshakeHandler, deltix.util.lang.DisposableListener<VSDispatcher>, java.io.Closeable
    • Constructor Detail

      • VSServerFramework

        public VSServerFramework​(deltix.util.concurrent.QuickExecutor executor,
                                 int reconnectInterval,
                                 VSCompression compression,
                                 int connectionsLimit,
                                 short socketsPerConnection,
                                 ContextContainer contextContainer)
      • VSServerFramework

        public VSServerFramework​(deltix.util.concurrent.QuickExecutor executor,
                                 int reconnectInterval,
                                 VSCompression compression,
                                 ContextContainer contextContainer)
    • Method Detail

      • getExecutor

        public deltix.util.concurrent.QuickExecutor getExecutor()
      • getDispatchersCount

        public int getDispatchersCount()
      • getDispatcher

        public VSDispatcher getDispatcher​(java.lang.String id)
      • getThroughput

        public long getThroughput()
      • initSSLSocketFactory

        public void initSSLSocketFactory​(TLSContext context)
      • handleHandshake

        public boolean handleHandshake​(java.net.Socket s)
                                throws java.io.IOException
        Throws:
        java.io.IOException
      • handleHandshake

        public boolean handleHandshake​(java.net.Socket s,
                                       java.io.BufferedInputStream is,
                                       java.io.OutputStream os)
                                throws java.io.IOException
        Handles inbound HTTP connection handshake when TB is running inside Tomcat
        Specified by:
        handleHandshake in interface deltix.util.tomcat.ConnectionHandshakeHandler
        Throws:
        java.io.IOException
      • handleHandshake

        public boolean handleHandshake​(Connection c)
                                throws java.io.IOException
        Handle the initial transport-level handshake with a client.
        Parameters:
        c - Socket to perform the handshake with.
        Returns:
        true if the connection is accepted and socket added to the set of transport channels. false if socket should be closed.
        Throws:
        java.io.IOException
      • disposed

        public void disposed​(VSDispatcher resource)
        Specified by:
        disposed in interface deltix.util.lang.DisposableListener<VSDispatcher>
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable