Package edu.sc.seis.seisFile.earthworm
Class EarthwormExport
java.lang.Object
edu.sc.seis.seisFile.earthworm.EarthwormExport
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionEarthwormExport
(int port, int module, int institution, String heartbeatMessage, int heartbeatSeconds) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
void
exportWithRetry
(TraceBuf2 traceBuf) int
int
boolean
byte[]
Reads from the socket input stream, usually just the other sides heartbeats.void
setHeartbeater
(EarthwormHeartbeater heartbeater) void
setVerbose
(boolean b) void
protected void
-
Field Details
-
verbose
public boolean verbose -
ESC
public static final byte ESC- See Also:
-
STX
public static final byte STX- See Also:
-
ETX
public static final byte ETX- See Also:
-
SEQ_CODE
- See Also:
-
-
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
- Throws:
IOException
-
export
- Throws:
IOException
-
writeTraceBuf
- Throws:
IOException
-
isConnected
public boolean isConnected() -
waitForClient
- Throws:
IOException
-
readResponseBytes
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
-
setHeartbeater
-