Class EarthwormExport

java.lang.Object
edu.sc.seis.seisFile.earthworm.EarthwormExport

public class EarthwormExport extends Object
  • Field Details

  • Constructor Details

    • EarthwormExport

      public EarthwormExport()
    • EarthwormExport

      public EarthwormExport(int port, int module, int institution, String heartbeatMessage, int heartbeatSeconds) throws IOException
      Throws:
      IOException
  • Method Details

    • exportWithRetry

      public void exportWithRetry(TraceBuf2 traceBuf) throws IOException
      Throws:
      IOException
    • export

      public void export(TraceBuf2 traceBuf) throws IOException
      Throws:
      IOException
    • writeTraceBuf

      protected void writeTraceBuf(TraceBuf2 tb) throws IOException
      Throws:
      IOException
    • isConnected

      public boolean isConnected()
    • waitForClient

      public void waitForClient() throws IOException
      Throws:
      IOException
    • readResponseBytes

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

      public void closeClient()
    • closeSocket

      public void closeSocket()
    • getNumTraceBufSent

      public int getNumTraceBufSent()
    • getNumSplitTraceBufSent

      public int getNumSplitTraceBufSent()
    • setVerbose

      public void setVerbose(boolean b)
    • getHeartbeater

      public EarthwormHeartbeater getHeartbeater()
    • setHeartbeater

      public void setHeartbeater(EarthwormHeartbeater heartbeater)