fipaos.mts.service
Class BufferService

java.lang.Object
  |
  +--fipaos.mts.service.BufferService
All Implemented Interfaces:
PostParserService, PreParserService, Service

public class BufferService
extends java.lang.Object
implements PreParserService, PostParserService

TODO: Write a description of the class


Fields inherited from interface fipaos.mts.service.Service
ACL_LANGUAGE_UNKNOWN, CONTENT_LANGUAGE_UNKNOWN, ERROR_STRING, ERROR_UNKNOWN, FIPAOS_DEBUG, FIPAOS_MSG_ID_SLOT, MALFORMED_ENVELOPE, MSG_DELIVERY_FAILURE_REASON, NONE, PROTOCOL_UNKNOWN, TARGET_UNKNOWN
 
Constructor Summary
BufferService()
           
 
Method Summary
 int getBufferSize()
          
Method required by the BufferMonitor interface.
 java.lang.String getIdentifier()
          Method required by the BufferMonitor interface.
 void halt()
          Method required by the BufferMonitor interface.
 void incoming(Envelope p1, byte[] p2)
          Incoming messages are passed to this via this method
 void incoming(Message p1)
          Incoming messages are passed to this via this method
 void initialise(PostParserService p1, PostParserService p2)
          Invoked when the undelying implementation should initialise itself.
 void initialise(PreParserService p1, PreParserService p2)
          Invoked when the undelying implementation should initialise itself.
 void outgoing(Envelope p1, byte[] p2)
          Outgoing messages are passed to this via this method
 void outgoing(Message p1)
          Outgoing messages are passed to this via this method
 void restart()
          Method required by the BufferMonitor interface.
 void setLimit(int i)
          
Method required by the BufferMonitor interface.
 void shutdown()
          Shutdown this Service, and those below
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BufferService

public BufferService()
Method Detail

getBufferSize

public int getBufferSize()

Method required by the BufferMonitor interface.


setLimit

public void setLimit(int i)

Method required by the BufferMonitor interface.


getIdentifier

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

halt

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

restart

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

shutdown

public void shutdown()
Shutdown this Service, and those below
Specified by:
shutdown in interface Service

outgoing

public void outgoing(Envelope p1,
                     byte[] p2)
Description copied from interface: PostParserService
Outgoing messages are passed to this via this method
Specified by:
outgoing in interface PostParserService
Following copied from interface: fipaos.mts.service.PostParserService
Parameters:
msg - Outgoing message

incoming

public void incoming(Envelope p1,
                     byte[] p2)
Description copied from interface: PostParserService
Incoming messages are passed to this via this method
Specified by:
incoming in interface PostParserService
Following copied from interface: fipaos.mts.service.PostParserService
Parameters:
msg - Incoming message

initialise

public void initialise(PostParserService p1,
                       PostParserService p2)
Description copied from interface: PostParserService
Invoked when the undelying implementation should initialise itself. Allows references to other PostParserService's before and after it in the stack to be passed
Specified by:
initialise in interface PostParserService
Following copied from interface: fipaos.mts.service.PostParserService
Parameters:
previous - Previous PostParserService instance (Incoming messages should be passed to this)
next - Next PostParserService instance (Outgoing messages should be passed to this)

incoming

public void incoming(Message p1)
Description copied from interface: PreParserService
Incoming messages are passed to this via this method
Specified by:
incoming in interface PreParserService
Following copied from interface: fipaos.mts.service.PreParserService
Parameters:
msg - Incoming message

outgoing

public void outgoing(Message p1)
Description copied from interface: PreParserService
Outgoing messages are passed to this via this method
Specified by:
outgoing in interface PreParserService
Following copied from interface: fipaos.mts.service.PreParserService
Parameters:
msg - Outgoing message

initialise

public void initialise(PreParserService p1,
                       PreParserService p2)
Description copied from interface: PreParserService
Invoked when the undelying implementation should initialise itself. Allows references to other PreParserService's before and after it in the stack to be passed
Specified by:
initialise in interface PreParserService
Following copied from interface: fipaos.mts.service.PreParserService
Parameters:
previous - Previous PreParserService instance (Incoming messages should be passed to this)
next - Next PreParserService instance (Outgoing messages should be passed to this)