Package org.apache.nifi.remote.protocol
Enum Class ResponseCode
- All Implemented Interfaces:
Serializable
,Comparable<ResponseCode>
,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescription -
Field Summary
Modifier and TypeFieldDescriptionprivate final int
private static final byte
private static final byte
private static final ResponseCode[]
private final byte[]
private final boolean
private final String
-
Constructor Summary
ModifierConstructorDescriptionprivate
ResponseCode
(int code, String description, boolean containsMessage) -
Method Summary
Modifier and TypeMethodDescriptionboolean
static ResponseCode
fromCode
(int code) static ResponseCode
fromSequence
(byte[] value) int
getCode()
byte[]
(package private) static ResponseCode
readCode
(InputStream in) toString()
static ResponseCode
Returns the enum constant of this class with the specified name.static ResponseCode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.void
void
writeResponse
(DataOutputStream out, boolean flush) void
writeResponse
(DataOutputStream out, String explanation) void
writeResponse
(DataOutputStream out, String explanation, boolean flush)
-
Enum Constant Details
-
RESERVED
-
PROPERTIES_OK
-
UNKNOWN_PROPERTY_NAME
-
ILLEGAL_PROPERTY_VALUE
-
MISSING_PROPERTY
-
CONTINUE_TRANSACTION
-
FINISH_TRANSACTION
-
CONFIRM_TRANSACTION
-
TRANSACTION_FINISHED
-
TRANSACTION_FINISHED_BUT_DESTINATION_FULL
-
CANCEL_TRANSACTION
-
BAD_CHECKSUM
-
MORE_DATA
-
NO_MORE_DATA
-
UNKNOWN_PORT
-
PORT_NOT_IN_VALID_STATE
-
PORTS_DESTINATION_FULL
-
UNAUTHORIZED
-
ABORT
-
UNRECOGNIZED_RESPONSE_CODE
-
END_OF_STREAM
-
-
Field Details
-
codeArray
-
CODE_SEQUENCE_VALUE_1
private static final byte CODE_SEQUENCE_VALUE_1- See Also:
-
CODE_SEQUENCE_VALUE_2
private static final byte CODE_SEQUENCE_VALUE_2- See Also:
-
code
private final int code -
codeSequence
private final byte[] codeSequence -
description
-
containsMessage
private final boolean containsMessage
-
-
Constructor Details
-
ResponseCode
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getCode
public int getCode() -
getCodeSequence
public byte[] getCodeSequence() -
toString
- Overrides:
toString
in classEnum<ResponseCode>
-
containsMessage
public boolean containsMessage() -
writeResponse
- Throws:
IOException
-
writeResponse
- Throws:
IOException
-
writeResponse
- Throws:
IOException
-
writeResponse
public void writeResponse(DataOutputStream out, String explanation, boolean flush) throws IOException - Throws:
IOException
-
readCode
- Throws:
IOException
ProtocolException
-
fromSequence
-
fromCode
-