Module io.hotmoka.node.local
Package io.hotmoka.node.local
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 nodeS- 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, storeUtilitiesFields inherited from class io.hotmoka.node.internal.AbstractNodeImpl
logger -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractLocalNode(C config) Builds a node, recycling a previous existing store.protectedAbstractLocalNode(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, trimmedMessageMethods inherited from class io.hotmoka.node.internal.AbstractNodeImpl
constructorSupplierFor, getOutcome, jarSupplierFor, methodSupplierFor, notifyEvent, subscribeToEvents, wrapInCaseOfExceptionFull, wrapInCaseOfExceptionMedium, wrapInCaseOfExceptionSimpleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.hotmoka.node.api.Node
getNodeInfo
-
Constructor Details
-
AbstractLocalNode
Builds a node with a brand new, empty store.- Parameters:
config- the configuration of the nodeconsensus- the consensus parameters at the beginning of the life of the node
-
AbstractLocalNode
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
-