Class ServerMetricsCollector
java.lang.Object
com.soulfiremc.server.metrics.ServerMetricsCollector
Collects and stores server-level system metrics in a ring buffer.
Metrics are sampled every 3 seconds via a scheduled task.
Thread-safe: snapshot buffer is synchronized.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetSnapshots(com.google.protobuf.Timestamp since) Returns all stored snapshots, optionally filtered by a "since" timestamp.void
-
Constructor Details
-
ServerMetricsCollector
-
-
Method Details
-
sampleSnapshot
public void sampleSnapshot() -
getSnapshots
Returns all stored snapshots, optionally filtered by a "since" timestamp.
-