Diagnostics
DsmRuntime exposes an immutable snapshot-oriented diagnostics API.
RuntimeDiagnostics
The runtime snapshot contains:
- runtime identity info
- lifecycle state
- cluster view
- total local entry count
- collection diagnostics for all registered collections
- lease-specific diagnostics for registered lease collections
java
RuntimeDiagnostics diagnostics = runtime.diagnostics();
RuntimeInfo info = diagnostics.info();
DsmRuntimeState state = diagnostics.state();
ClusterView clusterView = diagnostics.clusterView();
int totalEntries = diagnostics.totalEntries();
List<CollectionDiagnostics> collections = diagnostics.collections();
List<LeaseCollectionDiagnostics> leaseCollections = diagnostics.leaseCollections();Why It Matters
This is the fastest way to answer basic operational questions:
- how many entries is this node tracking?
- what peers does the node currently see?
- which collections are registered?
- what is the current lease-specific state?
Recommended Use
Read diagnostics at service endpoints, admin surfaces, or support tooling. Treat it as a runtime snapshot rather than a streaming telemetry system.