org.tmatesoft.svn.core.replicator

Interface ISVNReplicationHandler

public interface ISVNReplicationHandler

The ISVNReplicationHandler is the interface for the handlers which are registered to a repository replicator to keep track of the replicating process.

Since: 1.1.0

Version: 1.1.1

Author: TMate Software Ltd.

Method Summary
voidcheckCancelled()
Checks if the replicating operation is cancelled.
voidrevisionReplicated(SVNRepositoryReplicator source, SVNCommitInfo commitInfo)
Notifies this handler that the replicator has just finished replicating the current revision copying operation.
voidrevisionReplicating(SVNRepositoryReplicator source, SVNLogEntry logEntry)
Notifies this handler that the replicator is about to start a next revision copying operation.

Method Detail

checkCancelled

public void checkCancelled()
Checks if the replicating operation is cancelled. During each replicating iteration the replicator simply calls this method. A handler implementation should decide if the operation must be interrupted or not, and if for some reason it must be stopped (for example, a user said it must be cancelled), then the implementor should simply throw an SVNCancelException. That will terminate the operation. However it won't roll back all the previously iterations committed to the destination repository.

Throws: SVNCancelException if the replicating operation is cancelled

revisionReplicated

public void revisionReplicated(SVNRepositoryReplicator source, SVNCommitInfo commitInfo)
Notifies this handler that the replicator has just finished replicating the current revision copying operation. Commit information of the new revision committed to the destination repository is provided.

Parameters: source the notifier commitInfo commit information

Throws: SVNException

revisionReplicating

public void revisionReplicating(SVNRepositoryReplicator source, SVNLogEntry logEntry)
Notifies this handler that the replicator is about to start a next revision copying operation. Log information taken from the source repository (from where the copy is performed) for that revision is provided.

Parameters: source the notifier logEntry log info about revision changes, author, etc.

Throws: SVNException

Copyright © 2004-2007 TMate Software Ltd. All Rights Reserved.