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)

Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
GateServiceServer()
          Default constructor
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GateServiceServer

public GateServiceServer()
Default constructor

Method Detail

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