shaohua_project.sweep.routing
Class MessageSweepRequest

java.lang.Object
  extended by shaohua_project.sweep.routing.MessageSweepRequest
All Implemented Interfaces:
JistAPI.Timeless, Message

public class MessageSweepRequest
extends java.lang.Object
implements Message

DataP2P packet.


Field Summary
 int queryId
           
 Region region
           
 double requesterCharge
           
 
Fields inherited from interface jist.swans.misc.Message
NULL
 
Constructor Summary
MessageSweepRequest(int queryId, double requesterCharge, Region region)
           
 
Method Summary
 void getBytes(byte[] b, int offset)
          Store packet into byte array.
 int getSize()
          Return packet size or Constants.ZERO_WIRE_SIZE.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

queryId

public final int queryId

requesterCharge

public double requesterCharge

region

public Region region
Constructor Detail

MessageSweepRequest

public MessageSweepRequest(int queryId,
                           double requesterCharge,
                           Region region)
Method Detail

getSize

public int getSize()
Return packet size or Constants.ZERO_WIRE_SIZE.

Specified by:
getSize in interface Message
Returns:
packet size [in bytes]

getBytes

public void getBytes(byte[] b,
                     int offset)
Store packet into byte array.

Specified by:
getBytes in interface Message
Parameters:
b - destination byte array
offset - byte array starting offset