Class ServerMetricsSnapshot

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.soulfiremc.grpc.generated.ServerMetricsSnapshot
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, ServerMetricsSnapshotOrBuilder, Serializable

@Generated public final class ServerMetricsSnapshot extends com.google.protobuf.GeneratedMessage implements ServerMetricsSnapshotOrBuilder
A single server-level system metrics data point sampled at a fixed interval.
Protobuf type soulfire.v1.ServerMetricsSnapshot
See Also:
  • Field Details

    • TIMESTAMP_FIELD_NUMBER

      public static final int TIMESTAMP_FIELD_NUMBER
      See Also:
    • PROCESS_CPU_LOAD_FIELD_NUMBER

      public static final int PROCESS_CPU_LOAD_FIELD_NUMBER
      See Also:
    • SYSTEM_CPU_LOAD_FIELD_NUMBER

      public static final int SYSTEM_CPU_LOAD_FIELD_NUMBER
      See Also:
    • HEAP_USED_BYTES_FIELD_NUMBER

      public static final int HEAP_USED_BYTES_FIELD_NUMBER
      See Also:
    • HEAP_COMMITTED_BYTES_FIELD_NUMBER

      public static final int HEAP_COMMITTED_BYTES_FIELD_NUMBER
      See Also:
    • HEAP_MAX_BYTES_FIELD_NUMBER

      public static final int HEAP_MAX_BYTES_FIELD_NUMBER
      See Also:
    • NON_HEAP_USED_BYTES_FIELD_NUMBER

      public static final int NON_HEAP_USED_BYTES_FIELD_NUMBER
      See Also:
    • THREAD_COUNT_FIELD_NUMBER

      public static final int THREAD_COUNT_FIELD_NUMBER
      See Also:
    • DAEMON_THREAD_COUNT_FIELD_NUMBER

      public static final int DAEMON_THREAD_COUNT_FIELD_NUMBER
      See Also:
    • GC_COLLECTION_COUNT_FIELD_NUMBER

      public static final int GC_COLLECTION_COUNT_FIELD_NUMBER
      See Also:
    • GC_COLLECTION_TIME_MS_FIELD_NUMBER

      public static final int GC_COLLECTION_TIME_MS_FIELD_NUMBER
      See Also:
    • UPTIME_MS_FIELD_NUMBER

      public static final int UPTIME_MS_FIELD_NUMBER
      See Also:
    • AVAILABLE_PROCESSORS_FIELD_NUMBER

      public static final int AVAILABLE_PROCESSORS_FIELD_NUMBER
      See Also:
    • TOTAL_BOTS_ONLINE_FIELD_NUMBER

      public static final int TOTAL_BOTS_ONLINE_FIELD_NUMBER
      See Also:
    • TOTAL_BOTS_TOTAL_FIELD_NUMBER

      public static final int TOTAL_BOTS_TOTAL_FIELD_NUMBER
      See Also:
    • ACTIVE_INSTANCES_FIELD_NUMBER

      public static final int ACTIVE_INSTANCES_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

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

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • hasTimestamp

      public boolean hasTimestamp()
      When this snapshot was taken.
      
      .google.protobuf.Timestamp timestamp = 1;
      Specified by:
      hasTimestamp in interface ServerMetricsSnapshotOrBuilder
      Returns:
      Whether the timestamp field is set.
    • getTimestamp

      public com.google.protobuf.Timestamp getTimestamp()
      When this snapshot was taken.
      
      .google.protobuf.Timestamp timestamp = 1;
      Specified by:
      getTimestamp in interface ServerMetricsSnapshotOrBuilder
      Returns:
      The timestamp.
    • getTimestampOrBuilder

      public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder()
      When this snapshot was taken.
      
      .google.protobuf.Timestamp timestamp = 1;
      Specified by:
      getTimestampOrBuilder in interface ServerMetricsSnapshotOrBuilder
    • getProcessCpuLoad

      public double getProcessCpuLoad()
      JVM process CPU load (0.0 to 1.0, or -1.0 if unavailable).
      
      double process_cpu_load = 2;
      Specified by:
      getProcessCpuLoad in interface ServerMetricsSnapshotOrBuilder
      Returns:
      The processCpuLoad.
    • getSystemCpuLoad

      public double getSystemCpuLoad()
      System-wide CPU load (0.0 to 1.0, or -1.0 if unavailable).
      
      double system_cpu_load = 3;
      Specified by:
      getSystemCpuLoad in interface ServerMetricsSnapshotOrBuilder
      Returns:
      The systemCpuLoad.
    • getHeapUsedBytes

      public long getHeapUsedBytes()
      Heap memory currently used in bytes.
      
      uint64 heap_used_bytes = 4;
      Specified by:
      getHeapUsedBytes in interface ServerMetricsSnapshotOrBuilder
      Returns:
      The heapUsedBytes.
    • getHeapCommittedBytes

      public long getHeapCommittedBytes()
      Heap memory committed (reserved by JVM) in bytes.
      
      uint64 heap_committed_bytes = 5;
      Specified by:
      getHeapCommittedBytes in interface ServerMetricsSnapshotOrBuilder
      Returns:
      The heapCommittedBytes.
    • getHeapMaxBytes

      public long getHeapMaxBytes()
      Maximum heap memory in bytes (-1 if undefined).
      
      int64 heap_max_bytes = 6;
      Specified by:
      getHeapMaxBytes in interface ServerMetricsSnapshotOrBuilder
      Returns:
      The heapMaxBytes.
    • getNonHeapUsedBytes

      public long getNonHeapUsedBytes()
      Non-heap memory currently used in bytes.
      
      uint64 non_heap_used_bytes = 7;
      Specified by:
      getNonHeapUsedBytes in interface ServerMetricsSnapshotOrBuilder
      Returns:
      The nonHeapUsedBytes.
    • getThreadCount

      public int getThreadCount()
      Current live thread count.
      
      uint32 thread_count = 8;
      Specified by:
      getThreadCount in interface ServerMetricsSnapshotOrBuilder
      Returns:
      The threadCount.
    • getDaemonThreadCount

      public int getDaemonThreadCount()
      Current daemon thread count.
      
      uint32 daemon_thread_count = 9;
      Specified by:
      getDaemonThreadCount in interface ServerMetricsSnapshotOrBuilder
      Returns:
      The daemonThreadCount.
    • getGcCollectionCount

      public long getGcCollectionCount()
      Cumulative GC collection count across all collectors.
      
      uint64 gc_collection_count = 10;
      Specified by:
      getGcCollectionCount in interface ServerMetricsSnapshotOrBuilder
      Returns:
      The gcCollectionCount.
    • getGcCollectionTimeMs

      public long getGcCollectionTimeMs()
      Cumulative GC collection time in milliseconds across all collectors.
      
      uint64 gc_collection_time_ms = 11;
      Specified by:
      getGcCollectionTimeMs in interface ServerMetricsSnapshotOrBuilder
      Returns:
      The gcCollectionTimeMs.
    • getUptimeMs

      public long getUptimeMs()
      JVM uptime in milliseconds.
      
      uint64 uptime_ms = 12;
      Specified by:
      getUptimeMs in interface ServerMetricsSnapshotOrBuilder
      Returns:
      The uptimeMs.
    • getAvailableProcessors

      public int getAvailableProcessors()
      Number of available processors.
      
      uint32 available_processors = 13;
      Specified by:
      getAvailableProcessors in interface ServerMetricsSnapshotOrBuilder
      Returns:
      The availableProcessors.
    • getTotalBotsOnline

      public int getTotalBotsOnline()
      Total bots online across all instances.
      
      uint32 total_bots_online = 14;
      Specified by:
      getTotalBotsOnline in interface ServerMetricsSnapshotOrBuilder
      Returns:
      The totalBotsOnline.
    • getTotalBotsTotal

      public int getTotalBotsTotal()
      Total bots configured across all instances.
      
      uint32 total_bots_total = 15;
      Specified by:
      getTotalBotsTotal in interface ServerMetricsSnapshotOrBuilder
      Returns:
      The totalBotsTotal.
    • getActiveInstances

      public int getActiveInstances()
      Number of active (non-stopped) instances.
      
      uint32 active_instances = 16;
      Specified by:
      getActiveInstances in interface ServerMetricsSnapshotOrBuilder
      Returns:
      The activeInstances.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • 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.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • 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 ServerMetricsSnapshot parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ServerMetricsSnapshot parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ServerMetricsSnapshot parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ServerMetricsSnapshot parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ServerMetricsSnapshot parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ServerMetricsSnapshot parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ServerMetricsSnapshot parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

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

      public static ServerMetricsSnapshot parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

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

      public static ServerMetricsSnapshot parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ServerMetricsSnapshot parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static ServerMetricsSnapshot.Builder newBuilder()
    • newBuilder

      public static ServerMetricsSnapshot.Builder newBuilder(ServerMetricsSnapshot prototype)
    • toBuilder

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

      protected ServerMetricsSnapshot.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static ServerMetricsSnapshot getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<ServerMetricsSnapshot> 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.GeneratedMessage
    • getDefaultInstanceForType

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