Rice Pastry API

rice.past.messaging
Class MessageInsert

java.lang.Object
  |
  +--rice.past.messaging.PASTMessage
        |
        +--rice.past.messaging.MessageInsert
All Implemented Interfaces:
Message, java.io.Serializable

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

public class MessageInsert
extends PASTMessage

Version:
$Id: MessageInsert.java,v 1.9 2003/06/11 20:10:31 aray Exp $
Author:
Charles Reis
See Also:
Serialized Form

Field Summary
protected  java.io.Serializable _file
          Deprecated. The file to insert.
protected  boolean _success
          Deprecated. Whether the insert was successful (on a response).
 
Fields inherited from class rice.past.messaging.PASTMessage
_fileId, _messageID, _messageType, _senderId, REQUEST, RESPONSE
 
Constructor Summary
MessageInsert(rice.p2p.commonapi.Id nodeId, rice.p2p.commonapi.Id fileId, java.io.Serializable file)
          Deprecated. Builds a new request to insert a file.
 
Method Summary
 boolean getSuccess()
          Deprecated. Returns whether the insert was successful.
 void performAction(rice.past.PASTServiceImpl service)
          Deprecated. Inserts this message's file into the service.
 java.lang.String toString()
          Deprecated. Display this message.
 
Methods inherited from class rice.past.messaging.PASTMessage
debug, getFileId, getID, getSource, getType, setID, setType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_file

protected java.io.Serializable _file
Deprecated. 
The file to insert.


_success

protected boolean _success
Deprecated. 
Whether the insert was successful (on a response).

Constructor Detail

MessageInsert

public MessageInsert(rice.p2p.commonapi.Id nodeId,
                     rice.p2p.commonapi.Id fileId,
                     java.io.Serializable file)
Deprecated. 
Builds a new request to insert a file.

Parameters:
nodeId - Source Pastry node's ID
fileId - Pastry key of file
file - File to be stored
Method Detail

getSuccess

public boolean getSuccess()
Deprecated. 
Returns whether the insert was successful.

Returns:
Whether or not it was successful

performAction

public void performAction(rice.past.PASTServiceImpl service)
Deprecated. 
Inserts this message's file into the service.

Specified by:
performAction in class PASTMessage
Parameters:
service - PASTService on which to act

toString

public java.lang.String toString()
Deprecated. 
Display this message.

Specified by:
toString in class PASTMessage
Returns:
The string representing this message

Rice Pastry API

Copyright © 2001 - Rice Pastry.


Imprint-Dataprotection