public class GridGgfsControlResponse extends GridGgfsMessage
| Modifier and Type | Field and Description |
|---|---|
static int |
RES_HEADER_SIZE
Message header size.
|
static int |
RES_TYPE_BOOLEAN
Response is boolean.
|
static int |
RES_TYPE_BYTE_ARRAY
Response is collection of GridGgfsBlockLocation.
|
static int |
RES_TYPE_COL_GGFS_BLOCK_LOCATION
Response is collection of GridGgfsBlockLocation.
|
static int |
RES_TYPE_COL_GGFS_FILE
Response is collection of GridGgfsFile.
|
static int |
RES_TYPE_COL_GGFS_PATH
Response is collection of GridGgfsPath.
|
static int |
RES_TYPE_ERR_STREAM_ID
Response is an error containing stream ID and error message.
|
static int |
RES_TYPE_GGFS_FILE
Response is GridGgfsFile.
|
static int |
RES_TYPE_GGFS_PATH
Response is GridGgfsPath.
|
static int |
RES_TYPE_GGFS_PATH_SUMMARY
Response is a path summary.
|
static int |
RES_TYPE_GGFS_STREAM_DESCRIPTOR
Response is GridGgfsFileInfo.
|
static int |
RES_TYPE_HANDSHAKE
Response is a handshake
|
static int |
RES_TYPE_LONG
Response is Long.
|
static int |
RES_TYPE_STATUS
Response is a handshake
|
| Constructor and Description |
|---|
GridGgfsControlResponse() |
| Modifier and Type | Method and Description |
|---|---|
void |
error(org.gridgain.grid.GridException e) |
void |
error(long streamId,
String err) |
int |
errorCode() |
void |
files(Collection<org.gridgain.grid.ggfs.GridGgfsFile> res) |
void |
handshake(GridGgfsHandshakeResponse res) |
boolean |
hasError() |
void |
length(int len) |
void |
locations(Collection<org.gridgain.grid.ggfs.GridGgfsBlockLocation> res) |
void |
paths(Collection<org.gridgain.grid.ggfs.GridGgfsPath> res) |
void |
readExternal(ObjectInput in)
Reads object from data input.
|
Object |
response() |
void |
response(boolean res) |
void |
response(byte[][] res) |
void |
response(org.gridgain.grid.ggfs.GridGgfsFile res) |
void |
response(GridGgfsInputStreamDescriptor res) |
void |
response(org.gridgain.grid.ggfs.GridGgfsPath res) |
void |
response(org.gridgain.grid.ggfs.GridGgfsPathSummary res) |
void |
response(long res) |
void |
status(GridGgfsStatus res) |
void |
throwError() |
static void |
throwError(Integer errCode,
String err) |
String |
toString() |
void |
writeExternal(ObjectOutput out)
Writes object to data output.
|
command, commandpublic static final int RES_TYPE_BOOLEAN
public static final int RES_TYPE_LONG
public static final int RES_TYPE_GGFS_FILE
public static final int RES_TYPE_GGFS_STREAM_DESCRIPTOR
public static final int RES_TYPE_GGFS_PATH
public static final int RES_TYPE_COL_GGFS_FILE
public static final int RES_TYPE_COL_GGFS_PATH
public static final int RES_TYPE_COL_GGFS_BLOCK_LOCATION
public static final int RES_TYPE_BYTE_ARRAY
public static final int RES_TYPE_ERR_STREAM_ID
public static final int RES_TYPE_HANDSHAKE
public static final int RES_TYPE_STATUS
public static final int RES_TYPE_GGFS_PATH_SUMMARY
public static final int RES_HEADER_SIZE
public Object response()
public void response(boolean res)
res - Response.public void response(long res)
res - Response.public void response(byte[][] res)
res - Response.public void response(GridGgfsInputStreamDescriptor res)
res - Response.public void response(org.gridgain.grid.ggfs.GridGgfsFile res)
res - Response.public void response(org.gridgain.grid.ggfs.GridGgfsPath res)
res - Response.public void response(org.gridgain.grid.ggfs.GridGgfsPathSummary res)
res - Path summary response.public void files(Collection<org.gridgain.grid.ggfs.GridGgfsFile> res)
res - Response.public void paths(Collection<org.gridgain.grid.ggfs.GridGgfsPath> res)
res - Response.public void locations(Collection<org.gridgain.grid.ggfs.GridGgfsBlockLocation> res)
res - Response.public void handshake(GridGgfsHandshakeResponse res)
res - Handshake message.public void status(GridGgfsStatus res)
res - Status response.public void length(int len)
len - Response length.public boolean hasError()
public static void throwError(Integer errCode, String err) throws org.gridgain.grid.GridException
errCode - Error code.err - Error.org.gridgain.grid.GridException - Based on error code.public void throwError()
throws org.gridgain.grid.GridException
org.gridgain.grid.GridException - Based on error code.public int errorCode()
public void error(org.gridgain.grid.GridException e)
e - Error if occurred.public void error(long streamId,
String err)
streamId - Stream ID.err - Error message if occurred.public void writeExternal(ObjectOutput out) throws IOException
out - Data output.IOException - If error occurred.public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
in - Data input.IOException - If read failed.ClassNotFoundException - If could not find class.Copyright © 2014. All rights reserved.