Class BufferingEarthwormExport

java.lang.Object
edu.sc.seis.seisFile.earthworm.BufferingEarthwormExport
Direct Known Subclasses:
FileBufferingEarthwormExport

public class BufferingEarthwormExport
extends java.lang.Object
  • Constructor Summary

    Constructors
    Constructor Description
    BufferingEarthwormExport​(int port, int module, int institution, java.lang.String heartbeatMessage, int heartbeatSeconds, int bufferSize, int sleepMillis)  
  • Method Summary

    Modifier and Type Method Description
    int getMaxSize()  
    int getSentCount()  
    long getSleepMillis()  
    int getTossCount()  
    int getTotal()  
    void offer​(TraceBuf2 tb)  
    TraceBuf2 pop()  
    void setSleepMillis​(long sleepMillis)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • BufferingEarthwormExport

      public BufferingEarthwormExport​(int port, int module, int institution, java.lang.String heartbeatMessage, int heartbeatSeconds, int bufferSize, int sleepMillis) throws java.net.UnknownHostException, java.io.IOException
      Throws:
      java.net.UnknownHostException
      java.io.IOException
  • Method Details

    • offer

      public void offer​(TraceBuf2 tb)
    • pop

      public TraceBuf2 pop()
    • getTotal

      public int getTotal()
    • getSentCount

      public int getSentCount()
    • getTossCount

      public int getTossCount()
    • getMaxSize

      public int getMaxSize()
    • getSleepMillis

      public long getSleepMillis()
    • setSleepMillis

      public void setSleepMillis​(long sleepMillis)