public class IgfsControlResponse extends IgfsMessage
| 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 IgfsBlockLocation.
|
static int |
RES_TYPE_COL_IGFS_BLOCK_LOCATION
Response is collection of IgfsBlockLocation.
|
static int |
RES_TYPE_COL_IGFS_FILE
Response is collection of IgfsFile.
|
static int |
RES_TYPE_COL_IGFS_PATH
Response is collection of IgfsPath.
|
static int |
RES_TYPE_ERR_STREAM_ID
Response is an error containing stream ID and error message.
|
static int |
RES_TYPE_HANDSHAKE
Response is a handshake
|
static int |
RES_TYPE_IGFS_FILE
Response is IgfsFile.
|
static int |
RES_TYPE_IGFS_PATH
Response is IgfsPath.
|
static int |
RES_TYPE_IGFS_PATH_SUMMARY
Response is a path summary.
|
static int |
RES_TYPE_IGFS_STREAM_DESCRIPTOR
Response is IgfsFileInfo.
|
static int |
RES_TYPE_LONG
Response is Long.
|
static int |
RES_TYPE_MODE_RESOLVER
Response is a path summary.
|
static int |
RES_TYPE_STATUS
Response is a handshake
|
| Constructor and Description |
|---|
IgfsControlResponse() |
| Modifier and Type | Method and Description |
|---|---|
void |
error(IgniteCheckedException e) |
void |
error(long streamId,
String err) |
int |
errorCode() |
void |
files(Collection<IgfsFile> res) |
void |
handshake(IgfsHandshakeResponse res) |
boolean |
hasError() |
void |
length(int len) |
void |
locations(Collection<IgfsBlockLocation> res) |
void |
modeResolver(IgfsModeResolver res) |
void |
paths(Collection<IgfsPath> res) |
void |
readExternal(ObjectInput in)
Reads object from data input.
|
Object |
response() |
void |
response(boolean res) |
void |
response(byte[][] res) |
void |
response(IgfsFile res) |
void |
response(IgfsInputStreamDescriptor res) |
void |
response(IgfsPath res) |
void |
response(IgfsPathSummary res) |
void |
response(long res) |
void |
status(IgfsStatus 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_IGFS_FILE
public static final int RES_TYPE_IGFS_STREAM_DESCRIPTOR
public static final int RES_TYPE_IGFS_PATH
public static final int RES_TYPE_COL_IGFS_FILE
public static final int RES_TYPE_COL_IGFS_PATH
public static final int RES_TYPE_COL_IGFS_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_IGFS_PATH_SUMMARY
public static final int RES_TYPE_MODE_RESOLVER
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(IgfsInputStreamDescriptor res)
res - Response.public void response(IgfsFile res)
res - Response.public void response(IgfsPath res)
res - Response.public void response(IgfsPathSummary res)
res - Path summary response.public void files(Collection<IgfsFile> res)
res - Response.public void paths(Collection<IgfsPath> res)
res - Response.public void locations(Collection<IgfsBlockLocation> res)
res - Response.public void handshake(IgfsHandshakeResponse res)
res - Handshake message.public void status(IgfsStatus res)
res - Status response.public void modeResolver(IgfsModeResolver res)
res - Status response.public void length(int len)
len - Response length.public boolean hasError()
public static void throwError(Integer errCode, String err) throws IgniteCheckedException
errCode - Error code.err - Error.IgniteCheckedException - Based on error code.public void throwError()
throws IgniteCheckedException
IgniteCheckedException - Based on error code.public int errorCode()
public void error(IgniteCheckedException 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.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.5.0 Release Date : May 23 2018