fipaos.mts
Class InternalMTPBase

fipaos.mts.MTPBase
  |
  +--fipaos.mts.InternalMTPBase
Direct Known Subclasses:
RMIComms, TestingMTP

public abstract class InternalMTPBase
extends MTPBase
implements InternalMTP

Provides a basic implementation of a MTP, based upon the MTPBase
object and implementing the InternalMTP interface




Fields inherited from class fipaos.mts.MTPBase
_shutdown, ACC_NAME

Method Summary
 abstract java.util.ListgetAddresses()
          Method to retreive the protocol dependant addresses of an object that can be used
to receive messages.
 abstract java.util.ListgetProtocols()
          Retreives the protocols known by this comms implementation
 final voidincoming(Message msg)
          Incoming messages are passed to this via this method
 voidinitialise(PreParserService previous, PreParserService next)
          Invoked when the undelying implementation should initialise itself.
 static voidmain(String[] args)
           
 final voidoutgoing(Message msg)
          Outgoing messages are passed to this via this method
 (package private) final voidreceive(Envelope p1, Object p2)
          Invoked when the MTPBase class is passing an incoming message back
 (package private) final voidsend(Object target, Envelope p1, Object p2)
          Send the given message to the given target - the target is the result of
a call to one of the lookup() methods
 abstract voidshutdown()
          This should be invoked when the service should be safely shutdown

Method Detail

getAddresses

public abstract java.util.List getAddresses()
Method to retreive the protocol dependant addresses of an object that can be used
to receive messages.
Returns: A List containing the required addresses, or null if this Comms
doesn't publish such an object

getProtocols

public abstract java.util.List getProtocols()
Retreives the protocols known by this comms implementation
Returns: A List of String's

incoming

public final void incoming(Message msg)
Incoming messages are passed to this via this method
Parameters:
msg - Incoming message

initialise

public void initialise(PreParserService previous, PreParserService next)
Invoked when the undelying implementation should initialise itself. Allows
references to other PreParserService's before and after it in the stack
to be passed
Parameters:
previous - Previous PreParserService instance (Incoming messages should be passed to this)
next - Next PreParserService instance (Outgoing messages should be passed to this)

main

public static void main(String[] args)
throws java.lang.Throwable

outgoing

public final void outgoing(Message msg)
Outgoing messages are passed to this via this method
Parameters:
msg - Outgoing message

receive

final void receive(Envelope p1, Object p2)
Invoked when the MTPBase class is passing an incoming message back

send

final void send(Object target, Envelope p1, Object p2)
throws UnknownTargetException,
UnknownProtocolException,
UnableToSendException
Send the given message to the given target - the target is the result of
a call to one of the lookup() methods

shutdown

public abstract void shutdown()
This should be invoked when the service should be safely shutdown

Association Links

to Class fipaos.mts.service.PreParserService

Previous PreParserService in the stack