|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnl.knmi.orfeus.SLClient
public class SLClient
Basic class to create and use a connection to a SeedLink server using a SeedLinkConnection object. A new SeedLink application can be created by subclassing SLClient and overriding at least the packetHandler method of SLClient.
nl.knmi.orfeus.seedlink.client.SeedLinkConnection.
Field Summary | |
---|---|
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 Summary | |
---|---|
SLClient()
Creates a new instance of SLClient. |
|
SLClient(SLLog sllog)
Creates a new instance of SLClient with the specified logging object |
Method Summary | |
---|---|
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. |
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 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
Constructor Detail |
---|
public SLClient()
public SLClient(SLLog sllog)
sllog
- logging object to handle messages.Method Detail |
---|
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.
IOException
- if an I/O error occurs.public boolean packetHandler(int count, SLPacket slpack) throws java.lang.Exception
count
- the packet to process.slpack
- the packet to process.
implementation
- dependent
java.lang.Exception
public void printUsage(boolean concise)
public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |