|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
edu.washington.cs.rfid.gateway.ReaderGateway
public class ReaderGateway
The reader gateway. The gateway connects to a set of readers, receives streams of compressed TREs from the reader, and forwards the aggregated streams to the RFID cleaning services.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary |
---|
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
ReaderGateway(ReaderGatewayParameters params)
Creates a new ReaderGateway with the specified parameters. |
Method Summary | |
---|---|
void |
addListener(ReaderGatewayListener l)
Adds a ReaderGatewayListener to the list of listeners. |
boolean |
handle(java.lang.String s)
The handle method from interface RFIDSignalHandler |
static void |
main(java.lang.String[] args)
Parses command line arguments and config file, then creates and launches a new ReaderGateway . |
void |
newMsg(java.lang.String msg)
The newMsg method from the ReaderConnectionListener interface. |
void |
newTRE(TRE t)
The newTRE method from the ReaderConnectionListener interface. |
void |
run()
Main loop for processing TREs. |
void |
shutdown()
Gracefully shuts down the ReaderGateway . |
static void |
usage()
Prints a usage message for the reader gateway and then exits. |
Methods inherited from class java.lang.Thread |
---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ReaderGateway(ReaderGatewayParameters params)
ReaderGateway
with the specified parameters.
params
- The parameters for creating this ReaderGateway
Method Detail |
---|
public boolean handle(java.lang.String s)
RFIDSignalHandler
handle
in interface RFIDSignalListener
s
- The signal to handle
public void shutdown()
ReaderGateway
.
public void addListener(ReaderGatewayListener l)
ReaderGatewayListener
to the list of listeners.
l
- The ReaderGatewayListener
to addpublic void newTRE(TRE t)
newTRE
in interface ReaderConnectionListener
t
- The new TREpublic void newMsg(java.lang.String msg)
ReaderConnectionListener
interface.
Handles a newly message by inserting it in the message queue.
newMsg
in interface ReaderConnectionListener
msg
- The new messagepublic void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public static void usage()
public static void main(java.lang.String[] args)
ReaderGateway
.
args
- The command line arguments
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |