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
 StoreMetrics
 
Protobuf type dingodb.pb.common.StoreMetrics
See Also:
  • 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

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessageV3
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
    • getId

      public long getId()
       store id
       
      int64 id = 1;
      Specified by:
      getId in interface Common.StoreMetricsOrBuilder
      Returns:
      The id.
    • hasStoreOwnMetrics

      public boolean hasStoreOwnMetrics()
       store own metrics
       
      .dingodb.pb.common.StoreOwnMetrics store_own_metrics = 10;
      Specified by:
      hasStoreOwnMetrics in interface Common.StoreMetricsOrBuilder
      Returns:
      Whether the storeOwnMetrics field is set.
    • getStoreOwnMetrics

      public Common.StoreOwnMetrics getStoreOwnMetrics()
       store own metrics
       
      .dingodb.pb.common.StoreOwnMetrics store_own_metrics = 10;
      Specified by:
      getStoreOwnMetrics in interface Common.StoreMetricsOrBuilder
      Returns:
      The storeOwnMetrics.
    • getStoreOwnMetricsOrBuilder

      public Common.StoreOwnMetricsOrBuilder getStoreOwnMetricsOrBuilder()
       store own metrics
       
      .dingodb.pb.common.StoreOwnMetrics store_own_metrics = 10;
      Specified by:
      getStoreOwnMetricsOrBuilder in interface Common.StoreMetricsOrBuilder
    • getRegionMetricsMapCount

      public int getRegionMetricsMapCount()
      Description copied from interface: Common.StoreMetricsOrBuilder
       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:
      getRegionMetricsMapCount in interface Common.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:
      containsRegionMetricsMap in interface Common.StoreMetricsOrBuilder
    • getRegionMetricsMap

      @Deprecated public Map<Long,Common.RegionMetrics> getRegionMetricsMap()
      Deprecated.
      Specified by:
      getRegionMetricsMap in interface Common.StoreMetricsOrBuilder
    • getRegionMetricsMapMap

      public Map<Long,Common.RegionMetrics> 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:
      getRegionMetricsMapMap in interface Common.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:
      getRegionMetricsMapOrDefault in interface Common.StoreMetricsOrBuilder
    • getRegionMetricsMapOrThrow

      public Common.RegionMetrics getRegionMetricsMapOrThrow(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:
      getRegionMetricsMapOrThrow in interface Common.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:
      getIsPartialRegionMetrics in interface Common.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:
      getIsUpdateEpochVersion in interface Common.StoreMetricsOrBuilder
      Returns:
      The isUpdateEpochVersion.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.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

      public static Common.StoreMetrics parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Common.StoreMetrics parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Common.StoreMetrics parseDelimitedFrom(InputStream input) throws IOException
      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

      public Common.StoreMetrics.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static Common.StoreMetrics.Builder newBuilder()
    • newBuilder

      public static Common.StoreMetrics.Builder newBuilder(Common.StoreMetrics prototype)
    • toBuilder

      public Common.StoreMetrics.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected Common.StoreMetrics.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static Common.StoreMetrics getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Common.StoreMetrics> parser()
    • getParserForType

      public com.google.protobuf.Parser<Common.StoreMetrics> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

      public Common.StoreMetrics getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder