Class EarthwormExport


  • public class EarthwormExport
    extends java.lang.Object
    • Constructor Detail

      • EarthwormExport

        public EarthwormExport()
      • EarthwormExport

        public EarthwormExport​(int port,
                               int module,
                               int institution,
                               java.lang.String heartbeatMessage,
                               int heartbeatSeconds)
                        throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • exportWithRetry

        public void exportWithRetry​(TraceBuf2 traceBuf)
                             throws java.io.IOException
        Throws:
        java.io.IOException
      • export

        public void export​(TraceBuf2 traceBuf)
                    throws java.io.IOException
        Throws:
        java.io.IOException
      • writeTraceBuf

        protected void writeTraceBuf​(TraceBuf2 tb)
                              throws java.io.IOException
        Throws:
        java.io.IOException
      • isConnected

        public boolean isConnected()
      • waitForClient

        public void waitForClient()
                           throws java.io.IOException
        Throws:
        java.io.IOException
      • readResponseBytes

        public byte[] readResponseBytes()
                                 throws java.io.IOException
        Reads from the socket input stream, usually just the other sides heartbeats.
        Returns:
        byte array read from inputStream
        Throws:
        java.io.IOException
      • closeClient

        public void closeClient()
      • closeSocket

        public void closeSocket()
      • getNumTraceBufSent

        public int getNumTraceBufSent()
      • getNumSplitTraceBufSent

        public int getNumSplitTraceBufSent()
      • setVerbose

        public void setVerbose​(boolean b)