Package org.tmatesoft.svn.cli.svnsync
Class SVNSyncInitializeCommand
- java.lang.Object
-
- org.tmatesoft.svn.cli.AbstractSVNCommand
-
- org.tmatesoft.svn.cli.svnsync.SVNSyncCommand
-
- org.tmatesoft.svn.cli.svnsync.SVNSyncInitializeCommand
-
- All Implemented Interfaces:
ISVNCanceller
,ISVNAdminEventHandler
,ISVNEventHandler
public class SVNSyncInitializeCommand extends SVNSyncCommand implements ISVNAdminEventHandler
- Version:
- 1.3
- Author:
- TMate Software Ltd.
-
-
Field Summary
-
Fields inherited from interface org.tmatesoft.svn.core.ISVNCanceller
NULL
-
Fields inherited from interface org.tmatesoft.svn.core.wc.ISVNEventHandler
UNKNOWN
-
-
Constructor Summary
Constructors Constructor Description SVNSyncInitializeCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkCancelled()
Checks if the current operation is cancelled (somehow interrupted) and should throw an SVNCancelException or notify the handler if exists.protected java.util.Collection
createSupportedOptions()
void
handleAdminEvent(SVNAdminEvent event, double progress)
Handles the current admin event.void
handleEvent(SVNEvent event, double progress)
Handles the current event.void
run()
-
Methods inherited from class org.tmatesoft.svn.cli.svnsync.SVNSyncCommand
getGlobalOptions, getOutputPriority, getResourceBundleName, getSVNSyncEnvironment
-
Methods inherited from class org.tmatesoft.svn.cli.AbstractSVNCommand
availableCommands, getAliases, getCommand, getDescription, getEnvironment, getName, getSupportedOptions, getValidOptions, init, isAlias, isFailed, isOptionSupported, registerCommand, setFailed
-
-
-
-
Method Detail
-
createSupportedOptions
protected java.util.Collection createSupportedOptions()
- Specified by:
createSupportedOptions
in classAbstractSVNCommand
-
run
public void run() throws SVNException
- Specified by:
run
in classAbstractSVNCommand
- Throws:
SVNException
-
handleAdminEvent
public void handleAdminEvent(SVNAdminEvent event, double progress) throws SVNException
Description copied from interface:ISVNAdminEventHandler
Handles the current admin event.- Specified by:
handleAdminEvent
in interfaceISVNAdminEventHandler
- Parameters:
event
- an event to handleprogress
- progress state (reserved for future purposes)- Throws:
SVNException
-
handleEvent
public void handleEvent(SVNEvent event, double progress) throws SVNException
Description copied from interface:ISVNEventHandler
Handles the current event.Generally all operations represented by do*() methods of SVN*Client objects are followed by generating a sequence of events that are passed to the registered ISVNEventHandler object for custom processing. For example, during an update operation each local item being modified is signaled about by dispatching a specific for this item SVNEvent object to this method where this event can be scrutinized and handled in a desired way.
- Specified by:
handleEvent
in interfaceISVNEventHandler
- Parameters:
event
- the current event that keeps detailed information on the type of action occured and other attributes like path, status, etc.progress
- currently reserved for future use; now it's value is always set toISVNEventHandler.UNKNOWN
- Throws:
SVNException
-
checkCancelled
public void checkCancelled() throws SVNCancelException
Description copied from interface:ISVNCanceller
Checks if the current operation is cancelled (somehow interrupted) and should throw an SVNCancelException or notify the handler if exists. This method is often called during iterations when processing trees of versioned items. This way the entire operation may be interrupted without waiting till the iteration run out.- Specified by:
checkCancelled
in interfaceISVNCanceller
- Throws:
SVNCancelException
-
-