Class InMemoryExecutionIdAccessor

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Long getLastGeneratedExecutionId​(java.lang.String clusterName)
      Get the last id which is generated by execution tracker in the give cluster.
      java.lang.Long getLastSucceededExecutionId​(java.lang.String clusterName)
      Get the id for the last succeed operation in the given cluster.
      java.util.Map<java.lang.String,​java.lang.Long> getLastSucceededExecutionIdMap​(java.lang.String clusterName)
      Get the execution id map that contains the last succeeded operation in the given cluster for each store.
      java.lang.Long incrementAndGetExecutionId​(java.lang.String clusterName)
      Read the current value from ZK and try to increment the value by 1 and write it back to ZK.
      void setExecutionId​(long value)  
      void updateLastGeneratedExecutionId​(java.lang.String clusterName, java.lang.Long lastGeneratedExecutionId)
      Update the last id which is generated by execution tracker in the given cluster.
      void updateLastSucceededExecutionId​(java.lang.String clusterName, java.lang.Long lastSucceedExecutionId)
      Update the id of the last succeed operation in the given cluster.
      void updateLastSucceededExecutionIdMap​(java.lang.String clusterName, java.lang.String storeName, java.lang.Long lastSucceededExecutionId)
      Update the execution id map that contains the last succeeded operation in the given cluster for each store.
      • Methods inherited from class java.lang.Object

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

      • InMemoryExecutionIdAccessor

        public InMemoryExecutionIdAccessor()
    • Method Detail

      • updateLastSucceededExecutionId

        public void updateLastSucceededExecutionId​(java.lang.String clusterName,
                                                   java.lang.Long lastSucceedExecutionId)
        Description copied from interface: ExecutionIdAccessor
        Update the id of the last succeed operation in the given cluster.
        Specified by:
        updateLastSucceededExecutionId in interface ExecutionIdAccessor
      • getLastSucceededExecutionIdMap

        public java.util.Map<java.lang.String,​java.lang.Long> getLastSucceededExecutionIdMap​(java.lang.String clusterName)
        Description copied from interface: ExecutionIdAccessor
        Get the execution id map that contains the last succeeded operation in the given cluster for each store.
        Specified by:
        getLastSucceededExecutionIdMap in interface ExecutionIdAccessor
      • updateLastSucceededExecutionIdMap

        public void updateLastSucceededExecutionIdMap​(java.lang.String clusterName,
                                                      java.lang.String storeName,
                                                      java.lang.Long lastSucceededExecutionId)
        Description copied from interface: ExecutionIdAccessor
        Update the execution id map that contains the last succeeded operation in the given cluster for each store.
        Specified by:
        updateLastSucceededExecutionIdMap in interface ExecutionIdAccessor
      • getLastGeneratedExecutionId

        public java.lang.Long getLastGeneratedExecutionId​(java.lang.String clusterName)
        Description copied from interface: ExecutionIdAccessor
        Get the last id which is generated by execution tracker in the give cluster.
        Specified by:
        getLastGeneratedExecutionId in interface ExecutionIdAccessor
      • updateLastGeneratedExecutionId

        public void updateLastGeneratedExecutionId​(java.lang.String clusterName,
                                                   java.lang.Long lastGeneratedExecutionId)
        Description copied from interface: ExecutionIdAccessor
        Update the last id which is generated by execution tracker in the given cluster.
        Specified by:
        updateLastGeneratedExecutionId in interface ExecutionIdAccessor
      • incrementAndGetExecutionId

        public java.lang.Long incrementAndGetExecutionId​(java.lang.String clusterName)
        Description copied from interface: ExecutionIdAccessor
        Read the current value from ZK and try to increment the value by 1 and write it back to ZK.
        Specified by:
        incrementAndGetExecutionId in interface ExecutionIdAccessor
        Returns:
        updated execution id.
      • setExecutionId

        public void setExecutionId​(long value)