Class NodeNotarizationJob

java.lang.Object
org.saidone.component.BaseComponent
org.saidone.job.NodeNotarizationJob
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

@Component @ConditionalOnProperty(name="application.notarization-job.enabled", havingValue="true") @EnableScheduling public class NodeNotarizationJob extends BaseComponent
Scheduled job that notarizes vault nodes that still miss a blockchain transaction id.

At each execution the job retrieves nodes where ntx is null and delegates the notarization flow to NotarizationService. Successful notarization stores the returned transaction id on the related node. Execution is synchronized to avoid overlapping runs and enabled only when the property application.notarization-job.enabled is set to true.

  • Constructor Details

    • NodeNotarizationJob

      public NodeNotarizationJob()