public class DistAlgRequestMessage extends Message
DistributedAlgorithm
.
The message contains the operation to process by the distributed algorithm.messageID, navigationPath
Constructor and Description |
---|
DistAlgRequestMessage(AbstractOperation operation)
Creates a new instance of DistAlgRequestMessage for the given operation.
|
Modifier and Type | Method and Description |
---|---|
DistAlgRequestMessage |
clone()
Returns a clone of this message.
|
AbstractOperation |
getOperation()
Returns the operation processed by the algorithm.
|
java.lang.String |
toString()
Returns a string representation of this message.
|
deregisterOperStats, equals, getDestination, getMessageID, getNavigationPathLength, getOriginalSender, getPathElements, getSender, getSenderList, hashCode, registerBoundStat, registerBoundStat, setNavigationPathStatistics
public DistAlgRequestMessage(AbstractOperation operation)
operation
- the operation processed by the algorithmpublic AbstractOperation getOperation()
public DistAlgRequestMessage clone() throws java.lang.CloneNotSupportedException
Message
This method must be overridden whenever not-immutable attributes are added to subclasses. The CloneNotSupportedException is never thrown by this class, but might not be true for its subclasses.
WARNING: The navigation path of this message is not cloned, it rather holds the same reference for all the clones! Therefore, adding a path element to one message adds it to all of them. This is a correct behavior (used by forwarding).