public class InfoSeedLinkClient extends SLClient implements java.lang.Runnable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DELIM |
protected static java.lang.String |
E_CODES |
static java.lang.String[] |
INFO_NAMES |
protected Document[] |
infoDocuments |
protected java.lang.String |
infoString |
protected java.lang.String[] |
infoStrings |
protected static java.lang.String |
N_CODES |
protected int |
nInfoPackets |
protected long |
timeout |
protected static java.lang.String |
Z_CODES |
BANNER, begin_time, CLASS_NAME, COPYRIGHT_YEAR, end_time, infolevel, multiselect, PACKAGE, ppackets, PROGRAM_NAME, selectors, slconn, sllog, statefile, streamfile, verbose, VERSION, VERSION_DATE, VERSION_INFO, VERSION_YEAR
Constructor and Description |
---|
InfoSeedLinkClient(long timeout)
Creates a new instance of InfoSeedLinkClient
|
Modifier and Type | Method and Description |
---|---|
java.util.Vector |
addChannelSet(java.util.Vector seedChannelVector,
java.util.Vector channelElementsVector,
Element stationElement,
java.lang.String currentSelector)
adds a ChannelSet
|
java.util.Vector |
addStreams(java.util.Vector seedChannelVector,
Element stationElement)
adds streams for a station
|
java.lang.String |
getInfo(java.lang.String infolevel)
get info level
|
Document |
getInfoDocument(java.lang.String infoLevel)
return info as Document
|
java.lang.String |
getInfoString(java.lang.String infoLevel)
return info as String
|
java.util.Vector |
getSeedChannels()
return info as Document
|
static void |
main(java.lang.String[] args)
main method
|
boolean |
packetHandler(int count,
SLPacket slpack)
Method that processes each packet received from the SeedLinkServer.
|
void |
run()
Start this SLCient.
|
void |
setSLAddress(java.lang.String sladdr)
Sets the host:port of the SeedLink server.
|
net.alomax.seistools.SeedChannel |
toSeedChannel(Element channelElement,
java.lang.String network,
java.lang.String staName,
java.lang.String locName)
returns table array String representation of this ChannelSet
|
init, parseCmdLineArgs, printUsage
public static final java.lang.String[] INFO_NAMES
protected java.lang.String[] infoStrings
protected Document[] infoDocuments
protected static final java.lang.String Z_CODES
protected static final java.lang.String N_CODES
protected static final java.lang.String E_CODES
public static final java.lang.String DELIM
protected long timeout
protected java.lang.String infoString
protected int nInfoPackets
public InfoSeedLinkClient(long timeout)
public void setSLAddress(java.lang.String sladdr)
sladdr
- the host:port of the SeedLink server.public java.lang.String getInfo(java.lang.String infolevel) throws SeedLinkException
SeedLinkException
public void run()
SLClient
public boolean packetHandler(int count, SLPacket slpack) throws java.lang.Exception
packetHandler
in class SLClient
count
- the packet to process.slpack
- the packet to process.implementation
- dependentjava.lang.Exception
public java.lang.String getInfoString(java.lang.String infoLevel) throws SeedLinkException, DocumentException
SeedLinkException
DocumentException
public Document getInfoDocument(java.lang.String infoLevel) throws SeedLinkException, DocumentException
SeedLinkException
DocumentException
public java.util.Vector getSeedChannels() throws SeedLinkException, DocumentException
SeedLinkException
DocumentException
public java.util.Vector addStreams(java.util.Vector seedChannelVector, Element stationElement)
public java.util.Vector addChannelSet(java.util.Vector seedChannelVector, java.util.Vector channelElementsVector, Element stationElement, java.lang.String currentSelector)
public net.alomax.seistools.SeedChannel toSeedChannel(Element channelElement, java.lang.String network, java.lang.String staName, java.lang.String locName)
public static void main(java.lang.String[] args)