@Deprecated
public interface SecondaryStorageController
The core will create one object instance of the class specified by
the configuration setting secondary.storage.driver
. Leaving
this setting empty disables the secondary storage.
When the object has been create the init(String)
method
is called to let the object initialise itself. The parameters for the
method call is taken from the secondary.storage.init
setting.
The run()
method is invoked with an interval specified by the
secondary.storage.interval
setting. The interval is given
in seconds. Alternatively the setting secondary.storage.time
may contain a comma-separated list of time-points (hour:minutes) when the storage
controller should be invoked. If time-points are given it overrides the interval
setting which is ignored. Time-point valus must be given with time two-digit 24-based
hour and two-digit minute values. For example: 03:10,09:00,23:59.
When BASE is stopped the close()
method is called.
Modifier and Type | Method and Description |
---|---|
void |
close()
Deprecated.
The core is now done with the storage controller.
|
void |
init(java.lang.String settings)
Deprecated.
Initialises the object.
|
void |
run()
Deprecated.
Run the storage controller.
|
void init(java.lang.String settings) throws BaseException
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.settings
- A string containing initialisation parametersBaseException
- If the parameters are invalidvoid run() throws BaseException
File.getAction()
returns
File.Action.MOVE_TO_SECONDARY
File.getAction()
returns
File.Action.MOVE_TO_PRIMARY
File
item in the database (because it have been deleted)
BaseException
void close()