|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrice.past.messaging.PASTMessage
Field Summary | |
protected Id |
_fileId
Deprecated. The fileId of the file, to be used as destination. |
protected PASTMessageID |
_messageID
Deprecated. A key for uniquely identifying the message. |
protected int |
_messageType
Deprecated. Whether this is a request or a response. |
protected Id |
_senderId
Deprecated. The id of the sender |
static int |
REQUEST
Deprecated. |
static int |
RESPONSE
Deprecated. |
Constructor Summary | |
PASTMessage(Id source,
Id fileId)
Deprecated. Constructor |
|
PASTMessage(Id source,
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. |
Id |
getFileId()
Deprecated. Gets the fileId for this file, which is used as the destination. |
PASTMessageID |
getID()
Deprecated. Gets this message's identifier. |
Id |
getSource()
Deprecated. Gets the source Id for this message. |
int |
getType()
Deprecated. Gets this message's type. |
abstract void |
performAction(PASTServiceImpl service)
Deprecated. Performs this message's action after it is delivered. |
void |
setID(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 PASTMessageID _messageID
protected int _messageType
protected Id _fileId
protected Id _senderId
Constructor Detail |
public PASTMessage(Id source, 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(Id source, Id fileId)
source
- Id of source Pastry nodefileId
- Id of file (destination node)Method Detail |
public PASTMessageID getID()
public void setID(PASTMessageID messageID)
messageID
- new ID of messagepublic int getType()
public void setType(int messageType)
messageType
- REQUEST or RESPONSEpublic Id getSource()
public Id getFileId()
public abstract void performAction(PASTServiceImpl service)
service
- PASTService on which to actpublic abstract java.lang.String toString()
protected void debug(java.lang.String message)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |