fipaos.mts.service
Class BufferService


public class BufferService
implements PostParserService, PreParserService

TODO: Write a description of the class


Method Summary
 intgetBufferSize()
          
Method required by the BufferMonitor interface.
 StringgetIdentifier()
          Method required by the BufferMonitor interface.
 voidhalt()
          Method required by the BufferMonitor interface.
 synchronized voidincoming(Envelope p1, byte[] p2)
           
 synchronized voidincoming(Message p1)
           
 voidinitialise(PostParserService p1, PostParserService p2)
           
 voidinitialise(PreParserService p1, PreParserService p2)
           
 synchronized voidoutgoing(Envelope p1, byte[] p2)
           
 synchronized voidoutgoing(Message p1)
           
 voidrestart()
          Method required by the BufferMonitor interface.
 voidsetLimit(int i)
          
Method required by the BufferMonitor interface.
 synchronized voidshutdown()
          Shutdown this Service, and those below

Method Detail

getBufferSize

public int getBufferSize()

Method required by the BufferMonitor interface.


getIdentifier

public String getIdentifier()
Method required by the BufferMonitor interface.

halt

public void halt()
Method required by the BufferMonitor interface.

incoming

public synchronized void incoming(Envelope p1, byte[] p2)

incoming

public synchronized void incoming(Message p1)

initialise

public void initialise(PostParserService p1, PostParserService p2)

initialise

public void initialise(PreParserService p1, PreParserService p2)

outgoing

public synchronized void outgoing(Envelope p1, byte[] p2)

outgoing

public synchronized void outgoing(Message p1)

restart

public void restart()
Method required by the BufferMonitor interface.

setLimit

public void setLimit(int i)

Method required by the BufferMonitor interface.


shutdown

public synchronized void shutdown()
Shutdown this Service, and those below

Association Links

to Class fipaos.util.Queue

Queues for all possible combinations of incoming/outgoing pre/post

Only instantiated on demand for efficiency

to Class fipaos.util.Monitor

Monitors for each of the queues

to Class fipaos.mts.service.Service

Targets for our buffers