Enum SegmentCompletionProtocol.ControllerResponseStatus
- java.lang.Object
-
- java.lang.Enum<SegmentCompletionProtocol.ControllerResponseStatus>
-
- org.apache.pinot.common.protocols.SegmentCompletionProtocol.ControllerResponseStatus
-
- All Implemented Interfaces:
Serializable,Comparable<SegmentCompletionProtocol.ControllerResponseStatus>
- Enclosing class:
- SegmentCompletionProtocol
public static enum SegmentCompletionProtocol.ControllerResponseStatus extends Enum<SegmentCompletionProtocol.ControllerResponseStatus>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CATCH_UPServer should consume stream events to catch up to the offset contained in this responseCOMMITServer should send back a SegmentCommitRequest after processing this responseCOMMIT_CONTINUENever sent by the controller, but locally used by the controller during the segmentCommit() processingCOMMIT_SUCCESSCommit succeeded, behave exactly like KEEPDISCARDServer should discard the rows in memoryFAILEDCommit failed.HOLDServer should send SegmentConsumedRequest after waiting for less than MAX_HOLD_TIME_MSKEEPServer should build a segment out of the rows in memory, and replace in-memory rows with the segment builtNOT_LEADERServer should locate the current controller leader and re-send the messageNOT_SENTNever sent by the controller, but locally used by server when sending a request failsPROCESSEDSent by controller as an acknowledgement to the SegmentStoppedConsuming messageUPLOAD_SUCCESSSent by controller as an acknowledgement during split commit for successful segment upload
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SegmentCompletionProtocol.ControllerResponseStatusvalueOf(String name)Returns the enum constant of this type with the specified name.static SegmentCompletionProtocol.ControllerResponseStatus[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NOT_SENT
public static final SegmentCompletionProtocol.ControllerResponseStatus NOT_SENT
Never sent by the controller, but locally used by server when sending a request fails
-
COMMIT
public static final SegmentCompletionProtocol.ControllerResponseStatus COMMIT
Server should send back a SegmentCommitRequest after processing this response
-
HOLD
public static final SegmentCompletionProtocol.ControllerResponseStatus HOLD
Server should send SegmentConsumedRequest after waiting for less than MAX_HOLD_TIME_MS
-
CATCH_UP
public static final SegmentCompletionProtocol.ControllerResponseStatus CATCH_UP
Server should consume stream events to catch up to the offset contained in this response
-
DISCARD
public static final SegmentCompletionProtocol.ControllerResponseStatus DISCARD
Server should discard the rows in memory
-
KEEP
public static final SegmentCompletionProtocol.ControllerResponseStatus KEEP
Server should build a segment out of the rows in memory, and replace in-memory rows with the segment built
-
NOT_LEADER
public static final SegmentCompletionProtocol.ControllerResponseStatus NOT_LEADER
Server should locate the current controller leader and re-send the message
-
FAILED
public static final SegmentCompletionProtocol.ControllerResponseStatus FAILED
Commit failed. Server should go back to HOLDING state and re-start with the SegmentConsumed message
-
COMMIT_SUCCESS
public static final SegmentCompletionProtocol.ControllerResponseStatus COMMIT_SUCCESS
Commit succeeded, behave exactly like KEEP
-
COMMIT_CONTINUE
public static final SegmentCompletionProtocol.ControllerResponseStatus COMMIT_CONTINUE
Never sent by the controller, but locally used by the controller during the segmentCommit() processing
-
PROCESSED
public static final SegmentCompletionProtocol.ControllerResponseStatus PROCESSED
Sent by controller as an acknowledgement to the SegmentStoppedConsuming message
-
UPLOAD_SUCCESS
public static final SegmentCompletionProtocol.ControllerResponseStatus UPLOAD_SUCCESS
Sent by controller as an acknowledgement during split commit for successful segment upload
-
-
Method Detail
-
values
public static SegmentCompletionProtocol.ControllerResponseStatus[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SegmentCompletionProtocol.ControllerResponseStatus c : SegmentCompletionProtocol.ControllerResponseStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SegmentCompletionProtocol.ControllerResponseStatus valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
-