Package org.jppf.admin.web.settings
Class AbstractPersistence
java.lang.Object
org.jppf.admin.web.settings.AbstractPersistence
- All Implemented Interfaces:
AutoCloseable,Persistence
- Direct Known Subclasses:
AbstractDarabasePersistence,AbstractFilePersistence
- Author:
- Laurent Cohen
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()org.jppf.utils.TypedPropertiesloadProperties(String name) Load the settings for the specified user.voidsaveProperties(String name, org.jppf.utils.TypedProperties settings) Save the settings for the specified user.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jppf.admin.web.settings.Persistence
loadString, saveString
-
Constructor Details
-
AbstractPersistence
public AbstractPersistence()
-
-
Method Details
-
loadProperties
Description copied from interface:PersistenceLoad the settings for the specified user.- Specified by:
loadPropertiesin interfacePersistence- Parameters:
name- the name fo the file to load from.- Returns:
- the settings propeties loadded from the persistent store.
- Throws:
Exception- if any error occurs.
-
saveProperties
Description copied from interface:PersistenceSave the settings for the specified user.- Specified by:
savePropertiesin interfacePersistence- Parameters:
name- the name of the file to save to.settings- the settings to save.- Throws:
Exception- if any error occurs.
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfacePersistence
-