Rice Pastry API

rice.past
Interface PASTService

All Known Implementing Classes:
PASTServiceImpl

Deprecated. This version of PAST has been deprecated - please use the version located in the rice.p2p.past package.

public interface PASTService

Version:
$Id: PASTService.java,v 1.12 2003/06/08 05:30:49 amislove Exp $
Author:
Alan Mislove, Charles Reis

Method Summary
 void delete(rice.p2p.commonapi.Id id, rice.Continuation command)
          Deprecated. Reclaims the storage used by the object with the given ID.
 void exists(rice.p2p.commonapi.Id id, rice.Continuation command)
          Deprecated. Determines whether an object is currently stored at the given ID.
 void insert(rice.p2p.commonapi.Id id, java.io.Serializable obj, rice.Continuation command)
          Deprecated. Inserts an object with the given ID into distributed storage.
 void lookup(rice.p2p.commonapi.Id id, rice.Continuation command)
          Deprecated. Retrieves the object and all associated updates with the given ID.
 

Method Detail

insert

public void insert(rice.p2p.commonapi.Id id,
                   java.io.Serializable obj,
                   rice.Continuation command)
Deprecated. 
Inserts an object with the given ID into distributed storage. Asynchronously returns a boolean as the result to the provided Continuation, indicating whether the insert was successful.

Parameters:
id - Pastry key identifying the object to be stored
obj - Persistable object to be stored
command - Command to be performed when the result is received

lookup

public void lookup(rice.p2p.commonapi.Id id,
                   rice.Continuation command)
Deprecated. 
Retrieves the object and all associated updates with the given ID. Asynchronously returns a StorageObject as the result to the provided Continuation.

Parameters:
id - Pastry key of original object
command - Command to be performed when the result is received

exists

public void exists(rice.p2p.commonapi.Id id,
                   rice.Continuation command)
Deprecated. 
Determines whether an object is currently stored at the given ID. Asynchronously returns a boolean as the result to the provided Continuation, indicating whether the object exists.

Parameters:
id - Pastry key of original object
command - Command to be performed when the result is received

delete

public void delete(rice.p2p.commonapi.Id id,
                   rice.Continuation command)
Deprecated. 
Reclaims the storage used by the object with the given ID. Asynchronously returns a boolean as the result to the provided Continuation, indicating whether the delete was successful.

Parameters:
id - Pastry key of original object
command - Command to be performed when the result is received

Rice Pastry API

Copyright © 2001 - Rice Pastry.


Imprint-Dataprotection