Class JavaHLEventHandler

java.lang.Object
org.tmatesoft.svn.core.javahl17.JavaHLEventHandler
All Implemented Interfaces:
ISVNCanceller, ISVNEventHandler

public class JavaHLEventHandler extends java.lang.Object implements ISVNEventHandler
  • Field Details

    • notifyCallback

      private ClientNotifyCallback notifyCallback
    • cancelOperation

      private boolean cancelOperation
    • pathPrefix

      private java.lang.String pathPrefix
  • Constructor Details

    • JavaHLEventHandler

      public JavaHLEventHandler()
  • Method Details

    • setNotifyCallback

      public void setNotifyCallback(ClientNotifyCallback notifyCallback)
    • setCancelOperation

      public void setCancelOperation(boolean cancelOperation)
    • cancelOperation

      public void cancelOperation()
    • setPathPrefix

      public void setPathPrefix(java.lang.String pathPrefix)
    • resetPathPrefix

      public void resetPathPrefix()
    • handleEvent

      public void handleEvent(SVNEvent event, double progress)
      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 interface ISVNEventHandler
      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 to ISVNEventHandler.UNKNOWN
    • 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 interface ISVNCanceller
      Throws:
      SVNCancelException