tachyon
Class DataServerMessage

java.lang.Object
  extended by tachyon.DataServerMessage

public class DataServerMessage
extends Object

The message type used to send data request and response for remote data.


Field Summary
static short DATA_SERVER_REQUEST_MESSAGE
           
static short DATA_SERVER_RESPONSE_MESSAGE
           
 
Method Summary
 void close()
           
static DataServerMessage createFileRequestMessage()
           
static DataServerMessage createFileRequestMessage(int fileId)
           
static DataServerMessage createFileResponseMessage(boolean toSend, int fileId)
           
 boolean finishSending()
           
 int getFileId()
           
 ByteBuffer getReadOnlyData()
           
 boolean isMessageReady()
           
 int recv(SocketChannel socketChannel)
           
 void send(SocketChannel socketChannel)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DATA_SERVER_REQUEST_MESSAGE

public static final short DATA_SERVER_REQUEST_MESSAGE
See Also:
Constant Field Values

DATA_SERVER_RESPONSE_MESSAGE

public static final short DATA_SERVER_RESPONSE_MESSAGE
See Also:
Constant Field Values
Method Detail

createFileRequestMessage

public static DataServerMessage createFileRequestMessage()

createFileRequestMessage

public static DataServerMessage createFileRequestMessage(int fileId)

createFileResponseMessage

public static DataServerMessage createFileResponseMessage(boolean toSend,
                                                          int fileId)

close

public void close()

recv

public int recv(SocketChannel socketChannel)
         throws IOException
Throws:
IOException

send

public void send(SocketChannel socketChannel)
          throws IOException
Throws:
IOException

finishSending

public boolean finishSending()

isMessageReady

public boolean isMessageReady()

getFileId

public int getFileId()

getReadOnlyData

public ByteBuffer getReadOnlyData()


Copyright © 2013. All Rights Reserved.