Package org.saidone.job
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
Schedules the periodic notarization of all nodes missing a transaction id.
At each execution the job computes a checksum of the node content using the
configured algorithm and stores the result on the blockchain via the
EthereumService. The returned transaction id is then saved back on
the node. Execution is synchronized and enabled only when the property
application.notarization-job.enabled is set to true.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.saidone.component.BaseComponent
init, setApplicationContext, shutDown, stop
-
Constructor Details
-
NodeNotarizationJob
public NodeNotarizationJob()
-