public interface SecondaryStorageController
The core will create one object instance of the class specified by
the configuration setting
this setting empty disables the secondary storage.
When the object has been create the
is called to let the object initialise itself. The parameters for the
method call is taken from the
run() method is invoked with an interval specified by the
secondary.storage.interval setting. The interval is given
in seconds. Alternatively the setting
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.
void init(String settings) throws BaseException
settingsstring 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 parameters
BaseException- If the parameters are invalid
void run() throws BaseException
Fileitem in the database (because it have been deleted)