Class ChainMonitor

java.lang.Object
nxt.addons.AbstractContract<Object,Object>
com.jelurida.ardor.contracts.ChainMonitor
All Implemented Interfaces:
Contract<Object,Object>

public class ChainMonitor extends AbstractContract<Object,Object>
Monitor the blockchain for unexpected conditions
  • Constructor Details

    • ChainMonitor

      public ChainMonitor()
  • Method Details

    • init

      public void init(InitializationContext context)
      Description copied from interface: Contract
      Contract initialization.

      Invoked once after loading the contract class, before any other callback. Use this callback to initialize long running services required by the contract.

      Parameters:
      context - the contract context
    • shutdown

      public void shutdown(ShutdownContext context)
      Description copied from interface: Contract
      Contract shutdown

      Invoked once before destroying the contract class, after any other callback. Use this callback to clean up long running services.

      Parameters:
      context - the contract context