fipaos.mts.iiop.sun.external
Class SUNIIOPComms

fipaos.mts.MTPBase
  |
  +--fipaos.mts.ExternalMTPBase
        |
        +--fipaos.mts.iiop.sun.external.SUNIIOPComms

public class SUNIIOPComms
extends ExternalMTPBase

SUNIIOPComms uses jdk1.2's IDL classes to provide a FIPA99 Structured IIOP
interface for Agent communications.



$Revision: 1.16 $ $Date: 2002/03/18 15:15:52 $ $Author: alastairduncan $


Inner Class Summary
 public classSUNIIOPComms.MTSListener
          Listener class for the MTS

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

Constructor Summary
SUNIIOPComms(String our_name, URL ns_url)
          Comms initialiser

Method Summary
 static org.omg.CORBA.ObjectcorbaNameResolve(URL name)
          Attempt to resolve the given CORBANAME url
 ListgetAddresses()
          Method to retreive the protocol dependant address of an object that can be used
to receive messages.
 ListgetProtocols()
          Retreives the protocols known by this comms implementation
 voidhandleMessage(fipaos.mts.iiop.sun.external.FIPA.FipaMessage msg)
          Handle incoming messages
 static voidmain(String[] args)
          Test harness for transport

Use java fipaos.comm.sunidl.SUNIDLComms /? for usage details
 static org.omg.CORBA.ObjectnsResolve(String host, int port, String url_target)
          Attempt to resolve the target at the given CosNamingService located at the
given ORB server
 voidshutdown()
          This should be invoked when the transport should be safely shutdown

Methods inherited from class fipaos.mts.ExternalMTPBase
incoming, initialise, outgoing

Constructor Detail

SUNIIOPComms

public SUNIIOPComms(String our_name, URL ns_url)
throws fipaos.mts.InitialisationException
Comms initialiser
Parameters:
our_name - The name of the Agent
ns_url - URL for the transport
Method Detail

corbaNameResolve

public static org.omg.CORBA.Object corbaNameResolve(URL name)
Attempt to resolve the given CORBANAME url

getAddresses

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

getProtocols

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

handleMessage

public void handleMessage(fipaos.mts.iiop.sun.external.FIPA.FipaMessage msg)
Handle incoming messages

main

public static void main(String[] args)
throws java.lang.Exception
Test harness for transport

Use java fipaos.comm.sunidl.SUNIDLComms /? for usage details

nsResolve

public static org.omg.CORBA.Object nsResolve(String host, int port, String url_target)
throws java.lang.Exception
Attempt to resolve the target at the given CosNamingService located at the
given ORB server

shutdown

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

Association Links

to Class java.lang.String

Transport specific protocol type

to Class java.lang.String

to Class java.lang.String

to Class java.lang.String

to Class java.util.List

URL for this transport

to Class org.omg.CORBA.ORB

Reference to the ORB

to Class org.omg.CosNaming.NamingContext

Root naming context