Module io.hotmoka.node.api
Package io.hotmoka.node.api.requests
Interface GenericJarStoreTransactionRequest<R extends GenericJarStoreTransactionResponse>
- Type Parameters:
R- the type of the response expected for this request
- All Superinterfaces:
io.hotmoka.marshalling.api.Marshallable,TransactionRequest<R>
- All Known Subinterfaces:
JarStoreInitialTransactionRequest,JarStoreTransactionRequest
public interface GenericJarStoreTransactionRequest<R extends GenericJarStoreTransactionResponse>
extends TransactionRequest<R>
A request for a transaction that installs a jar in a node.
-
Method Summary
Modifier and TypeMethodDescriptionYields the dependencies of the jar to install.byte[]getJar()Yields the bytes of the jar to install.intYields the length, in bytes, of the jar to install.intYields the number of dependencies.Methods inherited from interface io.hotmoka.marshalling.api.Marshallable
into, size, toByteArrayMethods inherited from interface io.hotmoka.node.api.requests.TransactionRequest
equals, hashCode, toString
-
Method Details
-
getJar
byte[] getJar()Yields the bytes of the jar to install.- Returns:
- the bytes of the jar to install
-
getJarLength
int getJarLength()Yields the length, in bytes, of the jar to install.- Returns:
- the length
-
getDependencies
Stream<TransactionReference> getDependencies()Yields the dependencies of the jar to install.- Returns:
- the dependencies, as an ordered stream
-
getNumberOfDependencies
int getNumberOfDependencies()Yields the number of dependencies.- Returns:
- the number of dependencies
-