Home » openjdk-7 » java » util » prefs » [javadoc | source]
java.util.prefs
class: FileSystemPreferences [javadoc | source]
java.lang.Object
   java.util.prefs.Preferences
      java.util.prefs.AbstractPreferences
         java.util.prefs.FileSystemPreferences
Preferences implementation for Unix. Preferences are stored in the file system, with one directory per preferences node. All of the preferences at each node are stored in a single file. Atomic file system operations (e.g. File.renameTo) are used to ensure integrity. An in-memory cache of the "explored" portion of the tree is maintained for performance, and written back to the disk periodically. File-locking is used to ensure reasonable behavior when multiple VMs are running at the same time. (The file lock is obtained only for sync(), flush() and removeNode().)
Field Summary
static  Preferences userRoot    The user root. 
static  Preferences systemRoot    The system root. 
static  File userLockFile    The lock file for the user tree. 
static  File systemLockFile    The lock file for the system tree. 
final  List<Change> changeLog    A list of all uncommitted preference changes. The elements in this list are of type PrefChange. If this node is concurrently modified on disk by another VM, the two sets of changes are merged when this node is sync'ed by overwriting our prefsCache with the preference map last written out to disk (by the other VM), and then replaying this change log against that map. The resulting map is then written back to the disk. 
 NodeCreate nodeCreate    NodeCreate object for this node. 
Fields inherited from java.util.prefs.AbstractPreferences:
parent,  newNode,  lock
Fields inherited from java.util.prefs.Preferences:
MAX_KEY_LENGTH,  MAX_VALUE_LENGTH,  MAX_NAME_LENGTH
Method from java.util.prefs.FileSystemPreferences Summary:
childSpi,   childrenNamesSpi,   flush,   flushSpi,   getSpi,   getSystemRoot,   getUserRoot,   isUserNode,   keysSpi,   putSpi,   removeNode,   removeNodeSpi,   removeSpi,   sync,   syncSpi
Methods from java.util.prefs.AbstractPreferences:
absolutePath,   addNodeChangeListener,   addPreferenceChangeListener,   cachedChildren,   childSpi,   childrenNames,   childrenNamesSpi,   clear,   exportNode,   exportSubtree,   flush,   flushSpi,   get,   getBoolean,   getByteArray,   getChild,   getDouble,   getFloat,   getInt,   getLong,   getSpi,   isRemoved,   isUserNode,   keys,   keysSpi,   name,   node,   nodeExists,   nodeListeners,   parent,   prefListeners,   put,   putBoolean,   putByteArray,   putDouble,   putFloat,   putInt,   putLong,   putSpi,   remove,   removeNode,   removeNodeChangeListener,   removeNodeSpi,   removePreferenceChangeListener,   removeSpi,   sync,   syncSpi,   toString
Methods from java.util.prefs.Preferences:
absolutePath,   addNodeChangeListener,   addPreferenceChangeListener,   childrenNames,   clear,   exportNode,   exportSubtree,   flush,   get,   getBoolean,   getByteArray,   getDouble,   getFloat,   getInt,   getLong,   importPreferences,   isUserNode,   keys,   name,   node,   nodeExists,   parent,   put,   putBoolean,   putByteArray,   putDouble,   putFloat,   putInt,   putLong,   remove,   removeNode,   removeNodeChangeListener,   removePreferenceChangeListener,   sync,   systemNodeForPackage,   systemRoot,   toString,   userNodeForPackage,   userRoot
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from java.util.prefs.FileSystemPreferences Detail:
 protected AbstractPreferences childSpi(String name) 
 protected String[] childrenNamesSpi() 
 public  void flush() throws BackingStoreException 
 protected  void flushSpi() throws BackingStoreException 
 protected String getSpi(String key) 
 static synchronized Preferences getSystemRoot() 
 static synchronized Preferences getUserRoot() 
 public boolean isUserNode() 
 protected String[] keysSpi() 
 protected  void putSpi(String key,
    String value) 
 public  void removeNode() throws BackingStoreException 
 protected  void removeNodeSpi() throws BackingStoreException 
    Called with file lock held (in addition to node locks).
 protected  void removeSpi(String key) 
 public synchronized  void sync() throws BackingStoreException 
 protected  void syncSpi() throws BackingStoreException