Class AbstractBmSyncSession

java.lang.Object
com.e1c.langtool.v8.dt.sync.AbstractBmSyncSession
All Implemented Interfaces:
SyncSession, BmSyncSession
Direct Known Subclasses:
ConfigurationSyncSession, ExtensionSyncSession, ExternalObjectSyncSession

public abstract class AbstractBmSyncSession extends Object implements BmSyncSession
  • Field Details

  • Constructor Details

    • AbstractBmSyncSession

      public AbstractBmSyncSession(ITranslatedProject translatedProject)
  • Method Details

    • beginSyncOperation

      public void beginSyncOperation()
      Description copied from interface: SyncSession
      Begins synchronization operation. Performs all necessary lifecycle checks and resource blocking. Must preceed any business actions within the session. May be called only once per session
      Specified by:
      beginSyncOperation in interface SyncSession
    • endSyncOperation

      public void endSyncOperation()
      Description copied from interface: SyncSession
      Ends the operation. Must be called after internal synchronization logic is finished to remove LC/resource locks
      Specified by:
      endSyncOperation in interface SyncSession
    • beforeSynchronizing

      public org.eclipse.core.runtime.IStatus beforeSynchronizing(org.eclipse.core.runtime.IProgressMonitor monitor)
      Description copied from interface: SyncSession
      Before synchronizing projects, but after creating target project.
      Specified by:
      beforeSynchronizing in interface SyncSession
      Parameters:
      monitor - the monitor
      Returns:
      the status
    • afterSynchronized

      public org.eclipse.core.runtime.IStatus afterSynchronized(org.eclipse.core.runtime.IProgressMonitor monitor)
      Description copied from interface: SyncSession
      After synchronized the target project.
      Specified by:
      afterSynchronized in interface SyncSession
      Parameters:
      monitor - the monitor
      Returns:
      the status
    • getBatchSessionLock

      public Object getBatchSessionLock()
      Description copied from interface: BmSyncSession
      Gets the batch session lock handler, that allows to execute IBmTask in batch session.
      Specified by:
      getBatchSessionLock in interface BmSyncSession
      Returns:
      the batch session lock
    • getSkipped

      public Collection<org.eclipse.core.runtime.IPath> getSkipped()
      Description copied from interface: SyncSession
      Gets the resources skipped duaring this sync session.
      Specified by:
      getSkipped in interface SyncSession
      Returns:
      the skipped resources, cannot return null.
    • storeDelayedFiles

      public void storeDelayedFiles(org.eclipse.core.resources.IFile file, InputStream stream) throws IOException
      Description copied from interface: BmSyncSession
      Store delayed files.
      Specified by:
      storeDelayedFiles in interface BmSyncSession
      Parameters:
      file - the file
      stream - the stream
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • waitUntilStarted

      protected boolean waitUntilStarted(org.eclipse.core.resources.IProject project, Duration waitDuration)