Module io.hotmoka.node.mokamint.api
Package io.hotmoka.node.mokamint.api
Interface MokamintNode<E extends io.mokamint.node.api.PublicNode>
- Type Parameters:
E- the type of the underlying Mokamint engine
- All Superinterfaces:
AutoCloseable,LocalNode<MokamintNodeConfig>,io.hotmoka.node.api.Node,io.hotmoka.closeables.api.OnCloseHandlersContainer
public interface MokamintNode<E extends io.mokamint.node.api.PublicNode>
extends LocalNode<MokamintNodeConfig>
A Hotmoka node that relies on the Mokamint proof of space engine.
-
Method Summary
Modifier and TypeMethodDescriptionYields the Mokamint engine used by this node, if it has been already set.voidsetMokamintEngine(E engine) Sets the Mokamint engine that must be used by this node.Methods inherited from interface io.hotmoka.node.local.api.LocalNode
getLocalConfigMethods inherited from interface io.hotmoka.node.api.Node
addConstructorCallTransaction, addGameteCreationTransaction, addInitializationTransaction, addInstanceMethodCallTransaction, addJarStoreInitialTransaction, addJarStoreTransaction, addStaticMethodCallTransaction, close, getClassTag, getConfig, getIndex, getInfo, getManifest, getPolledResponse, getRequest, getResponse, getState, getTakamakaCode, postConstructorCallTransaction, postInstanceMethodCallTransaction, postJarStoreTransaction, postStaticMethodCallTransaction, runInstanceMethodCallTransaction, runStaticMethodCallTransaction, subscribeToEventsMethods inherited from interface io.hotmoka.closeables.api.OnCloseHandlersContainer
addOnCloseHandler, removeOnCloseHandler
-
Method Details
-
setMokamintEngine
void setMokamintEngine(E engine) throws TimeoutException, InterruptedException, io.mokamint.node.api.ClosedNodeException Sets the Mokamint engine that must be used by this node.- Parameters:
engine- the Mokamint engine- Throws:
io.mokamint.node.api.ClosedNodeException- ifengineis already closedInterruptedException- if the current thread gets interrupted while performing the operationTimeoutException- if the operation times out
-
getMokamintEngine
Yields the Mokamint engine used by this node, if it has been already set.- Returns:
- the Mokamint engine, if already set
-