|
Project JXTA | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface defines the API that must implement all the Transport Protocols Messangers
Method Summary | |
void |
close()
closes this TransportProtocol. |
net.jxta.endpoint.EndpointAddress |
getLocalAddress()
Returns an EndpointAddress of the local endpoint manage by the TransportProtocol |
EndpointMessanger |
getMessanger(net.jxta.endpoint.EndpointAddress dest,
java.lang.String destPeerId,
int type)
Creates and return an EndpointMessanger for sending Message's |
java.lang.String |
getProtocolName()
Returns a String containing the canonical name of this protocol, as it appears in an EndpointAddress. |
void |
init(Endpoint p)
Initialise this instance of the TransportProtocol. |
boolean |
isConnected()
Returns true if the Transport Protocol can establish connection to the remote host (like TCP). |
boolean |
isFast()
Returns true if the Transport Protocol is fast. |
boolean |
ping(net.jxta.endpoint.EndpointAddress addr)
Returns true if the target address is reachable. |
void |
propagate(net.jxta.endpoint.Message msg,
java.lang.String serviceName,
java.lang.String serviceParams,
java.lang.String prunePeer)
Propagates a Message on this TransportProtocol |
Method Detail |
public EndpointMessanger getMessanger(net.jxta.endpoint.EndpointAddress dest, java.lang.String destPeerId, int type) throws java.io.IOException
dest
- EndpointAddress of the destinationtype
- type of the messanger as defined in the class Endpointpublic void propagate(net.jxta.endpoint.Message msg, java.lang.String serviceName, java.lang.String serviceParams, java.lang.String prunePeer) throws java.io.IOException
msg
- the Message to be propagatedserviceName
- is a String containing the name of the serviceserviceParams
- is a String containing the parameters associated
to the service. The combination of serviceName and serviceParams
is the what must have been registered to the Endpoint's demux.prunePeer
- peer which should not receive the propagated messagemsg
- the Message to be propagatedpublic void close()
public void init(Endpoint p)
public java.lang.String getProtocolName()
public net.jxta.endpoint.EndpointAddress getLocalAddress()
public boolean isFast()
public boolean isConnected()
public boolean ping(net.jxta.endpoint.EndpointAddress addr)
|
Project JXTA | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |