edu.sc.seis.seisFile.earthworm
Class EarthwormExport

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

public class EarthwormExport
extends java.lang.Object


Field Summary
static byte ESC
           
static byte ETX
           
static java.lang.String SEQ_CODE
           
static byte STX
           
 boolean verbose
           
 
Constructor Summary
EarthwormExport(int port, int module, int institution, java.lang.String heartbeatMessage, int heartbeatSeconds)
           
 
Method Summary
 void closeClient()
           
 void closeSocket()
           
 void export(TraceBuf2 traceBuf)
           
 EarthwormHeartbeater getHeartbeater()
           
 int getNumSplitTraceBufSent()
           
 int getNumTraceBufSent()
           
static void main(java.lang.String[] args)
           
 void setHeartbeater(EarthwormHeartbeater heartbeater)
           
 void setVerbose(boolean b)
           
 void waitForClient()
           
protected  void writeTraceBuf(TraceBuf2 tb)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

verbose

public boolean verbose

ESC

public static final byte ESC
See Also:
Constant Field Values

STX

public static final byte STX
See Also:
Constant Field Values

ETX

public static final byte ETX
See Also:
Constant Field Values

SEQ_CODE

public static final java.lang.String SEQ_CODE
See Also:
Constant Field Values
Constructor Detail

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

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

waitForClient

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

closeClient

public void closeClient()

closeSocket

public void closeSocket()

getNumTraceBufSent

public int getNumTraceBufSent()

getNumSplitTraceBufSent

public int getNumSplitTraceBufSent()

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception

setVerbose

public void setVerbose(boolean b)

getHeartbeater

public EarthwormHeartbeater getHeartbeater()

setHeartbeater

public void setHeartbeater(EarthwormHeartbeater heartbeater)