|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eodisp.remote.jeri.jxta.JxtaEndpoint
public final class JxtaEndpoint
An implementation of the Endpoint abstraction that uses JXTA sockets
(instances of JxtaSocket) for the underlying
communication mechanism.
Most of the implementation was copied from the the
TcpEndpoint class.
All TcpEndpoint instances in the same JVM use the same peer
and peer group advertisement. This information is statically received from
JxtaNetwork.
JxtaEndpoint uses the Jini(TM) extensible remote invocation
(Jini ERI) multiplexing protocol to map incoming requests to socket
connections.
JxtaServerEndpoint,
Serialized Form| Method Summary | |
|---|---|
boolean |
checkTrustEquivalence(java.lang.Object obj)
Returns this.equals(obj). |
boolean |
equals(java.lang.Object obj)
Compares the specified object with this JxtaEndpoint for
equality. |
static JxtaEndpoint |
getInstance(net.jxta.peer.PeerID peerID)
Returns a JxtaEndpoint instance for the given peer id. |
int |
hashCode()
Returns the hash code value for this JxtaEndpoint. |
net.jini.jeri.OutboundRequestIterator |
newRequest(net.jini.core.constraint.InvocationConstraints constraints)
|
java.lang.String |
toString()
Returns a string representation of this JxtaEndpoint. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static JxtaEndpoint getInstance(net.jxta.peer.PeerID peerID)
JxtaEndpoint instance for the given peer id.
peerID - the peer id for the endpoint to connect to.
JxtaEndpoint instancepublic net.jini.jeri.OutboundRequestIterator newRequest(net.jini.core.constraint.InvocationConstraints constraints)
The returned OutboundRequestIterator's next method behaves as follows:
Initiates an attempt to communicate the request to this remote endpoint.When the implementation needs to connect a
Socketit connects to it by using this endpoint's peer id and the peer group and pipe advertisements given byJxtaNetwork.getJeriPeerGroup()andJxtaNetwork.getJeriPipeAdvertisement().Throws
NoSuchElementExceptionif this iterator does not support making another attempt to communicate the request (that is, ifhasNextwould returnfalse).Throws
IOExceptionif an I/O exception occurs while performing this operation, such as if a connection attempt timed out or was refused.
newRequest in interface net.jini.jeri.Endpointjava.lang.NullPointerExceptionpublic int hashCode()
JxtaEndpoint.
hashCode in class java.lang.ObjectJxtaEndpointpublic boolean equals(java.lang.Object obj)
JxtaEndpoint for
equality.
This method returns true if and only if
JxtaEndpoint,
equals in class java.lang.Objectobj - the object to compare with
true if obj is equivalent to this
object; false otherwisepublic boolean checkTrustEquivalence(java.lang.Object obj)
this.equals(obj).
checkTrustEquivalence in interface net.jini.security.proxytrust.TrustEquivalencethis.equals(obj)public java.lang.String toString()
JxtaEndpoint.
toString in class java.lang.ObjectJxtaEndpoint
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||