Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Rice Pastry API
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## rice.pastry.socket.nat.rendezvous
Class RendezvousSocketNodeHandle

    java.lang.Object
      java.util.Observable
          rice.p2p.commonapi.NodeHandle
              rice.pastry.NodeHandle
                  rice.pastry.socket.TransportLayerNodeHandle<Identifier>
                      rice.pastry.dist.DistNodeHandle<MultiInetSocketAddress>
                          rice.pastry.socket.SocketNodeHandle
                              rice.pastry.socket.nat.rendezvous.RendezvousSocketNodeHandle

All Implemented Interfaces:
  java.io.Serializable, java.util.Observer, RendezvousContact

    public class RendezvousSocketNodeHandle

extends SocketNodeHandle
implements RendezvousContact

Maintains RendezvousInfo with the NodeHandle

Author:
  Jeff Hoye
See Also:
  Serialized Form

Field Summary
`static byte` | `CONTACT_DIRECT` Internet Routable (or proper port forwarding)
`static byte` | `CONTACT_FIREWALLED` Not Internet routable

Fields inherited from class rice.pastry.socket.SocketNodeHandle
`eaddress`

Fields inherited from class rice.pastry.dist.DistNodeHandle
`nodeId`

Fields inherited from class rice.pastry.NodeHandle
`LIVENESS_ALIVE, LIVENESS_DEAD, LIVENESS_SUSPECTED, localnode, logger`

Fields inherited from class rice.p2p.commonapi.NodeHandle
`DECLARED_DEAD, DECLARED_LIVE, PROXIMITY_CHANGED`

Method Summary
`boolean` | `canContactDirect()`
`byte` | `getContactStatus()`
`void` | `serialize(OutputBuffer buf)`
`java.lang.String` | `toString()` Returns a String representation of this DistNodeHandle.

Methods inherited from class rice.pastry.socket.SocketNodeHandle
`checkLiveness, equals, getAddress, getEpoch, getIdentifier, getInetSocketAddress, getLiveness, hashCode, isLocal, ping, proximity, receiveMessage, setLocalNode, toStringFull, update`

Methods inherited from class rice.pastry.dist.DistNodeHandle
`getNodeId`

Methods inherited from class rice.pastry.NodeHandle
`addObserver, addObserver, assertLocalNode, bootstrap, countObservers, deleteObserver, deleteObservers, getId, getLocalNode, isAlive, notifyObservers, update`

Methods inherited from class java.util.Observable
`clearChanged, hasChanged, notifyObservers, setChanged`

Methods inherited from class java.lang.Object
`clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

Field Detail

### CONTACT_DIRECT

    public static final byte CONTACT_DIRECT

  Internet Routable (or proper port forwarding)

  See Also:
    Constant Field Values

### CONTACT_FIREWALLED

    public static final byte CONTACT_FIREWALLED

  Not Internet routable

  See Also:
    Constant Field Values

Method Detail

### serialize

    public void serialize(OutputBuffer buf)
                   throws java.io.IOException

  Overrides:
    `serialize` in class `SocketNodeHandle`
  Throws:
    `java.io.IOException`

### canContactDirect

    public boolean canContactDirect()

  Specified by:
    `canContactDirect` in interface `RendezvousContact`
  Returns:
    true if an Internet routable IP; false if NATted and no port forwarding, or other type FireWall.

### getContactStatus

    public byte getContactStatus()

### toString

    public java.lang.String toString()

  Description copied from class: `SocketNodeHandle`
  Returns a String representation of this DistNodeHandle. This method is designed to be called by clients using the node handle, and is provided in order to ensure that the right node handle is being talked to.

  Overrides:
    `toString` in class `SocketNodeHandle`
  Returns:
    A String representation of the node handle.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Rice Pastry API
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2001-2005 - Rice Pastry.