Interface MirrorListener
@Nullable
public interface MirrorListener
A listener which is notified when a
Mirror operation is started, completed or failed.
Implement this interface and register it using ServiceLoader to override the default behavior:
onStart(MirrorTask): Logs an info message for the start of a scheduledMirror.onComplete(MirrorTask, MirrorResult): Does nothing.onError(MirrorTask, Throwable): Logs a warning message for the error of a scheduledMirror.
-
Method Summary
Modifier and TypeMethodDescriptionvoidonComplete(MirrorTask mirror, MirrorResult result) Invoked when theMirroroperation is completed.voidonCreate(Mirror mirror, User creator, MirrorAccessController accessController) Invoked when a newMirroris created.voidonDisallowed(Mirror mirror) Invoked when theMirroroperation is disallowed.voidonError(MirrorTask mirror, Throwable cause) Invoked when theMirroroperation is failed.voidonStart(MirrorTask mirror) Invoked when theMirroroperation is started.voidonUpdate(Mirror mirror, User updater, MirrorAccessController accessController) Invoked when theMirroris updated.