Class AbstractLocalNode<C extends LocalNodeConfig<?,?>,S extends AbstractStore>

java.lang.Object
io.hotmoka.node.internal.AbstractNodeImpl
io.hotmoka.node.AbstractNode
io.hotmoka.node.local.internal.AbstractLocalNodeImpl<C,S>
io.hotmoka.node.local.AbstractLocalNode<C,S>
Type Parameters:
C - the type of the configuration object used by the node
S - the type of the store of the node
All Implemented Interfaces:
io.hotmoka.node.api.Node, AutoCloseable

public abstract class AbstractLocalNode<C extends LocalNodeConfig<?,?>,S extends AbstractStore> extends io.hotmoka.node.local.internal.AbstractLocalNodeImpl<C,S>
Partial implementation of a local (ie., non-remote) node. Specific implementations can subclass this and implement the abstract template methods.
  • Field Summary

    Fields inherited from class io.hotmoka.node.local.internal.AbstractLocalNodeImpl

    caches, config, store, storeUtilities

    Fields inherited from class io.hotmoka.node.internal.AbstractNodeImpl

    logger
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Builds a node, recycling a previous existing store.
    protected
    AbstractLocalNode(C config, io.hotmoka.node.api.ConsensusConfig<?,?> consensus)
    Builds a node with a brand new, empty store.
  • Method Summary

    Methods inherited from class io.hotmoka.node.local.internal.AbstractLocalNodeImpl

    addConstructorCallTransaction, addGameteCreationTransaction, addInitializationTransaction, addInstanceMethodCallTransaction, addJarStoreInitialTransaction, addJarStoreTransaction, addStaticMethodCallTransaction, checkTransaction, close, deliverTransaction, getClassTag, getManifest, getNameOfSignatureAlgorithmForRequests, getNow, getPolledResponse, getRequest, getResponse, getState, getTakamakaCode, invalidateCachesIfNeeded, isNotYetClosed, mkStore, notifyEventsOf, post, postConstructorCallTransaction, postInstanceMethodCallTransaction, postJarStoreTransaction, postRequest, postStaticMethodCallTransaction, responseBuilderFor, rewardValidators, runInstanceMethodCallTransaction, runStaticMethodCallTransaction, scheduleForNotificationOfEvents, trimmedMessage

    Methods inherited from class io.hotmoka.node.internal.AbstractNodeImpl

    constructorSupplierFor, jarSupplierFor, methodSupplierFor, notifyEvent, subscribeToEvents, wrapInCaseOfExceptionFull, wrapInCaseOfExceptionMedium, wrapInCaseOfExceptionSimple

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface io.hotmoka.node.api.Node

    getNodeInfo
  • Constructor Details

    • AbstractLocalNode

      protected AbstractLocalNode(C config, io.hotmoka.node.api.ConsensusConfig<?,?> consensus)
      Builds a node with a brand new, empty store.
      Parameters:
      config - the configuration of the node
      consensus - the consensus parameters at the beginning of the life of the node
    • AbstractLocalNode

      protected AbstractLocalNode(C config)
      Builds a node, recycling a previous existing store. The store must be that of an already initialized node, whose consensus parameters are recovered from its manifest.
      Parameters:
      config - the configuration of the node