Package io.dingodb.common
Class Common.StoreMetrics
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.dingodb.common.Common.StoreMetrics
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Common.StoreMetricsOrBuilder,Serializable
- Enclosing class:
- Common
public static final class Common.StoreMetrics
extends com.google.protobuf.GeneratedMessageV3
implements Common.StoreMetricsOrBuilder
StoreMetricsProtobuf type
dingodb.pb.common.StoreMetrics- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsRegionMetricsMap(long key) the key of the map is region_id, the value is RegionMetrics this map contains all region's metrics include follower on this storebooleanstatic Common.StoreMetricsstatic final com.google.protobuf.Descriptors.DescriptorlonggetId()store idbooleantrue: region_metrics_map only contain partial region metrics, false: contain full region metricsbooleanallow update epoch version(split/merge), leader change not allow update epoch version.com.google.protobuf.Parser<Common.StoreMetrics>Deprecated.intthe key of the map is region_id, the value is RegionMetrics this map contains all region's metrics include follower on this storethe key of the map is region_id, the value is RegionMetrics this map contains all region's metrics include follower on this storegetRegionMetricsMapOrDefault(long key, Common.RegionMetrics defaultValue) the key of the map is region_id, the value is RegionMetrics this map contains all region's metrics include follower on this storegetRegionMetricsMapOrThrow(long key) the key of the map is region_id, the value is RegionMetrics this map contains all region's metrics include follower on this storeintstore own metricsstore own metricsinthashCode()booleanstore own metricsprotected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) final booleanstatic Common.StoreMetrics.Builderstatic Common.StoreMetrics.BuildernewBuilder(Common.StoreMetrics prototype) protected Common.StoreMetrics.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static Common.StoreMetricsparseDelimitedFrom(InputStream input) static Common.StoreMetricsparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Common.StoreMetricsparseFrom(byte[] data) static Common.StoreMetricsparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Common.StoreMetricsparseFrom(com.google.protobuf.ByteString data) static Common.StoreMetricsparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Common.StoreMetricsparseFrom(com.google.protobuf.CodedInputStream input) static Common.StoreMetricsparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Common.StoreMetricsparseFrom(InputStream input) static Common.StoreMetricsparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Common.StoreMetricsparseFrom(ByteBuffer data) static Common.StoreMetricsparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Common.StoreMetrics>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
ID_FIELD_NUMBER
public static final int ID_FIELD_NUMBER- See Also:
-
STORE_OWN_METRICS_FIELD_NUMBER
public static final int STORE_OWN_METRICS_FIELD_NUMBER- See Also:
-
REGION_METRICS_MAP_FIELD_NUMBER
public static final int REGION_METRICS_MAP_FIELD_NUMBER- See Also:
-
IS_PARTIAL_REGION_METRICS_FIELD_NUMBER
public static final int IS_PARTIAL_REGION_METRICS_FIELD_NUMBER- See Also:
-
IS_UPDATE_EPOCH_VERSION_FIELD_NUMBER
public static final int IS_UPDATE_EPOCH_VERSION_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessageV3
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getId
public long getId()store id
int64 id = 1;- Specified by:
getIdin interfaceCommon.StoreMetricsOrBuilder- Returns:
- The id.
-
hasStoreOwnMetrics
public boolean hasStoreOwnMetrics()store own metrics
.dingodb.pb.common.StoreOwnMetrics store_own_metrics = 10;- Specified by:
hasStoreOwnMetricsin interfaceCommon.StoreMetricsOrBuilder- Returns:
- Whether the storeOwnMetrics field is set.
-
getStoreOwnMetrics
store own metrics
.dingodb.pb.common.StoreOwnMetrics store_own_metrics = 10;- Specified by:
getStoreOwnMetricsin interfaceCommon.StoreMetricsOrBuilder- Returns:
- The storeOwnMetrics.
-
getStoreOwnMetricsOrBuilder
store own metrics
.dingodb.pb.common.StoreOwnMetrics store_own_metrics = 10;- Specified by:
getStoreOwnMetricsOrBuilderin interfaceCommon.StoreMetricsOrBuilder
-
getRegionMetricsMapCount
public int getRegionMetricsMapCount()Description copied from interface:Common.StoreMetricsOrBuilderthe key of the map is region_id, the value is RegionMetrics this map contains all region's metrics include follower on this store
map<int64, .dingodb.pb.common.RegionMetrics> region_metrics_map = 40;- Specified by:
getRegionMetricsMapCountin interfaceCommon.StoreMetricsOrBuilder
-
containsRegionMetricsMap
public boolean containsRegionMetricsMap(long key) the key of the map is region_id, the value is RegionMetrics this map contains all region's metrics include follower on this store
map<int64, .dingodb.pb.common.RegionMetrics> region_metrics_map = 40;- Specified by:
containsRegionMetricsMapin interfaceCommon.StoreMetricsOrBuilder
-
getRegionMetricsMap
Deprecated.UsegetRegionMetricsMapMap()instead.- Specified by:
getRegionMetricsMapin interfaceCommon.StoreMetricsOrBuilder
-
getRegionMetricsMapMap
the key of the map is region_id, the value is RegionMetrics this map contains all region's metrics include follower on this store
map<int64, .dingodb.pb.common.RegionMetrics> region_metrics_map = 40;- Specified by:
getRegionMetricsMapMapin interfaceCommon.StoreMetricsOrBuilder
-
getRegionMetricsMapOrDefault
public Common.RegionMetrics getRegionMetricsMapOrDefault(long key, Common.RegionMetrics defaultValue) the key of the map is region_id, the value is RegionMetrics this map contains all region's metrics include follower on this store
map<int64, .dingodb.pb.common.RegionMetrics> region_metrics_map = 40;- Specified by:
getRegionMetricsMapOrDefaultin interfaceCommon.StoreMetricsOrBuilder
-
getRegionMetricsMapOrThrow
the key of the map is region_id, the value is RegionMetrics this map contains all region's metrics include follower on this store
map<int64, .dingodb.pb.common.RegionMetrics> region_metrics_map = 40;- Specified by:
getRegionMetricsMapOrThrowin interfaceCommon.StoreMetricsOrBuilder
-
getIsPartialRegionMetrics
public boolean getIsPartialRegionMetrics()true: region_metrics_map only contain partial region metrics, false: contain full region metrics
bool is_partial_region_metrics = 41;- Specified by:
getIsPartialRegionMetricsin interfaceCommon.StoreMetricsOrBuilder- Returns:
- The isPartialRegionMetrics.
-
getIsUpdateEpochVersion
public boolean getIsUpdateEpochVersion()allow update epoch version(split/merge), leader change not allow update epoch version.
bool is_update_epoch_version = 42;- Specified by:
getIsUpdateEpochVersionin interfaceCommon.StoreMetricsOrBuilder- Returns:
- The isUpdateEpochVersion.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Common.StoreMetrics parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Common.StoreMetrics parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Common.StoreMetrics parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Common.StoreMetrics parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Common.StoreMetrics parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Common.StoreMetrics parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Common.StoreMetrics parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Common.StoreMetrics parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static Common.StoreMetrics parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static Common.StoreMetrics parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Common.StoreMetrics.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-