Class RunKosSerialNumberProvider

java.lang.Object
com.tccc.kos.core.service.device.serialnum.run.RunKosSerialNumberProvider
All Implemented Interfaces:
Ready, SerialNumberProvider

public class RunKosSerialNumberProvider extends Object implements SerialNumberProvider
A SerialNumberProvider implementation that reads the serial number from /run/kos/serialNumber in the constructor. If this file does not exist, the provider will never become ready.

This provider does not allow the serial number to be set. Calling setSerialNumber() will throw UnsupportedOperationException.

This provider is typically used when the serial number is programmed into an external device, such as an eprom that is part of the cable harness or chassis. This value is typically read by code in a layer and written to the /run/kos/serialNumber file before java starts.

Version:
2024-10-29