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, origConfigFileContentsconfigsByPrefix| 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, onRegistercreateSubConfig, get, getConfigsprotected 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.IOExceptionprotected FilePersistentConfig(SimpleFieldSet origFS, java.io.File fnam, java.io.File temp, java.lang.String header) throws java.io.IOException
java.io.IOExceptionpublic static FilePersistentConfig constructFilePersistentConfig(java.io.File f) throws java.io.IOException
java.io.IOExceptionpublic static FilePersistentConfig constructFilePersistentConfig(java.io.File f, java.lang.String header) throws java.io.IOException
java.io.IOExceptionpublic void store()
Configprotected final void innerStore()
throws java.io.IOException
java.io.IOExceptionpublic void finishedInit()
PersistentConfigfinishedInit in class PersistentConfig