Initialize Persistit using the Configuration
supplied by the {@link #setConfiguration(Configuration)} method or derived fromproperties supplied by {@link #setProperties(Properties)} or{@link #setPropertiesFromFile(String)}.
If no configuration has been set, this method reverts to its legacy behavior which is to load a configuration from a default properties file. The name of this file is supplied by the system property com.persistit.properties
. If that property is not specified, the default file path is ./persistit.properties
in the current working directory. If Persistit has already been initialized, this method does nothing. This method is thread-safe; if multiple threads concurrently attempt to invoke this method, one of the threads will actually perform the initialization and the other threads will do nothing.
Note that Persistit starts non-daemon threads that will keep a JVM from exiting until {@link #close} is invoked. This is to ensure that allpending updates are written before the JVM exit.
@throws PersistitException @throws IOException @throws Exception
|
|