Class ServerMetricsSnapshot.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<ServerMetricsSnapshot.Builder>
com.google.protobuf.GeneratedMessage.Builder<ServerMetricsSnapshot.Builder>
com.soulfiremc.grpc.generated.ServerMetricsSnapshot.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, ServerMetricsSnapshotOrBuilder, Cloneable
- Enclosing class:
ServerMetricsSnapshot
public static final class ServerMetricsSnapshot.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ServerMetricsSnapshot.Builder>
implements ServerMetricsSnapshotOrBuilder
A single server-level system metrics data point sampled at a fixed interval.Protobuf type
soulfire.v1.ServerMetricsSnapshot-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Number of active (non-stopped) instances.Number of available processors.Current daemon thread count.Cumulative GC collection count across all collectors.Cumulative GC collection time in milliseconds across all collectors.Heap memory committed (reserved by JVM) in bytes.Maximum heap memory in bytes (-1 if undefined).Heap memory currently used in bytes.Non-heap memory currently used in bytes.JVM process CPU load (0.0 to 1.0, or -1.0 if unavailable).System-wide CPU load (0.0 to 1.0, or -1.0 if unavailable).Current live thread count.When this snapshot was taken.Total bots online across all instances.Total bots configured across all instances.JVM uptime in milliseconds.intNumber of active (non-stopped) instances.intNumber of available processors.intCurrent daemon thread count.static 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.doubleJVM process CPU load (0.0 to 1.0, or -1.0 if unavailable).doubleSystem-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.Timestamp.BuilderWhen 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.booleanWhen this snapshot was taken.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(ServerMetricsSnapshot other) mergeTimestamp(com.google.protobuf.Timestamp value) When this snapshot was taken.setActiveInstances(int value) Number of active (non-stopped) instances.setAvailableProcessors(int value) Number of available processors.setDaemonThreadCount(int value) Current daemon thread count.setGcCollectionCount(long value) Cumulative GC collection count across all collectors.setGcCollectionTimeMs(long value) Cumulative GC collection time in milliseconds across all collectors.setHeapCommittedBytes(long value) Heap memory committed (reserved by JVM) in bytes.setHeapMaxBytes(long value) Maximum heap memory in bytes (-1 if undefined).setHeapUsedBytes(long value) Heap memory currently used in bytes.setNonHeapUsedBytes(long value) Non-heap memory currently used in bytes.setProcessCpuLoad(double value) JVM process CPU load (0.0 to 1.0, or -1.0 if unavailable).setSystemCpuLoad(double value) System-wide CPU load (0.0 to 1.0, or -1.0 if unavailable).setThreadCount(int value) Current live thread count.setTimestamp(com.google.protobuf.Timestamp value) When this snapshot was taken.setTimestamp(com.google.protobuf.Timestamp.Builder builderForValue) When this snapshot was taken.setTotalBotsOnline(int value) Total bots online across all instances.setTotalBotsTotal(int value) Total bots configured across all instances.setUptimeMs(long value) JVM uptime in milliseconds.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<ServerMetricsSnapshot.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<ServerMetricsSnapshot.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<ServerMetricsSnapshot.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ServerMetricsSnapshot.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ServerMetricsSnapshot.Builder>
-
mergeFrom
public ServerMetricsSnapshot.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ServerMetricsSnapshot.Builder>- Throws:
IOException
-
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.
-
setTimestamp
When this snapshot was taken.
.google.protobuf.Timestamp timestamp = 1; -
setTimestamp
public ServerMetricsSnapshot.Builder setTimestamp(com.google.protobuf.Timestamp.Builder builderForValue) When this snapshot was taken.
.google.protobuf.Timestamp timestamp = 1; -
mergeTimestamp
When this snapshot was taken.
.google.protobuf.Timestamp timestamp = 1; -
clearTimestamp
When this snapshot was taken.
.google.protobuf.Timestamp timestamp = 1; -
getTimestampBuilder
public com.google.protobuf.Timestamp.Builder getTimestampBuilder()When this snapshot was taken.
.google.protobuf.Timestamp timestamp = 1; -
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.
-
setProcessCpuLoad
JVM process CPU load (0.0 to 1.0, or -1.0 if unavailable).
double process_cpu_load = 2;- Parameters:
value- The processCpuLoad to set.- Returns:
- This builder for chaining.
-
clearProcessCpuLoad
JVM process CPU load (0.0 to 1.0, or -1.0 if unavailable).
double process_cpu_load = 2;- Returns:
- This builder for chaining.
-
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.
-
setSystemCpuLoad
System-wide CPU load (0.0 to 1.0, or -1.0 if unavailable).
double system_cpu_load = 3;- Parameters:
value- The systemCpuLoad to set.- Returns:
- This builder for chaining.
-
clearSystemCpuLoad
System-wide CPU load (0.0 to 1.0, or -1.0 if unavailable).
double system_cpu_load = 3;- Returns:
- This builder for chaining.
-
getHeapUsedBytes
public long getHeapUsedBytes()Heap memory currently used in bytes.
uint64 heap_used_bytes = 4;- Specified by:
getHeapUsedBytesin interfaceServerMetricsSnapshotOrBuilder- Returns:
- The heapUsedBytes.
-
setHeapUsedBytes
Heap memory currently used in bytes.
uint64 heap_used_bytes = 4;- Parameters:
value- The heapUsedBytes to set.- Returns:
- This builder for chaining.
-
clearHeapUsedBytes
Heap memory currently used in bytes.
uint64 heap_used_bytes = 4;- Returns:
- This builder for chaining.
-
getHeapCommittedBytes
public long getHeapCommittedBytes()Heap memory committed (reserved by JVM) in bytes.
uint64 heap_committed_bytes = 5;- Specified by:
getHeapCommittedBytesin interfaceServerMetricsSnapshotOrBuilder- Returns:
- The heapCommittedBytes.
-
setHeapCommittedBytes
Heap memory committed (reserved by JVM) in bytes.
uint64 heap_committed_bytes = 5;- Parameters:
value- The heapCommittedBytes to set.- Returns:
- This builder for chaining.
-
clearHeapCommittedBytes
Heap memory committed (reserved by JVM) in bytes.
uint64 heap_committed_bytes = 5;- Returns:
- This builder for chaining.
-
getHeapMaxBytes
public long getHeapMaxBytes()Maximum heap memory in bytes (-1 if undefined).
int64 heap_max_bytes = 6;- Specified by:
getHeapMaxBytesin interfaceServerMetricsSnapshotOrBuilder- Returns:
- The heapMaxBytes.
-
setHeapMaxBytes
Maximum heap memory in bytes (-1 if undefined).
int64 heap_max_bytes = 6;- Parameters:
value- The heapMaxBytes to set.- Returns:
- This builder for chaining.
-
clearHeapMaxBytes
Maximum heap memory in bytes (-1 if undefined).
int64 heap_max_bytes = 6;- Returns:
- This builder for chaining.
-
getNonHeapUsedBytes
public long getNonHeapUsedBytes()Non-heap memory currently used in bytes.
uint64 non_heap_used_bytes = 7;- Specified by:
getNonHeapUsedBytesin interfaceServerMetricsSnapshotOrBuilder- Returns:
- The nonHeapUsedBytes.
-
setNonHeapUsedBytes
Non-heap memory currently used in bytes.
uint64 non_heap_used_bytes = 7;- Parameters:
value- The nonHeapUsedBytes to set.- Returns:
- This builder for chaining.
-
clearNonHeapUsedBytes
Non-heap memory currently used in bytes.
uint64 non_heap_used_bytes = 7;- Returns:
- This builder for chaining.
-
getThreadCount
public int getThreadCount()Current live thread count.
uint32 thread_count = 8;- Specified by:
getThreadCountin interfaceServerMetricsSnapshotOrBuilder- Returns:
- The threadCount.
-
setThreadCount
Current live thread count.
uint32 thread_count = 8;- Parameters:
value- The threadCount to set.- Returns:
- This builder for chaining.
-
clearThreadCount
Current live thread count.
uint32 thread_count = 8;- Returns:
- This builder for chaining.
-
getDaemonThreadCount
public int getDaemonThreadCount()Current daemon thread count.
uint32 daemon_thread_count = 9;- Specified by:
getDaemonThreadCountin interfaceServerMetricsSnapshotOrBuilder- Returns:
- The daemonThreadCount.
-
setDaemonThreadCount
Current daemon thread count.
uint32 daemon_thread_count = 9;- Parameters:
value- The daemonThreadCount to set.- Returns:
- This builder for chaining.
-
clearDaemonThreadCount
Current daemon thread count.
uint32 daemon_thread_count = 9;- Returns:
- This builder for chaining.
-
getGcCollectionCount
public long getGcCollectionCount()Cumulative GC collection count across all collectors.
uint64 gc_collection_count = 10;- Specified by:
getGcCollectionCountin interfaceServerMetricsSnapshotOrBuilder- Returns:
- The gcCollectionCount.
-
setGcCollectionCount
Cumulative GC collection count across all collectors.
uint64 gc_collection_count = 10;- Parameters:
value- The gcCollectionCount to set.- Returns:
- This builder for chaining.
-
clearGcCollectionCount
Cumulative GC collection count across all collectors.
uint64 gc_collection_count = 10;- Returns:
- This builder for chaining.
-
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.
-
setGcCollectionTimeMs
Cumulative GC collection time in milliseconds across all collectors.
uint64 gc_collection_time_ms = 11;- Parameters:
value- The gcCollectionTimeMs to set.- Returns:
- This builder for chaining.
-
clearGcCollectionTimeMs
Cumulative GC collection time in milliseconds across all collectors.
uint64 gc_collection_time_ms = 11;- Returns:
- This builder for chaining.
-
getUptimeMs
public long getUptimeMs()JVM uptime in milliseconds.
uint64 uptime_ms = 12;- Specified by:
getUptimeMsin interfaceServerMetricsSnapshotOrBuilder- Returns:
- The uptimeMs.
-
setUptimeMs
JVM uptime in milliseconds.
uint64 uptime_ms = 12;- Parameters:
value- The uptimeMs to set.- Returns:
- This builder for chaining.
-
clearUptimeMs
JVM uptime in milliseconds.
uint64 uptime_ms = 12;- Returns:
- This builder for chaining.
-
getAvailableProcessors
public int getAvailableProcessors()Number of available processors.
uint32 available_processors = 13;- Specified by:
getAvailableProcessorsin interfaceServerMetricsSnapshotOrBuilder- Returns:
- The availableProcessors.
-
setAvailableProcessors
Number of available processors.
uint32 available_processors = 13;- Parameters:
value- The availableProcessors to set.- Returns:
- This builder for chaining.
-
clearAvailableProcessors
Number of available processors.
uint32 available_processors = 13;- Returns:
- This builder for chaining.
-
getTotalBotsOnline
public int getTotalBotsOnline()Total bots online across all instances.
uint32 total_bots_online = 14;- Specified by:
getTotalBotsOnlinein interfaceServerMetricsSnapshotOrBuilder- Returns:
- The totalBotsOnline.
-
setTotalBotsOnline
Total bots online across all instances.
uint32 total_bots_online = 14;- Parameters:
value- The totalBotsOnline to set.- Returns:
- This builder for chaining.
-
clearTotalBotsOnline
Total bots online across all instances.
uint32 total_bots_online = 14;- Returns:
- This builder for chaining.
-
getTotalBotsTotal
public int getTotalBotsTotal()Total bots configured across all instances.
uint32 total_bots_total = 15;- Specified by:
getTotalBotsTotalin interfaceServerMetricsSnapshotOrBuilder- Returns:
- The totalBotsTotal.
-
setTotalBotsTotal
Total bots configured across all instances.
uint32 total_bots_total = 15;- Parameters:
value- The totalBotsTotal to set.- Returns:
- This builder for chaining.
-
clearTotalBotsTotal
Total bots configured across all instances.
uint32 total_bots_total = 15;- Returns:
- This builder for chaining.
-
getActiveInstances
public int getActiveInstances()Number of active (non-stopped) instances.
uint32 active_instances = 16;- Specified by:
getActiveInstancesin interfaceServerMetricsSnapshotOrBuilder- Returns:
- The activeInstances.
-
setActiveInstances
Number of active (non-stopped) instances.
uint32 active_instances = 16;- Parameters:
value- The activeInstances to set.- Returns:
- This builder for chaining.
-
clearActiveInstances
Number of active (non-stopped) instances.
uint32 active_instances = 16;- Returns:
- This builder for chaining.
-