jxtaimpl
Class GateServiceReceiver

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--jxtaimpl.GateServiceReceiver
All Implemented Interfaces:
Runnable

public class GateServiceReceiver
extends Thread

This class holds the input pipe for the GateService. All the incoming messages have to be saved in the GateServiceBuffer, and not processed.

Author:
Francesco Russo (frusso@cs.unibo.it)

Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
GateServiceReceiver()
          This is the default constructor
 
Method Summary
 void run()
           
 void setBuffer(GateServiceBuffer buffer)
          This is the buffer used to handle all the incoming messages to the GateServiceServer
 void setInputPipe(InputPipe pipe)
          This method is used by the GateServiceInstance for setting the input pipe from which messages should come
 void setInputPipeAdv(PipeAdvertisement pipeAdv)
          This method is used for passing a PipeAdvertisement to the GateServiceReceiver instance.
protected  void setMsgAntTag(String tag)
          This method is invoked by the GateService instance during the initialization process in order to pass this object the tag to look for in all the incoming messages.
 
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

GateServiceReceiver

public GateServiceReceiver()
This is the default constructor

Method Detail

setBuffer

public void setBuffer(GateServiceBuffer buffer)
This is the buffer used to handle all the incoming messages to the GateServiceServer


setMsgAntTag

protected void setMsgAntTag(String tag)
This method is invoked by the GateService instance during the initialization process in order to pass this object the tag to look for in all the incoming messages. That'a the tag under which an Ant is sent


run

public void run()
Specified by:
run in interface Runnable
Overrides:
run in class Thread

setInputPipeAdv

public void setInputPipeAdv(PipeAdvertisement pipeAdv)
This method is used for passing a PipeAdvertisement to the GateServiceReceiver instance. The input pipe will be generated from this PipeAdvertisement.


setInputPipe

public void setInputPipe(InputPipe pipe)
This method is used by the GateServiceInstance for setting the input pipe from which messages should come