|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnl.knmi.orfeus.SLClient
nl.knmi.orfeus.InfoSeedLinkClient
public class InfoSeedLinkClient
Field Summary | |
---|---|
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
|
Fields inherited from class nl.knmi.orfeus.SLClient |
---|
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 Summary | |
---|---|
InfoSeedLinkClient(long timeout)
Creates a new instance of InfoSeedLinkClient |
Method Summary | |
---|---|
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 |
Methods inherited from class nl.knmi.orfeus.SLClient |
---|
init, parseCmdLineArgs, printUsage |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
public InfoSeedLinkClient(long timeout)
Method Detail |
---|
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
run
in interface java.lang.Runnable
run
in class 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
- dependent
java.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)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |