Interface RemoveBroker.BrokerRemovalStateRecordProtoOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
RemoveBroker.BrokerRemovalStateRecordProto,RemoveBroker.BrokerRemovalStateRecordProto.Builder
- Enclosing class:
RemoveBroker
public static interface RemoveBroker.BrokerRemovalStateRecordProtoOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionintV1-only: when only one broker could be removed at a time.intgetBrokerIds(int index) V2+: supporting multiple-broker removalintV2+: supporting multiple-broker removalV2+: supporting multiple-broker removalgetError()exception serialized as Base64 stringcom.google.protobuf.ByteStringexception serialized as Base64 stringlongint64 lastUpdateTime = 6;the state of the broker removal operationintthe state of the broker removal operationbooleanbool shouldShutDown = 7;longint64 startTime = 5;intVersion to allow change in exception/state serialization if needed.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getVersion
int getVersion()Version to allow change in exception/state serialization if needed.
int32 version = 1;- Returns:
- The version.
-
getBrokerId
int getBrokerId()V1-only: when only one broker could be removed at a time.
int32 brokerId = 2;- Returns:
- The brokerId.
-
getBrokerIdsList
-
getBrokerIdsCount
int getBrokerIdsCount()V2+: supporting multiple-broker removal
repeated int32 brokerIds = 8;- Returns:
- The count of brokerIds.
-
getBrokerIds
int getBrokerIds(int index) V2+: supporting multiple-broker removal
repeated int32 brokerIds = 8;- Parameters:
index- The index of the element to return.- Returns:
- The brokerIds at the given index.
-
getError
-
getErrorBytes
com.google.protobuf.ByteString getErrorBytes()exception serialized as Base64 string
string error = 3;- Returns:
- The bytes for error.
-
getRemovalStateValue
int getRemovalStateValue()the state of the broker removal operation
.databalancer.RemovalState removal_state = 4;- Returns:
- The enum numeric value on the wire for removalState.
-
getRemovalState
RemoveBroker.RemovalState getRemovalState()the state of the broker removal operation
.databalancer.RemovalState removal_state = 4;- Returns:
- The removalState.
-
getStartTime
long getStartTime()int64 startTime = 5;- Returns:
- The startTime.
-
getLastUpdateTime
long getLastUpdateTime()int64 lastUpdateTime = 6;- Returns:
- The lastUpdateTime.
-
getShouldShutDown
boolean getShouldShutDown()bool shouldShutDown = 7;- Returns:
- The shouldShutDown.
-