public class SLClient
extends java.lang.Object
nl.knmi.orfeus.seedlink.client.SeedLinkConnection.
Modifier and Type | Field and Description |
---|---|
static java.lang.String[] |
BANNER |
protected java.lang.String |
begin_time
Beginning of time window for read start in past.
|
static java.lang.String |
CLASS_NAME
The class name.
|
static java.lang.String |
COPYRIGHT_YEAR |
protected java.lang.String |
end_time
End of time window for reading windowed data.
|
java.lang.String |
infolevel
INFO LEVEL for info request only.
|
java.lang.String |
multiselect
Selectors for multi-station.
|
static java.lang.String |
PACKAGE
The full class name.
|
boolean |
ppackets
Flag to indicate show detailed packet information.
|
static java.lang.String |
PROGRAM_NAME |
java.lang.String |
selectors
Selectors for uni-station or default selectors for multi-station.
|
SeedLinkConnection |
slconn
SeedLinkConnection object for communicating with the SeedLinkConnection over a socket.
|
SLLog |
sllog
Logging object.
|
java.lang.String |
statefile
Name of file for reading (if exists) and storing state.
|
java.lang.String |
streamfile
Name of file containing stream list for multi-station mode.
|
int |
verbose
Verbosity level, 0 is lowest.
|
static java.lang.String |
VERSION
The version of this class.
|
static java.lang.String |
VERSION_DATE |
static java.lang.String |
VERSION_INFO |
static java.lang.String |
VERSION_YEAR |
Constructor and Description |
---|
SLClient()
Creates a new instance of SLClient.
|
SLClient(SLLog sllog)
Creates a new instance of SLClient with the specified logging object
|
Modifier and Type | Method and Description |
---|---|
void |
init()
Initializes this SLCient.
|
static void |
main(java.lang.String[] args)
main method
|
boolean |
packetHandler(int count,
SLPacket slpack)
Method that processes each packet received from the SeedLinkConnection.
|
int |
parseCmdLineArgs(java.lang.String[] args)
Parses the commmand line arguments.
|
void |
printUsage(boolean concise)
Prints the usage message for this class.
|
void |
run()
Start this SLCient.
|
public static final java.lang.String PACKAGE
public static final java.lang.String CLASS_NAME
public static final java.lang.String VERSION
public static final java.lang.String VERSION_YEAR
public static final java.lang.String VERSION_DATE
public static final java.lang.String COPYRIGHT_YEAR
public static final java.lang.String PROGRAM_NAME
public static final java.lang.String VERSION_INFO
public static final java.lang.String[] BANNER
public SeedLinkConnection slconn
public int verbose
public boolean ppackets
public java.lang.String streamfile
public java.lang.String selectors
public java.lang.String multiselect
public java.lang.String statefile
protected java.lang.String begin_time
protected java.lang.String end_time
public java.lang.String infolevel
public SLLog sllog
public SLClient()
public SLClient(SLLog sllog)
sllog
- logging object to handle messages.public int parseCmdLineArgs(java.lang.String[] args)
args
- the main method arguments.public void init() throws java.net.UnknownHostException, SeedLinkException
SeedLinkException
- on error.java.net.UnknownHostException
- if no IP address for the local host could be found.public void run() throws java.lang.Exception
java.lang.Exception
SeedLinkException
- on error.public boolean packetHandler(int count, SLPacket slpack) throws java.lang.Exception
count
- the packet to process.slpack
- the packet to process.implementation
- dependentjava.lang.Exception
public void printUsage(boolean concise)
public static void main(java.lang.String[] args)