org.opends.server.api
Interface RestoreTaskListener

All Known Implementing Classes:
MultimasterReplication, ReplicationServer

@PublicAPI(stability=VOLATILE,
           mayInstantiate=false,
           mayExtend=true,
           mayInvoke=false)
public interface RestoreTaskListener

This interface defines a set of methods that may be used to notify various Directory Server components whenever a backend restore task is about to begin or has just completed. Note that these methods will only be invoked for the restore task and not for offline restore processing.


Method Summary
 void processRestoreBegin(Backend backend, RestoreConfig config)
          Performs any processing that might be necessary just before the server begins processing on a restore task.
 void processRestoreEnd(Backend backend, RestoreConfig config, boolean successful)
          Performs any processing that might be necessary after the server has completed processing on a restore task.
 

Method Detail

processRestoreBegin

void processRestoreBegin(Backend backend,
                         RestoreConfig config)
Performs any processing that might be necessary just before the server begins processing on a restore task. This should include pausing interaction with the provided backend while the restore is in progress.

Parameters:
backend - The backend to be restored.
config - Configuration information about the restore to be performed.

processRestoreEnd

void processRestoreEnd(Backend backend,
                       RestoreConfig config,
                       boolean successful)
Performs any processing that might be necessary after the server has completed processing on a restore task. Note that this will always be called when restore processing completes, regardless of whether it was successful.

Parameters:
backend - The backend that was restored.
config - Configuration information about the restore that was performed.
successful - Indicates whether the restore operation completed successfully.