sys::Obj sys::Virtual sys::Component sys::Service pstore::PstoreService
public class PstoreService
[niagaraIcon="module://icons/x16/database.png"]
PstoreService is used to manage a block of random access persistent storage. Pstores are typically backed by EEPROM, static-RAM, or a file system. PstoreFiles are added as direct children of the service to reserve a range of bytes for application functionality.
public inline File file
File instance used to manage this PstoreService. Most developers should access the backing store through the methods on PstoreFile.
public property int fileSize [config, defaultOnClone]
Configured size of file made available for storage. If the backing file store has a fixed size, then this configuration value is ignored.
public inline property Buf filename [asStr, config, max=32, defaultOnClone]
File name used as the backing store.
public property int size [readonly]
Size in bytes of storage available. A zero or negative value indicates an error condition or that the no storage is available.
This value must be initialized by the service in the loaded() callback so that is available for error checking in the PStoreFile.start callback.
public override void loaded()
public override void stop()
public action void validateAll()
Validate all my child PstoreFiles