org.apache.derby.impl.services.monitor
Class ReadOnly
java.lang.Object
org.apache.derby.impl.services.monitor.ReadOnly
- All Implemented Interfaces:
- PersistentService
- public abstract class ReadOnly
- extends java.lang.Object
- implements PersistentService
Method Summary |
java.lang.String |
createServiceRoot(java.lang.String name,
boolean deleteExisting)
Properties cannot be saved |
StorageFactory |
getStorageFactoryInstance(boolean useHome,
java.lang.String databaseName,
java.lang.String tempDirName,
java.lang.String uniqueName)
Get an initialized StorageFactoryInstance |
boolean |
hasStorageFactory()
|
protected java.util.Properties |
readProperties(java.io.InputStream is,
java.util.Properties defaultProperties)
|
boolean |
removeServiceRoot(java.lang.String serviceName)
Remove a service's root and its contents. |
void |
saveServiceProperties(java.lang.String serviceName,
java.util.Properties properties,
boolean replace)
Save to a backup file. |
void |
saveServiceProperties(java.lang.String serviceName,
StorageFactory storageFactory,
java.util.Properties properties,
boolean replace)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReadOnly
public ReadOnly()
readProperties
protected final java.util.Properties readProperties(java.io.InputStream is,
java.util.Properties defaultProperties)
throws StandardException
- Throws:
StandardException
saveServiceProperties
public void saveServiceProperties(java.lang.String serviceName,
StorageFactory storageFactory,
java.util.Properties properties,
boolean replace)
throws StandardException
- Specified by:
saveServiceProperties
in interface PersistentService
- Throws:
StandardException
- Properties cannot be saved.
saveServiceProperties
public void saveServiceProperties(java.lang.String serviceName,
java.util.Properties properties,
boolean replace)
throws StandardException
- Save to a backup file.
- Specified by:
saveServiceProperties
in interface PersistentService
- Throws:
StandardException
- Properties cannot be saved.
createServiceRoot
public java.lang.String createServiceRoot(java.lang.String name,
boolean deleteExisting)
throws StandardException
- Properties cannot be saved
- Specified by:
createServiceRoot
in interface PersistentService
- Throws:
StandardException
- Service root cannot be created.
removeServiceRoot
public boolean removeServiceRoot(java.lang.String serviceName)
- Description copied from interface:
PersistentService
- Remove a service's root and its contents.
- Specified by:
removeServiceRoot
in interface PersistentService
hasStorageFactory
public boolean hasStorageFactory()
- Specified by:
hasStorageFactory
in interface PersistentService
- Returns:
- true if the PersistentService has a StorageFactory, false if not.
getStorageFactoryInstance
public StorageFactory getStorageFactoryInstance(boolean useHome,
java.lang.String databaseName,
java.lang.String tempDirName,
java.lang.String uniqueName)
- Get an initialized StorageFactoryInstance
- Specified by:
getStorageFactoryInstance
in interface PersistentService
- Parameters:
useHome
- If true and the database name is not absolute then the database directory will be
relative to the home directory, if one is defined in the properties file.databaseName
- The name of the database (directory). The name does not include the subSubProtocol.
If null then the storage factory will only be used to deal with the directory containing
the databases.tempDirName
- The name of the temporary file directory set in properties. If null then a default
directory should be used. Each database should get a separate temporary file
directory within this one to avoid collisions.uniqueName
- A unique name that can be used to create the temporary file directory for this database.
If null then temporary files will not be created in this StorageFactory instance.
- Returns:
- An initialized StorageFactory.
Apache Derby V10.0 Engine Documentation - Copyright © 1997,2004 The Apache Software Foundation or its licensors, as applicable.