@Deprecated final class InternalStorageController extends java.lang.Object implements SecondaryStorageController
The configuration
is done in the base.config
file with the following settings:
Setting | Default/possible value(s) | Description |
---|---|---|
secondary.storage.driver | net.sf.basedb.core.InternalStorageController | The class name of the secondary storage controller. |
secondary.storage.init | - | The path to the seconday storage directory. |
This class logs information to a logger named net.sf.basedb.core.storage
.
Configure the settings for the logger in the log4j.properties
file.
Modifier and Type | Class and Description |
---|---|
private static class |
InternalStorageController.StorageKeyring
Deprecated.
Our own keyring containing the permissions we need to move the files.
|
Modifier and Type | Field and Description |
---|---|
private static org.slf4j.Logger |
log
Deprecated.
Log storage events.
|
private java.io.File |
path
Deprecated.
The path to the directory where the secondary storage is located.
|
private SessionControl |
sc
Deprecated.
The session controller.
|
Constructor and Description |
---|
InternalStorageController()
Deprecated.
Create the storage controller.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Deprecated.
Cleanup
|
void |
init(java.lang.String settings)
Deprecated.
Initialises the object.
|
private void |
moveToPrimary(int fileId)
Deprecated.
|
private void |
moveToSecondary(int fileId)
Deprecated.
|
void |
run()
Deprecated.
Check the database for files for waiting to be moved.
|
private static final org.slf4j.Logger log
private SessionControl sc
InternalStorageController.StorageKeyring
.private java.io.File path
InternalStorageController()
public void init(java.lang.String settings) throws BaseException
SecondaryStorageController
settings
string should be defined by the implementing class. It may for
example be the path to another directory of information about how to
connect to a remote FTP server.init
in interface SecondaryStorageController
settings
- A string containing initialisation parametersBaseException
- If the parameters are invalidpublic void run()
run
in interface SecondaryStorageController
public void close()
close
in interface SecondaryStorageController
private void moveToPrimary(int fileId) throws java.lang.Throwable
java.lang.Throwable
private void moveToSecondary(int fileId) throws java.lang.Throwable
java.lang.Throwable