public class FilePersistentConfig extends PersistentConfig
Config.RequestType
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
header |
protected java.lang.Object |
storeSync |
protected boolean |
writeOnFinished |
finishedInit, origConfigFileContents
configsByPrefix
Modifier | Constructor and Description |
---|---|
protected |
FilePersistentConfig(SimpleFieldSet origFS,
java.io.File fnam,
java.io.File temp) |
protected |
FilePersistentConfig(SimpleFieldSet origFS,
java.io.File fnam,
java.io.File temp,
java.lang.String header) |
Modifier and Type | Method and Description |
---|---|
static FilePersistentConfig |
constructFilePersistentConfig(java.io.File f) |
static FilePersistentConfig |
constructFilePersistentConfig(java.io.File f,
java.lang.String header) |
void |
finishedInit()
Finished initialization.
|
protected void |
innerStore()
Don't call without taking storeSync first
|
void |
register(SubConfig sc) |
void |
store()
Write current config to disk
|
exportFieldSet, exportFieldSet, exportFieldSet, getSimpleFieldSet, onRegister
createSubConfig, get, getConfigs
protected final java.lang.String header
protected final java.lang.Object storeSync
protected boolean writeOnFinished
protected FilePersistentConfig(SimpleFieldSet origFS, java.io.File fnam, java.io.File temp) throws java.io.IOException
java.io.IOException
protected FilePersistentConfig(SimpleFieldSet origFS, java.io.File fnam, java.io.File temp, java.lang.String header) throws java.io.IOException
java.io.IOException
public static FilePersistentConfig constructFilePersistentConfig(java.io.File f) throws java.io.IOException
java.io.IOException
public static FilePersistentConfig constructFilePersistentConfig(java.io.File f, java.lang.String header) throws java.io.IOException
java.io.IOException
public void store()
Config
protected final void innerStore() throws java.io.IOException
java.io.IOException
public void finishedInit()
PersistentConfig
finishedInit
in class PersistentConfig