public final class CncFileReader extends Object implements AutoCloseable
CncFileDescriptor
which can be used for observability.Modifier and Type | Method and Description |
---|---|
void |
close() |
int |
cncVersion()
Get the cnc version.
|
CountersReader |
countersReader()
Get the counters reader for querying counter values.
|
long |
driverHeartbeatAgeMs()
Get the number of milliseconds since the last driver heartbeat.
|
long |
driverHeartbeatMs()
Get the epoch timestamp (ms) of the last driver heartbeat.
|
static CncFileReader |
map()
Map an existing CnC file.
|
String |
semanticVersion()
Get the cnc semantic version.
|
public static CncFileReader map()
CncFileReader
wrapper for reading useful data from the cnc file.AeronException
- if the cnc version major version is not compatible.public int cncVersion()
public String semanticVersion()
public CountersReader countersReader()
public long driverHeartbeatMs()
public long driverHeartbeatAgeMs()
public void close()
close
in interface AutoCloseable
Copyright © 2014-2021 Real Logic Limited. All Rights Reserved.