tachyon
Class DataServerMessage
java.lang.Object
tachyon.DataServerMessage
public class DataServerMessage
- extends Object
The message type used to send data request and response for remote data.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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.