Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*
  * ====================================================================
  * Copyright (c) 2004-2006 TMate Software Ltd.  All rights reserved.
  *
  * This software is licensed as described in the file COPYING, which
  * you should have received as part of this distribution.  The terms
  * are also available at http://svnkit.com/license.html
  * If newer versions of this license are posted there, you may use a
  * newer version instead, at your option.
 * ====================================================================
 */
package org.tmatesoft.svn.core.replicator;
The ISVNReplicationHandler is the interface for the handlers which are registered to a repository replicator to keep track of the replicating process.

Author(s):
TMate Software Ltd.
Version:
1.1.0
Since:
1.1
public interface ISVNReplicationHandler {

    
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:
org.tmatesoft.svn.core.SVNException
    public void revisionReplicating(SVNRepositoryReplicator sourceSVNLogEntry logEntrythrows SVNException;

    
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:
org.tmatesoft.svn.core.SVNException
    public void revisionReplicated(SVNRepositoryReplicator sourceSVNCommitInfo commitInfothrows SVNException;

    
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:
org.tmatesoft.svn.core.SVNCancelException if the replicating operation is cancelled
    public void checkCancelled() throws SVNCancelException;
New to GrepCode? Check out our FAQ X