|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--fipaos.mts.MTPBase | +--fipaos.mts.ExternalMTPBase | +--fipaos.mts.iiop.sun.external.SUNIIOPComms
SUNIIOPComms uses jdk1.2's IDL classes to provide a FIPA99 Structured IIOP interface for Agent communications.
$Revision: 1.15 $ $Date: 2001/04/04 23:21:35 $ $Author: alantreadway $
Inner Class Summary | |
class |
SUNIIOPComms.MTSListener
Listener class for the MTS |
Fields inherited from class fipaos.mts.MTPBase |
_hap, _name, _ns_url, _shutdown, ACC_NAME |
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 | |
SUNIIOPComms(java.lang.String our_name,
URL ns_url)
Comms initialiser |
Method Summary | |
protected void |
bind()
Bind the MTP to the NS (if it exists) and perform other start-up operations |
static org.omg.CORBA.Object |
corbaNameResolve(URL name)
Attempt to resolve the given CORBANAME url |
java.util.List |
getAddresses()
Method to retreive the protocol dependant address of an object that can be used to receive messages. |
java.util.List |
getProtocols()
Retreives the protocols known by this comms implementation |
void |
handleMessage(FipaMessage msg)
Handle incoming messages |
protected java.lang.Object |
lookup(java.lang.String name)
Attempt to lookup a reference to the MTS belonging to the given Agent |
protected java.lang.Object |
lookup(URL name)
Lookup a reference to the MTS at the given URL |
static void |
main(java.lang.String[] args)
Test harness for transport Use java fipaos.comm.sunidl.SUNIDLComms /? for usage details |
static org.omg.CORBA.Object |
nsResolve(java.lang.String host,
int port,
java.lang.String url_target)
Attempt to resolve the target at the given CosNamingService located at the given ORB server |
protected void |
send(java.lang.Object target,
Envelope env,
byte[] msg)
Invoked to send the given Message to the given target |
void |
shutdown()
This should be invoked when the transport should be safely shutdown |
protected void |
unbind()
Un-bind the MTP from the NS (if it exists) |
Methods inherited from class fipaos.mts.ExternalMTPBase |
handleIncoming, incoming, initialise, outgoing |
Methods inherited from class fipaos.mts.MTPBase |
handleIncoming, handleOutgoing, shutdownMTPBase |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SUNIIOPComms(java.lang.String our_name, URL ns_url) throws InitialisationException
our_name
- The name of the Agentns_url
- URL for the transportMethod Detail |
protected void bind() throws InitialisationException
bind
in class MTPBase
protected void unbind()
unbind
in class MTPBase
protected java.lang.Object lookup(URL name) throws UnknownTargetException
lookup
in class MTPBase
protected java.lang.Object lookup(java.lang.String name) throws UnknownTargetException
lookup
in class MTPBase
public void shutdown()
shutdown
in class ExternalMTPBase
public java.util.List getAddresses()
getAddresses
in class ExternalMTPBase
public java.util.List getProtocols()
getProtocols
in class ExternalMTPBase
protected void send(java.lang.Object target, Envelope env, byte[] msg) throws UnknownTargetException, UnknownProtocolException, UnableToSendException
send
in class ExternalMTPBase
public void handleMessage(FipaMessage msg)
public static org.omg.CORBA.Object corbaNameResolve(URL name)
public static org.omg.CORBA.Object nsResolve(java.lang.String host, int port, java.lang.String url_target) throws java.lang.Exception
public static void main(java.lang.String[] args) throws java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |