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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA single server-level system metrics data point sampled at a fixed interval.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT,BuilderT>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT, T>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested 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 intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanintNumber of active (non-stopped) instances.intNumber of available processors.intCurrent daemon thread count.static ServerMetricsSnapshotstatic final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorlongCumulative GC collection count across all collectors.longCumulative GC collection time in milliseconds across all collectors.longHeap memory committed (reserved by JVM) in bytes.longMaximum heap memory in bytes (-1 if undefined).longHeap memory currently used in bytes.longNon-heap memory currently used in bytes.com.google.protobuf.Parser<ServerMetricsSnapshot> doubleJVM process CPU load (0.0 to 1.0, or -1.0 if unavailable).intdoubleSystem-wide CPU load (0.0 to 1.0, or -1.0 if unavailable).intCurrent live thread count.com.google.protobuf.TimestampWhen this snapshot was taken.com.google.protobuf.TimestampOrBuilderWhen this snapshot was taken.intTotal bots online across all instances.intTotal bots configured across all instances.longJVM uptime in milliseconds.inthashCode()booleanWhen this snapshot was taken.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleannewBuilder(ServerMetricsSnapshot prototype) protected ServerMetricsSnapshot.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static ServerMetricsSnapshotparseDelimitedFrom(InputStream input) static ServerMetricsSnapshotparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ServerMetricsSnapshotparseFrom(byte[] data) static ServerMetricsSnapshotparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ServerMetricsSnapshotparseFrom(com.google.protobuf.ByteString data) static ServerMetricsSnapshotparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ServerMetricsSnapshotparseFrom(com.google.protobuf.CodedInputStream input) static ServerMetricsSnapshotparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ServerMetricsSnapshotparseFrom(InputStream input) static ServerMetricsSnapshotparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ServerMetricsSnapshotparseFrom(ByteBuffer data) static ServerMetricsSnapshotparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<ServerMetricsSnapshot> parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
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:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
hasTimestamp
public boolean hasTimestamp()When this snapshot was taken.
.google.protobuf.Timestamp timestamp = 1;- Specified by:
hasTimestampin interfaceServerMetricsSnapshotOrBuilder- 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:
getTimestampin interfaceServerMetricsSnapshotOrBuilder- Returns:
- The timestamp.
-
getTimestampOrBuilder
public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder()When this snapshot was taken.
.google.protobuf.Timestamp timestamp = 1;- Specified by:
getTimestampOrBuilderin interfaceServerMetricsSnapshotOrBuilder
-
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:
getProcessCpuLoadin interfaceServerMetricsSnapshotOrBuilder- 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:
getSystemCpuLoadin interfaceServerMetricsSnapshotOrBuilder- Returns:
- The systemCpuLoad.
-
getHeapUsedBytes
public long getHeapUsedBytes()Heap memory currently used in bytes.
uint64 heap_used_bytes = 4;- Specified by:
getHeapUsedBytesin interfaceServerMetricsSnapshotOrBuilder- Returns:
- The heapUsedBytes.
-
getHeapCommittedBytes
public long getHeapCommittedBytes()Heap memory committed (reserved by JVM) in bytes.
uint64 heap_committed_bytes = 5;- Specified by:
getHeapCommittedBytesin interfaceServerMetricsSnapshotOrBuilder- Returns:
- The heapCommittedBytes.
-
getHeapMaxBytes
public long getHeapMaxBytes()Maximum heap memory in bytes (-1 if undefined).
int64 heap_max_bytes = 6;- Specified by:
getHeapMaxBytesin interfaceServerMetricsSnapshotOrBuilder- Returns:
- The heapMaxBytes.
-
getNonHeapUsedBytes
public long getNonHeapUsedBytes()Non-heap memory currently used in bytes.
uint64 non_heap_used_bytes = 7;- Specified by:
getNonHeapUsedBytesin interfaceServerMetricsSnapshotOrBuilder- Returns:
- The nonHeapUsedBytes.
-
getThreadCount
public int getThreadCount()Current live thread count.
uint32 thread_count = 8;- Specified by:
getThreadCountin interfaceServerMetricsSnapshotOrBuilder- Returns:
- The threadCount.
-
getDaemonThreadCount
public int getDaemonThreadCount()Current daemon thread count.
uint32 daemon_thread_count = 9;- Specified by:
getDaemonThreadCountin interfaceServerMetricsSnapshotOrBuilder- Returns:
- The daemonThreadCount.
-
getGcCollectionCount
public long getGcCollectionCount()Cumulative GC collection count across all collectors.
uint64 gc_collection_count = 10;- Specified by:
getGcCollectionCountin interfaceServerMetricsSnapshotOrBuilder- Returns:
- The gcCollectionCount.
-
getGcCollectionTimeMs
public long getGcCollectionTimeMs()Cumulative GC collection time in milliseconds across all collectors.
uint64 gc_collection_time_ms = 11;- Specified by:
getGcCollectionTimeMsin interfaceServerMetricsSnapshotOrBuilder- Returns:
- The gcCollectionTimeMs.
-
getUptimeMs
public long getUptimeMs()JVM uptime in milliseconds.
uint64 uptime_ms = 12;- Specified by:
getUptimeMsin interfaceServerMetricsSnapshotOrBuilder- Returns:
- The uptimeMs.
-
getAvailableProcessors
public int getAvailableProcessors()Number of available processors.
uint32 available_processors = 13;- Specified by:
getAvailableProcessorsin interfaceServerMetricsSnapshotOrBuilder- Returns:
- The availableProcessors.
-
getTotalBotsOnline
public int getTotalBotsOnline()Total bots online across all instances.
uint32 total_bots_online = 14;- Specified by:
getTotalBotsOnlinein interfaceServerMetricsSnapshotOrBuilder- Returns:
- The totalBotsOnline.
-
getTotalBotsTotal
public int getTotalBotsTotal()Total bots configured across all instances.
uint32 total_bots_total = 15;- Specified by:
getTotalBotsTotalin interfaceServerMetricsSnapshotOrBuilder- Returns:
- The totalBotsTotal.
-
getActiveInstances
public int getActiveInstances()Number of active (non-stopped) instances.
uint32 active_instances = 16;- Specified by:
getActiveInstancesin interfaceServerMetricsSnapshotOrBuilder- Returns:
- The activeInstances.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
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 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
- Throws:
IOException
-
parseFrom
public static ServerMetricsSnapshot parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- 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
- 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 ServerMetricsSnapshot.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-