Class KstatUtil.KstatChain

java.lang.Object
oshi.util.platform.unix.solaris.KstatUtil.KstatChain
All Implemented Interfaces:
AutoCloseable
Enclosing class:
KstatUtil

public static final class KstatUtil.KstatChain extends Object implements AutoCloseable
A copy of the Kstat chain, encapsulating a kstat_ctl_t object. Only one thread may actively use this object at any time.

The chain is created once calling LibKstat.kstat_open() and then this object is instantiated using the KstatUtil.openChain() method. Instantiating this object updates the chain using LibKstat.kstat_chain_update(com.sun.jna.platform.unix.solaris.LibKstat.KstatCtl). The control object should be closed with close(), which releases the lock and allows another instance to be instantiated.