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.p2p.past
Class ContentHashPastContentHandle

    java.lang.Object
      rice.p2p.past.ContentHashPastContentHandle

All Implemented Interfaces:
  java.io.Serializable, PastContentHandle, RawPastContentHandle

    public class ContentHashPastContentHandle

extends java.lang.Object
implements RawPastContentHandle

Version:
  $Id: ContentHashPastContentHandle.java 3274 2006-05-15 16:17:47Z jeffh $
Author:
  Peter Druschel
See Also:
  Serialized Form

Field Summary
`static short` | `TYPE` DESCRIBE THE FIELD

Constructor Summary
`ContentHashPastContentHandle(InputBuffer buf, Endpoint endpoint)` Constructor for ContentHashPastContentHandle.
`ContentHashPastContentHandle(NodeHandle nh, Id id)` Constructor

Method Summary
`Id` | `getId()` Returns the id of the PastContent object associated with this handle
`NodeHandle` | `getNodeHandle()` Returns the NodeHandle of the Past node on which the object associated with this handle is stored
`short` | `getType()` Gets the Type attribute of the ContentHashPastContentHandle object
`void` | `serialize(OutputBuffer buf)` DESCRIBE THE METHOD

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

Field Detail

### TYPE

    public static final short TYPE

  DESCRIBE THE FIELD

  See Also:
    Constant Field Values

Constructor Detail

### ContentHashPastContentHandle

    public ContentHashPastContentHandle(NodeHandle nh,
                                        Id id)

  Constructor

  Parameters:
    `nh` - The handle of the node which holds the object
    `id` - key identifying the object to be inserted

### ContentHashPastContentHandle

    public ContentHashPastContentHandle(InputBuffer buf,
                                        Endpoint endpoint)
                                 throws java.io.IOException

  Constructor for ContentHashPastContentHandle.

  Parameters:
    `buf` - DESCRIBE THE PARAMETER
    `endpoint` - DESCRIBE THE PARAMETER
  Throws:
    `java.io.IOException` - DESCRIBE THE EXCEPTION

Method Detail

### getId

    public Id getId()

  Returns the id of the PastContent object associated with this handle

  Specified by:
    `getId` in interface `PastContentHandle`
  Returns:
    the id

### getNodeHandle

    public NodeHandle getNodeHandle()

  Returns the NodeHandle of the Past node on which the object associated with this handle is stored

  Specified by:
    `getNodeHandle` in interface `PastContentHandle`
  Returns:
    the id

### getType

    public short getType()

  Gets the Type attribute of the ContentHashPastContentHandle object

  Specified by:
    `getType` in interface `RawPastContentHandle`
  Returns:
    The Type value

### serialize

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

  DESCRIBE THE METHOD

  Specified by:
    `serialize` in interface `RawPastContentHandle`
  Parameters:
    `buf` - DESCRIBE THE PARAMETER
  Throws:
    `java.io.IOException` - DESCRIBE THE EXCEPTION

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.