public class EarthwormExport
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static byte |
ESC |
static byte |
ETX |
static java.lang.String |
SEQ_CODE |
static byte |
STX |
boolean |
verbose |
Constructor and Description |
---|
EarthwormExport() |
EarthwormExport(int port,
int module,
int institution,
java.lang.String heartbeatMessage,
int heartbeatSeconds) |
Modifier and Type | Method and Description |
---|---|
void |
closeClient() |
void |
closeSocket() |
void |
export(TraceBuf2 traceBuf) |
void |
exportWithRetry(TraceBuf2 traceBuf) |
EarthwormHeartbeater |
getHeartbeater() |
int |
getNumSplitTraceBufSent() |
int |
getNumTraceBufSent() |
boolean |
isConnected() |
byte[] |
readResponseBytes()
Reads from the socket input stream, usually just the other sides heartbeats.
|
void |
setHeartbeater(EarthwormHeartbeater heartbeater) |
void |
setVerbose(boolean b) |
void |
waitForClient() |
protected void |
writeTraceBuf(TraceBuf2 tb) |
public boolean verbose
public static final byte ESC
public static final byte STX
public static final byte ETX
public static final java.lang.String SEQ_CODE
public EarthwormExport()
public EarthwormExport(int port, int module, int institution, java.lang.String heartbeatMessage, int heartbeatSeconds) throws java.io.IOException
java.io.IOException
public void exportWithRetry(TraceBuf2 traceBuf) throws java.io.IOException
java.io.IOException
public void export(TraceBuf2 traceBuf) throws java.io.IOException
java.io.IOException
protected void writeTraceBuf(TraceBuf2 tb) throws java.io.IOException
java.io.IOException
public boolean isConnected()
public void waitForClient() throws java.io.IOException
java.io.IOException
public byte[] readResponseBytes() throws java.io.IOException
java.io.IOException
public void closeClient()
public void closeSocket()
public int getNumTraceBufSent()
public int getNumSplitTraceBufSent()
public void setVerbose(boolean b)
public EarthwormHeartbeater getHeartbeater()
public void setHeartbeater(EarthwormHeartbeater heartbeater)