jxtaimpl
Class GateServiceServer
java.lang.Object
|
+--java.lang.Thread
|
+--jxtaimpl.GateServiceServer
- All Implemented Interfaces:
- Runnable
- public class GateServiceServer
- extends Thread
This class reads messages from the GateServiceBuffer for processing them. The received ants will be passed to the Nest instance which implements the AntListener interface, invoking the deliver() method.
- Author:
- Francesco Russo (frusso@cs.unibo.it)
Method Summary |
void |
run()
|
void |
setBuffer(GateServiceBuffer buffer)
Set the buffer from which message to be processed can be read |
void |
setNest(Nest nest)
The Nest has to be set by the GateService during its initialization phase.
|
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
GateServiceServer
public GateServiceServer()
- Default constructor
setBuffer
public void setBuffer(GateServiceBuffer buffer)
- Set the buffer from which message to be processed can be read
run
public void run()
- Specified by:
run
in interface Runnable
- Overrides:
run
in class Thread
setNest
public void setNest(Nest nest)
- The Nest has to be set by the GateService during its initialization phase.
The Nest is this instance's AntListener