Class IChangeMonitor

  • Direct Known Subclasses:
    ChangeMonitor

    public abstract class IChangeMonitor
    extends java.lang.Object
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      abstract ChangeDelta createCheckpoint()
      Creates a checkpoint which means: Model changes since the last checkpont are saved The model changes in the future are tracked separately from the changes before the checkpoint
      abstract ChangeDelta getDeltaSinceLastCheckpoint()
      Returns all changed elements between the last two checkpoints
      abstract void startMonitoring()
      Sets the model whose changes are observed.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • startMonitoring

        public abstract void startMonitoring()
        Sets the model whose changes are observed. Also creates an initial checkpoint with no changes registered.
        Parameters:
        deployment - the deployment model
        engine - engine associated with the
        Throws:
        ViatraQueryRuntimeException
      • createCheckpoint

        public abstract ChangeDelta createCheckpoint()
        Creates a checkpoint which means:
      • Model changes since the last checkpont are saved
      • The model changes in the future are tracked separately from the changes before the checkpoint
Returns:
the DTO containing the changed elements since the last checkpoint