|
Rice Pastry API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--rice.past.messaging.PASTMessage
Field Summary | |
protected rice.p2p.commonapi.Id |
_fileId
Deprecated. The fileId of the file, to be used as destination. |
protected rice.past.messaging.PASTMessageID |
_messageID
Deprecated. A key for uniquely identifying the message. |
protected int |
_messageType
Deprecated. Whether this is a request or a response. |
protected rice.p2p.commonapi.Id |
_senderId
Deprecated. The id of the sender |
static int |
REQUEST
Deprecated. |
static int |
RESPONSE
Deprecated. |
Constructor Summary | |
PASTMessage(rice.p2p.commonapi.Id source,
rice.p2p.commonapi.Id fileId)
Deprecated. Constructor |
|
PASTMessage(rice.p2p.commonapi.Id source,
rice.p2p.commonapi.Id fileId,
int messageType)
Deprecated. Constructor |
Method Summary | |
protected void |
debug(java.lang.String message)
Deprecated. Print a debug message if the PASTServiceImpl.DEBUG flag is enabled. |
rice.p2p.commonapi.Id |
getFileId()
Deprecated. Gets the fileId for this file, which is used as the destination. |
rice.past.messaging.PASTMessageID |
getID()
Deprecated. Gets this message's identifier. |
rice.p2p.commonapi.Id |
getSource()
Deprecated. Gets the source Id for this message. |
int |
getType()
Deprecated. Gets this message's type. |
abstract void |
performAction(rice.past.PASTServiceImpl service)
Deprecated. Performs this message's action after it is delivered. |
void |
setID(rice.past.messaging.PASTMessageID messageID)
Deprecated. Sets this message's identifier. |
void |
setType(int messageType)
Deprecated. Sets this message's type. |
abstract java.lang.String |
toString()
Deprecated. Force subclasses to implement toString. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int REQUEST
public static final int RESPONSE
protected rice.past.messaging.PASTMessageID _messageID
protected int _messageType
protected rice.p2p.commonapi.Id _fileId
protected rice.p2p.commonapi.Id _senderId
Constructor Detail |
public PASTMessage(rice.p2p.commonapi.Id source, rice.p2p.commonapi.Id fileId, int messageType)
source
- Id of source Pastry nodefileId
- Id of file (destination node)messageType
- whether this is a request or a responsepublic PASTMessage(rice.p2p.commonapi.Id source, rice.p2p.commonapi.Id fileId)
source
- Id of source Pastry nodefileId
- Id of file (destination node)Method Detail |
public rice.past.messaging.PASTMessageID getID()
public void setID(rice.past.messaging.PASTMessageID messageID)
messageID
- new ID of messagepublic int getType()
public void setType(int messageType)
messageType
- REQUEST or RESPONSEpublic rice.p2p.commonapi.Id getSource()
public rice.p2p.commonapi.Id getFileId()
public abstract void performAction(rice.past.PASTServiceImpl service)
service
- PASTService on which to actpublic abstract java.lang.String toString()
toString
in class java.lang.Object
protected void debug(java.lang.String message)
|
Rice Pastry API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |