A B C D E F G H I K L M N P R S T U V W
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- AbstractCloseableNativeProxy - Class in com.exonum.binding.proxy
-
A proxy of a native object.
- AbstractCloseableNativeProxy(long, boolean) - Constructor for class com.exonum.binding.proxy.AbstractCloseableNativeProxy
-
Creates a native proxy.
- AbstractCloseableNativeProxy(long, boolean, AbstractCloseableNativeProxy) - Constructor for class com.exonum.binding.proxy.AbstractCloseableNativeProxy
-
Creates a native proxy.
- AbstractCloseableNativeProxy(long, boolean, Collection<AbstractCloseableNativeProxy>) - Constructor for class com.exonum.binding.proxy.AbstractCloseableNativeProxy
-
Creates a native proxy.
- AbstractNativeProxy - Class in com.exonum.binding.proxy
-
A base class of a native proxy.
- AbstractNativeProxy(NativeHandle) - Constructor for class com.exonum.binding.proxy.AbstractNativeProxy
- AbstractService - Class in com.exonum.binding.service
-
A base class for user services.
- AbstractService(short, String, TransactionConverter) - Constructor for class com.exonum.binding.service.AbstractService
-
Creates an AbstractService.
- add(CleanAction<?>) - Method in class com.exonum.binding.proxy.Cleaner
-
Registers a new clean action with this context.
- add(E) - Method in class com.exonum.binding.storage.indices.KeySetIndexProxy
-
Adds a new element to the set.
- add(E) - Method in class com.exonum.binding.storage.indices.ValueSetIndexProxy
-
Adds a new element to the set.
- add(T) - Method in interface com.exonum.binding.storage.indices.ListIndex
-
Adds a new element to the end of the list.
- addAll(Collection<? extends T>) - Method in interface com.exonum.binding.storage.indices.ListIndex
-
Adds all elements from the specified collection to this list.
- afterCommit(long, int, long) - Method in class com.exonum.binding.service.adapters.UserServiceAdapter
-
Handles block committed event.
- afterCommit(BlockCommittedEvent) - Method in interface com.exonum.binding.service.Service
-
Handles read-only block commit event.
- assignee() - Method in annotation type com.exonum.binding.annotations.ImproveDocs
-
Whom this item is assigned to.
- authorPk(PublicKey) - Method in class com.exonum.binding.transaction.TransactionContext.Builder
-
Sets transaction author public key for the context.
- AutoGenerationCandidate - Annotation Type in com.exonum.binding.annotations
-
An annotation intended to mark APIs that are good candidates to be generated auto-magically.
B
- Block - Class in com.exonum.binding.blockchain
-
Exonum block header data structure.
- Block() - Constructor for class com.exonum.binding.blockchain.Block
- Block.Builder - Class in com.exonum.binding.blockchain
- BlockAdapterFactory - Class in com.exonum.binding.blockchain.serialization
-
Class used to automatically create Gson type adapters for AutoValue classes.
- BlockAdapterFactory() - Constructor for class com.exonum.binding.blockchain.serialization.BlockAdapterFactory
- Blockchain - Class in com.exonum.binding.blockchain
-
Provides read-only access to the subset of blockchain::Schema features in the Core API: blocks, transaction messages, execution results.
- BlockCommittedEvent - Interface in com.exonum.binding.service
-
The blockchain state just after the corresponding block is committed.
- BlockCommittedEventImpl - Class in com.exonum.binding.service
- BlockCommittedEventImpl() - Constructor for class com.exonum.binding.service.BlockCommittedEventImpl
- blockHash(HashCode) - Method in class com.exonum.binding.blockchain.Block.Builder
-
Sets the hash of the block binary representation.
- BlockSerializer - Enum in com.exonum.binding.blockchain.serialization
- build() - Method in class com.exonum.binding.blockchain.Block.Builder
-
Creates a new block with the set arguments.
- build() - Method in class com.exonum.binding.transaction.RawTransaction.Builder
-
Creates the RawTransaction instance with specified parameters.
- build() - Method in class com.exonum.binding.transaction.TransactionContext.Builder
-
Creates the transaction context instance.
- builder() - Static method in class com.exonum.binding.blockchain.Block
-
Creates a new block builder.
- builder() - Static method in interface com.exonum.binding.transaction.TransactionContext
-
Returns the builder of the transaction context.
- Builder() - Constructor for class com.exonum.binding.blockchain.Block.Builder
- Builder() - Constructor for class com.exonum.binding.transaction.RawTransaction.Builder
C
- canModify() - Method in class com.exonum.binding.storage.database.View
-
Returns true if this view allows modifications to the database state; false if it is immutable.
- clean() - Method in interface com.exonum.binding.proxy.CleanAction
-
A clean operation to perform.
- clean() - Method in class com.exonum.binding.proxy.ProxyDestructor
-
Closes the native handle, so that it can no longer be accessed, and performs a clean action, passing the native handle value.
- CleanAction<ResourceDescriptionT> - Interface in com.exonum.binding.proxy
-
A clean action is an operation that is performed to release some resources.
- Cleaner - Class in com.exonum.binding.proxy
-
A context controlling lifecycle of native proxies.
- Cleaner() - Constructor for class com.exonum.binding.proxy.Cleaner
-
Creates a new cleaner with no (an empty) description.
- Cleaner(String) - Constructor for class com.exonum.binding.proxy.Cleaner
-
Creates a new cleaner.
- clear() - Method in class com.exonum.binding.storage.indices.KeySetIndexProxy
-
Removes all of the elements from this set.
- clear() - Method in interface com.exonum.binding.storage.indices.ListIndex
-
Clears the list.
- clear() - Method in interface com.exonum.binding.storage.indices.MapIndex
-
Removes all of the key-value pairs from the map.
- clear() - Method in class com.exonum.binding.storage.indices.MapIndexProxy
- clear() - Method in class com.exonum.binding.storage.indices.ProofMapIndexProxy
- clear() - Method in class com.exonum.binding.storage.indices.ValueSetIndexProxy
-
Removes all of the elements from this set.
- close() - Method in class com.exonum.binding.proxy.AbstractCloseableNativeProxy
- close() - Method in class com.exonum.binding.proxy.Cleaner
-
Performs all the clean operations that has been registered in this context in a reversed order of the registration order.
- close() - Method in interface com.exonum.binding.proxy.CloseableNativeProxy
-
Closes the native proxy and releases any native resources associated with this proxy.
- close() - Method in class com.exonum.binding.proxy.NativeHandle
- close() - Method in class com.exonum.binding.service.adapters.UserServiceAdapter
-
Close this service adapter.
- CloseableNativeProxy - Interface in com.exonum.binding.proxy
-
A proxy of a native object that must be explicitly closed.
- CloseFailuresException - Exception in com.exonum.binding.proxy
-
Indicates that there were failures when it was attempted to close some native proxies.
- com.exonum.binding.annotations - package com.exonum.binding.annotations
- com.exonum.binding.blockchain - package com.exonum.binding.blockchain
- com.exonum.binding.blockchain.serialization - package com.exonum.binding.blockchain.serialization
- com.exonum.binding.proxy - package com.exonum.binding.proxy
- com.exonum.binding.service - package com.exonum.binding.service
- com.exonum.binding.service.adapters - package com.exonum.binding.service.adapters
-
An internal package with adapters of Java Service interfaces to the interface, convenient to the native code.
- com.exonum.binding.storage.database - package com.exonum.binding.storage.database
- com.exonum.binding.storage.indices - package com.exonum.binding.storage.indices
-
Contains Exonum indexes — persistent, named collections built on top of Exonum key-value storage.
- com.exonum.binding.transaction - package com.exonum.binding.transaction
- com.exonum.binding.transport - package com.exonum.binding.transport
- com.exonum.binding.util - package com.exonum.binding.util
- contains(E) - Method in class com.exonum.binding.storage.indices.KeySetIndexProxy
-
Returns true if this set contains the specified element.
- contains(E) - Method in class com.exonum.binding.storage.indices.ValueSetIndexProxy
-
Returns true if this set contains the specified element.
- containsBlock(Block) - Method in class com.exonum.binding.blockchain.Blockchain
-
Returns true if the blockchain contains exactly the same block as the passed value; false if it does not contain such block.
- containsByHash(HashCode) - Method in class com.exonum.binding.storage.indices.ValueSetIndexProxy
-
Returns true if this set contains an element with the specified hash.
- containsKey(K) - Method in interface com.exonum.binding.storage.indices.MapIndex
-
Returns true if this map contains a mapping for the specified key.
- containsKey(K) - Method in class com.exonum.binding.storage.indices.MapIndexProxy
- containsKey(K) - Method in class com.exonum.binding.storage.indices.ProofMapIndexProxy
- convertToTransaction(RawTransaction) - Method in class com.exonum.binding.service.AbstractService
- convertToTransaction(RawTransaction) - Method in interface com.exonum.binding.service.Service
-
Converts an Exonum raw transaction to an executable transaction of this service.
- convertTransaction(short, byte[]) - Method in class com.exonum.binding.service.adapters.UserServiceAdapter
-
Converts a transaction messages into an executable transaction of this service.
- create() - Static method in class com.exonum.binding.blockchain.serialization.BlockAdapterFactory
- create() - Static method in class com.exonum.binding.blockchain.serialization.TransactionLocationAdapterFactory
- create() - Static method in class com.exonum.binding.blockchain.serialization.TransactionResultAdapterFactory
- create() - Static method in interface com.exonum.binding.transport.Server
-
Creates an HTTP server with no request handlers.
- createDataSchema(View) - Method in class com.exonum.binding.service.AbstractService
-
Creates a data schema of this service.
- createFork(long, Cleaner) - Method in interface com.exonum.binding.service.adapters.ViewFactory
-
Creates a new owning fork.
- createFork(long, Cleaner) - Method in enum com.exonum.binding.service.adapters.ViewProxyFactory
- createFork(Cleaner) - Method in interface com.exonum.binding.storage.database.Database
-
Creates a new database fork.
- createFork(Cleaner) - Method in class com.exonum.binding.storage.database.MemoryDb
- createPublicApiHandlers(Node, Router) - Method in interface com.exonum.binding.service.Service
-
Creates handlers that makes up the public API of this service.
- createRouter() - Method in interface com.exonum.binding.transport.Server
-
Creates a request router.
- createSnapshot(long, Cleaner) - Method in interface com.exonum.binding.service.adapters.ViewFactory
-
Creates a new owning snapshot.
- createSnapshot(long, Cleaner) - Method in enum com.exonum.binding.service.adapters.ViewProxyFactory
- createSnapshot(Cleaner) - Method in interface com.exonum.binding.storage.database.Database
-
Creates a new snapshot of the database state.
- createSnapshot(Cleaner) - Method in class com.exonum.binding.storage.database.MemoryDb
D
- Database - Interface in com.exonum.binding.storage.database
-
Represents an underlying Exonum Storage database.
- disposeInternal() - Method in class com.exonum.binding.proxy.AbstractCloseableNativeProxy
-
Releases any resources owned by this proxy (e.g., the corresponding native object).
- disposeInternal() - Method in class com.exonum.binding.service.NodeProxy
- disposeInternal() - Method in class com.exonum.binding.storage.database.MemoryDb
E
- entries() - Method in interface com.exonum.binding.storage.indices.MapIndex
-
Returns an iterator over the map entries.
- entries() - Method in class com.exonum.binding.storage.indices.MapIndexProxy
- entries() - Method in class com.exonum.binding.storage.indices.ProofMapIndexProxy
- Entry() - Constructor for class com.exonum.binding.storage.indices.ValueSetIndexProxy.Entry
- EntryIndexProxy<T> - Class in com.exonum.binding.storage.indices
-
An Entry is a database index that can contain no or a single value.
- error(int, String) - Static method in class com.exonum.binding.blockchain.TransactionResult
-
Creates a transaction result corresponding to a user-defined exception during transaction execution (or the corresponding Error in Rust services).
- ERROR - com.exonum.binding.blockchain.TransactionResult.Type
-
Indicates a service-defined error during transaction execution.
- execute(long, byte[], byte[]) - Method in class com.exonum.binding.service.adapters.UserTransactionAdapter
- execute(TransactionContext) - Method in interface com.exonum.binding.transaction.Transaction
-
Execute the transaction, possibly modifying the blockchain state.
F
- findBlock(HashCode) - Method in class com.exonum.binding.blockchain.Blockchain
-
Returns a block object for given block hash.
- fork(Fork) - Method in class com.exonum.binding.transaction.TransactionContext.Builder
-
Sets database fork for the context.
- Fork - Class in com.exonum.binding.storage.database
-
A fork is a database view, allowing both read and write operations.
- from(Runnable, ResourceDescriptionT) - Static method in interface com.exonum.binding.proxy.CleanAction
-
Creates a clean action with a given type.
- fromBytes(byte[]) - Method in enum com.exonum.binding.blockchain.serialization.BlockSerializer
- fromBytes(byte[]) - Method in enum com.exonum.binding.blockchain.serialization.TransactionLocationSerializer
- fromBytes(byte[]) - Method in enum com.exonum.binding.blockchain.serialization.TransactionResultSerializer
G
- get() - Method in class com.exonum.binding.proxy.NativeHandle
-
Returns a native implementation-specific handle if it may be safely used to access the native object.
- get() - Method in class com.exonum.binding.storage.indices.EntryIndexProxy
-
If value is present in the entry, returns it, otherwise, throws
NoSuchElementException
. - get(long) - Method in interface com.exonum.binding.storage.indices.ListIndex
-
Returns the element at the given index.
- get(K) - Method in interface com.exonum.binding.storage.indices.MapIndex
-
Returns the value associated with the specified key, or
null
if there is no mapping for the key. - get(K) - Method in class com.exonum.binding.storage.indices.MapIndexProxy
- get(K) - Method in class com.exonum.binding.storage.indices.ProofMapIndexProxy
- getActualConfiguration() - Method in class com.exonum.binding.blockchain.Blockchain
-
Returns the configuration for the latest height of the blockchain, including services and their parameters.
- getAuthorPk() - Method in interface com.exonum.binding.transaction.TransactionContext
-
Returns public key of the transaction author.
- getBlock(long) - Method in class com.exonum.binding.blockchain.Blockchain
-
Returns the block at the given height.
- getBlockHash() - Method in class com.exonum.binding.blockchain.Block
-
Returns the SHA-256 hash of this block.
- getBlockHashes() - Method in class com.exonum.binding.blockchain.Blockchain
-
Returns a list of all block hashes, indexed by the block height.
- getBlocks() - Method in class com.exonum.binding.blockchain.Blockchain
-
Returns a map that stores a block object for every block hash.
- getBlockTransactions(long) - Method in class com.exonum.binding.blockchain.Blockchain
-
Returns a proof list of transaction hashes committed in the block at the given height.
- getBlockTransactions(Block) - Method in class com.exonum.binding.blockchain.Blockchain
-
Returns a proof list of transaction hashes committed in the given block.
- getBlockTransactions(HashCode) - Method in class com.exonum.binding.blockchain.Blockchain
-
Returns a proof list of transaction hashes committed in the block with the given id.
- getCleaner() - Method in class com.exonum.binding.storage.database.View
-
Returns the cleaner of this view.
- getCurrentValue() - Method in class com.exonum.binding.storage.database.IncrementalModificationCounter
- getCurrentValue() - Method in interface com.exonum.binding.storage.database.ModificationCounter
-
Returns the current value of the counter.
- getDatabase() - Method in class com.exonum.binding.service.NodeFake
-
Returns the underlying database.
- getDescription() - Method in class com.exonum.binding.proxy.Cleaner
-
Returns a description of this cleaner.
- getErrorCode() - Method in class com.exonum.binding.blockchain.TransactionResult
-
Returns an error code of a transaction if its execution resulted in a service-defined error.
- getErrorCode() - Method in exception com.exonum.binding.transaction.TransactionExecutionException
-
Returns the transaction error code.
- getErrorDescription() - Method in class com.exonum.binding.blockchain.TransactionResult
-
Returns the description of a transaction if its execution resulted in an error; or an empty string if there is no description.
- getFork() - Method in interface com.exonum.binding.transaction.TransactionContext
-
Returns database view allowing R/W operations.
- getHash() - Method in class com.exonum.binding.storage.indices.ValueSetIndexProxy.Entry
-
Returns a hash of the element of the set.
- getHeight() - Method in class com.exonum.binding.blockchain.Block
-
Returns the height of this block which is a distance between the last block and the "genesis" block.
- getHeight() - Method in class com.exonum.binding.blockchain.Blockchain
-
Returns the blockchain height which is the height of the latest committed block in the blockchain.
- getHeight() - Method in class com.exonum.binding.blockchain.TransactionLocation
-
Height of the block where the transaction was committed.
- getHeight() - Method in interface com.exonum.binding.service.BlockCommittedEvent
-
Returns the current blockchain height, which is the height of the last committed block.
- getHeight() - Method in class com.exonum.binding.service.BlockCommittedEventImpl
- getId() - Method in class com.exonum.binding.service.AbstractService
- getId() - Method in class com.exonum.binding.service.adapters.UserServiceAdapter
- getId() - Method in interface com.exonum.binding.service.Service
-
Returns the id of the service.
- getIndexInBlock() - Method in class com.exonum.binding.blockchain.TransactionLocation
-
Zero-based position of this transaction in the block.
- getInstance() - Static method in enum com.exonum.binding.service.adapters.ViewProxyFactory
-
Returns an instance of this factory.
- getLast() - Method in interface com.exonum.binding.storage.indices.ListIndex
-
Returns the last element of the list.
- getLastBlock() - Method in class com.exonum.binding.blockchain.Blockchain
-
Returns the latest committed block.
- getModificationCounter() - Method in class com.exonum.binding.storage.database.View
-
Returns a modification counter, corresponding to this view.
- getName() - Method in class com.exonum.binding.service.AbstractService
- getName() - Method in class com.exonum.binding.service.adapters.UserServiceAdapter
- getName() - Method in interface com.exonum.binding.service.Service
-
Returns the name of the service.
- getNativeHandle() - Method in class com.exonum.binding.proxy.AbstractCloseableNativeProxy
-
Returns a native implementation-specific handle if it may be safely used to access the native object.
- getNativeHandle() - Method in class com.exonum.binding.proxy.AbstractNativeProxy
-
Returns a handle to the native object if it may be safely used to access the native object.
- getNumRegisteredActions() - Method in class com.exonum.binding.proxy.Cleaner
-
Returns the number of the registered clean actions.
- getNumTransactions() - Method in class com.exonum.binding.blockchain.Block
-
Number of transactions in this block.
- getPayload() - Method in class com.exonum.binding.transaction.RawTransaction
-
Returns the transaction payload which contains actual transaction data.
- getPreviousBlockHash() - Method in class com.exonum.binding.blockchain.Block
-
Hash link to the previous block in the blockchain.
- getProof(long) - Method in class com.exonum.binding.storage.indices.ProofListIndexProxy
-
Returns a proof that an element exists at the specified index in this list.
- getProof(Collection<? extends K>) - Method in class com.exonum.binding.storage.indices.ProofMapIndexProxy
-
Returns a proof that there are values mapped to the specified keys or that there are no such mappings.
- getProof(K, K...) - Method in class com.exonum.binding.storage.indices.ProofMapIndexProxy
-
Returns a proof that there are values mapped to the specified keys or that there are no such mappings.
- getProposerId() - Method in class com.exonum.binding.blockchain.Block
-
Identifier of the leader node which has proposed the block.
- getPublicKey() - Method in interface com.exonum.binding.service.Node
-
Returns the service public key of this node.
- getPublicKey() - Method in class com.exonum.binding.service.NodeFake
- getPublicKey() - Method in class com.exonum.binding.service.NodeProxy
-
Returns the service public key of this node.
- getRangeProof(long, long) - Method in class com.exonum.binding.storage.indices.ProofListIndexProxy
-
Returns a proof that some elements exist in the specified range in this list.
- getRootHash() - Method in class com.exonum.binding.storage.indices.ProofListIndexProxy
-
Returns the root hash of the proof list.
- getRootHash() - Method in class com.exonum.binding.storage.indices.ProofMapIndexProxy
-
Returns the root hash of the underlying Merkle-Patricia tree.
- getServiceId() - Method in class com.exonum.binding.transaction.RawTransaction
-
Returns a service identifier which the transaction belongs to.
- getSnapshot() - Method in interface com.exonum.binding.service.BlockCommittedEvent
-
Returns the current database snapshot.
- getSnapshot() - Method in class com.exonum.binding.service.BlockCommittedEventImpl
- getStateHash() - Method in class com.exonum.binding.blockchain.Block
-
Hash of the blockchain state after applying transactions in the block.
- getStateHashes() - Method in interface com.exonum.binding.service.Schema
-
Returns the root hashes of Merklized tables in this database schema, as of the current state of the database.
- getStateHashes(long) - Method in class com.exonum.binding.service.adapters.UserServiceAdapter
-
Returns the state hashes of the service.
- getStateHashes(Snapshot) - Method in class com.exonum.binding.service.AbstractService
- getStateHashes(Snapshot) - Method in interface com.exonum.binding.service.Service
-
Returns a list of root hashes of all Merklized tables defined by this service, as of the given snapshot of the blockchain state.
- getTransactionId() - Method in class com.exonum.binding.transaction.RawTransaction
-
Returns the type of this transaction within a service.
- getTransactionMessageHash() - Method in interface com.exonum.binding.transaction.TransactionContext
-
Returns SHA-256 hash of the transaction message that carried the payload from which the transaction was created.
- getTxLocation(HashCode) - Method in class com.exonum.binding.blockchain.Blockchain
-
Returns transaction position inside the blockchain for given message hash.
- getTxLocations() - Method in class com.exonum.binding.blockchain.Blockchain
-
Returns a map that keeps the transaction position inside the blockchain for every transaction hash.
- getTxMessages() - Method in class com.exonum.binding.blockchain.Blockchain
-
Returns a map of transaction messages identified by their SHA-256 hashes.
- getTxResult(HashCode) - Method in class com.exonum.binding.blockchain.Blockchain
-
Returns a transaction execution result for given message hash.
- getTxResults() - Method in class com.exonum.binding.blockchain.Blockchain
-
Returns a map with a key-value pair of a transaction hash and execution result.
- getTxRootHash() - Method in class com.exonum.binding.blockchain.Block
-
Root hash of the Merkle tree of transactions in this block.
- getType() - Method in class com.exonum.binding.blockchain.TransactionResult
-
Returns the type of this transaction execution result.
- getValidatorId() - Method in interface com.exonum.binding.service.BlockCommittedEvent
-
If this node is a validator, returns its identifier.
- getValidatorId() - Method in class com.exonum.binding.service.BlockCommittedEventImpl
- getValue() - Method in class com.exonum.binding.storage.indices.ValueSetIndexProxy.Entry
-
Returns an element of the set.
- getViewNativeHandle() - Method in class com.exonum.binding.storage.database.View
-
Returns a native handle of this view.
H
- hashCode() - Method in class com.exonum.binding.blockchain.Block
- hashCode() - Method in class com.exonum.binding.storage.indices.ValueSetIndexProxy.Entry
- hashes() - Method in class com.exonum.binding.storage.indices.ValueSetIndexProxy
-
Creates an iterator over the hashes of the elements in this set.
- height(long) - Method in class com.exonum.binding.blockchain.Block.Builder
-
Sets the block height, which is the distance between the block and the genesis block, which has zero height.
I
- ImproveDocs - Annotation Type in com.exonum.binding.annotations
-
Indicates that a documentation of a field, method or class needs to be improved (or added if absent).
- IncrementalModificationCounter - Class in com.exonum.binding.storage.database
- IncrementalModificationCounter() - Constructor for class com.exonum.binding.storage.database.IncrementalModificationCounter
- info() - Method in class com.exonum.binding.service.adapters.UserTransactionAdapter
- info() - Method in interface com.exonum.binding.transaction.Transaction
-
Returns some information about this transaction in JSON format.
- initialize(long) - Method in class com.exonum.binding.service.adapters.UserServiceAdapter
-
Returns the service initial global configuration.
- initialize(Fork) - Method in interface com.exonum.binding.service.Service
-
Initializes the service.
- INSTANCE - com.exonum.binding.blockchain.serialization.BlockSerializer
- INSTANCE - com.exonum.binding.blockchain.serialization.TransactionLocationSerializer
- INSTANCE - com.exonum.binding.blockchain.serialization.TransactionResultSerializer
- INSTANCE - com.exonum.binding.service.adapters.ViewProxyFactory
- InternalServerError - Exception in com.exonum.binding.service
-
Indicates that an internal error occurred during transaction processing.
- INVALID_NATIVE_HANDLE - Static variable in class com.exonum.binding.proxy.NativeHandle
-
A reserved value for an invalid native handle, equal to
nullptr
in C++. - isClosed() - Method in class com.exonum.binding.proxy.Cleaner
-
Returns true if this cleaner is closed.
- isEmpty() - Method in interface com.exonum.binding.storage.indices.ListIndex
-
Returns true if the list is empty, false — otherwise.
- isEmpty() - Method in interface com.exonum.binding.storage.indices.MapIndex
-
Returns true if this map has no entries.
- isModifiedSince(int) - Method in class com.exonum.binding.storage.database.IncrementalModificationCounter
- isModifiedSince(int) - Method in interface com.exonum.binding.storage.database.ModificationCounter
-
Returns true if the counter was modified since the given value (if
ModificationCounter.notifyModified()
has been invoked); false — otherwise. - isPresent() - Method in class com.exonum.binding.storage.indices.EntryIndexProxy
-
Returns true if this entry exists in the database.
- isSuccessful() - Method in class com.exonum.binding.blockchain.TransactionResult
-
Returns true if transaction was successful, false otherwise.
- isValidHandle() - Method in class com.exonum.binding.proxy.AbstractNativeProxy
-
Returns true if this proxy has a valid native handle.
- iterator() - Method in class com.exonum.binding.storage.indices.KeySetIndexProxy
-
Creates an iterator over the set elements.
- iterator() - Method in interface com.exonum.binding.storage.indices.ListIndex
-
Returns an iterator over the elements of the list.
- iterator() - Method in class com.exonum.binding.storage.indices.ValueSetIndexProxy
-
Returns an iterator over the entries of this set.
K
- keys() - Method in interface com.exonum.binding.storage.indices.MapIndex
-
Returns an iterator over the map keys in lexicographical order.
- keys() - Method in class com.exonum.binding.storage.indices.MapIndexProxy
- keys() - Method in class com.exonum.binding.storage.indices.ProofMapIndexProxy
- KeySetIndexProxy<E> - Class in com.exonum.binding.storage.indices
-
A key set is an index that contains no duplicate elements (keys).
L
- LibraryLoader - Class in com.exonum.binding.util
-
A loader of the native shared library with Exonum framework bindings.
- ListIndex<T> - Interface in com.exonum.binding.storage.indices
-
A list index proxy is a contiguous list of elements.
- ListIndexProxy<E> - Class in com.exonum.binding.storage.indices
-
A list index proxy is a contiguous list of elements.
- load() - Static method in class com.exonum.binding.util.LibraryLoader
-
Loads the native library with Exonum framework bindings.
M
- MapIndex<K,V> - Interface in com.exonum.binding.storage.indices
-
A MapIndex is an index that maps keys to values.
- MapIndexProxy<K,V> - Class in com.exonum.binding.storage.indices
-
A MapIndex is an index that maps keys to values.
- MAX_USER_DEFINED_ERROR_CODE - Static variable in class com.exonum.binding.blockchain.TransactionResult
-
The maximum allowed user-defined transaction error code.
- MemoryDb - Class in com.exonum.binding.storage.database
-
An in-memory database for testing purposes.
- merge(Fork) - Method in class com.exonum.binding.storage.database.MemoryDb
-
Applies the changes from the given fork to the database state.
- ModificationCounter - Interface in com.exonum.binding.storage.database
-
A counter of modification events of some objects (e.g., a collection, or a database view).
- mountPublicApiHandler(long) - Method in class com.exonum.binding.service.adapters.UserServiceAdapter
- mountSubRouter(String, Router) - Method in interface com.exonum.binding.transport.Server
-
Mounts the sub router on the root router of this server.
N
- nativeHandle - Variable in class com.exonum.binding.proxy.AbstractNativeProxy
-
A handle to the native object.
- NativeHandle - Class in com.exonum.binding.proxy
-
An implementation-specific handle to the native object.
- NativeHandle(long) - Constructor for class com.exonum.binding.proxy.NativeHandle
-
Creates new native handle.
- newBuilder() - Static method in class com.exonum.binding.transaction.RawTransaction
-
Returns the new builder for the transaction.
- newInGroupUnsafe(String, byte[], View, Serializer<E>) - Static method in class com.exonum.binding.storage.indices.KeySetIndexProxy
-
Creates a new key set in a collection group with the given name.
- newInGroupUnsafe(String, byte[], View, Serializer<E>) - Static method in class com.exonum.binding.storage.indices.ListIndexProxy
-
Creates a new list in a collection group with the given name.
- newInGroupUnsafe(String, byte[], View, Serializer<E>) - Static method in class com.exonum.binding.storage.indices.ProofListIndexProxy
-
Creates a new list in a collection group with the given name.
- newInGroupUnsafe(String, byte[], View, Serializer<E>) - Static method in class com.exonum.binding.storage.indices.ValueSetIndexProxy
-
Creates a new value set in a collection group with the given name.
- newInGroupUnsafe(String, byte[], View, Serializer<K>, Serializer<V>) - Static method in class com.exonum.binding.storage.indices.MapIndexProxy
-
Creates a new map in a collection group with the given name.
- newInGroupUnsafe(String, byte[], View, Serializer<K>, Serializer<V>) - Static method in class com.exonum.binding.storage.indices.ProofMapIndexProxy
-
Creates a new proof map in a collection group with the given name.
- newInstance() - Static method in class com.exonum.binding.storage.database.MemoryDb
-
Creates a new empty MemoryDb.
- newInstance(long, boolean, Cleaner) - Static method in class com.exonum.binding.storage.database.Fork
-
Creates a new Fork proxy.
- newInstance(long, boolean, Cleaner) - Static method in class com.exonum.binding.storage.database.Snapshot
-
Creates a new Snapshot proxy.
- newInstance(long, Cleaner) - Static method in class com.exonum.binding.storage.database.Fork
-
Creates a new owning Fork proxy.
- newInstance(long, Cleaner) - Static method in class com.exonum.binding.storage.database.Snapshot
-
Creates a new owning Snapshot proxy.
- newInstance(View) - Static method in class com.exonum.binding.blockchain.Blockchain
-
Constructs a new blockchain instance for the given database view.
- newInstance(String, View, Serializer<E>) - Static method in class com.exonum.binding.storage.indices.EntryIndexProxy
-
Creates a new Entry.
- newInstance(String, View, Serializer<E>) - Static method in class com.exonum.binding.storage.indices.KeySetIndexProxy
-
Creates a new key set proxy.
- newInstance(String, View, Serializer<E>) - Static method in class com.exonum.binding.storage.indices.ListIndexProxy
-
Creates a new ListIndexProxy.
- newInstance(String, View, Serializer<E>) - Static method in class com.exonum.binding.storage.indices.ProofListIndexProxy
-
Creates a new ProofListIndexProxy.
- newInstance(String, View, Serializer<E>) - Static method in class com.exonum.binding.storage.indices.ValueSetIndexProxy
-
Creates a new value set.
- newInstance(String, View, Serializer<K>, Serializer<V>) - Static method in class com.exonum.binding.storage.indices.MapIndexProxy
-
Creates a new MapIndexProxy.
- newInstance(String, View, Serializer<K>, Serializer<V>) - Static method in class com.exonum.binding.storage.indices.ProofMapIndexProxy
-
Creates a ProofMapIndexProxy.
- newInstance(String, View, Class<E>) - Static method in class com.exonum.binding.storage.indices.EntryIndexProxy
-
Creates a new Entry storing protobuf messages.
- newInstance(String, View, Class<E>) - Static method in class com.exonum.binding.storage.indices.KeySetIndexProxy
-
Creates a new key set storing protobuf messages.
- newInstance(String, View, Class<E>) - Static method in class com.exonum.binding.storage.indices.ListIndexProxy
-
Creates a new ListIndexProxy storing protobuf messages.
- newInstance(String, View, Class<E>) - Static method in class com.exonum.binding.storage.indices.ProofListIndexProxy
-
Creates a new ProofListIndexProxy storing protobuf messages.
- newInstance(String, View, Class<E>) - Static method in class com.exonum.binding.storage.indices.ValueSetIndexProxy
-
Creates a new value set storing protobuf messages.
- newInstance(String, View, Class<K>, Class<V>) - Static method in class com.exonum.binding.storage.indices.MapIndexProxy
-
Creates a new MapIndexProxy using protobuf messages.
- newRegistered(Cleaner, NativeHandle, Class<?>, LongConsumer) - Static method in class com.exonum.binding.proxy.ProxyDestructor
-
Creates a new destructor of a native proxy, registered in the given cleaner.
- Node - Interface in com.exonum.binding.service
-
An Exonum node context.
- NodeFake - Class in com.exonum.binding.service
-
An implementation of a Node interface for testing purposes.
- NodeFake(MemoryDb) - Constructor for class com.exonum.binding.service.NodeFake
-
Creates a new node fake with the given database and an empty public key.
- NodeFake(MemoryDb, PublicKey) - Constructor for class com.exonum.binding.service.NodeFake
-
Creates a new node fake with the given database.
- NodeProxy - Class in com.exonum.binding.service
-
An Exonum node context.
- NodeProxy(long) - Constructor for class com.exonum.binding.service.NodeProxy
-
Creates a proxy of a node.
- notifyModified() - Method in class com.exonum.binding.storage.database.IncrementalModificationCounter
- notifyModified() - Method in interface com.exonum.binding.storage.database.ModificationCounter
-
Notifies this counter that the source object is modified, updating its current value.
- numTransactions(int) - Method in class com.exonum.binding.blockchain.Block.Builder
-
Sets the number of transactions in this block.
P
- payload(byte[]) - Method in class com.exonum.binding.transaction.RawTransaction.Builder
-
Sets the payload of the transaction.
- previousBlockHash(HashCode) - Method in class com.exonum.binding.blockchain.Block.Builder
-
Sets the hash of the previous block in the hash chain.
- ProofListIndexProxy<E> - Class in com.exonum.binding.storage.indices
-
A proof list index proxy is a contiguous list of elements, capable of providing cryptographic proofs that it contains a certain element at a particular position.
- ProofMapIndexProxy<K,V> - Class in com.exonum.binding.storage.indices
-
A ProofMapIndexProxy is an index that maps keys to values.
- proposerId(int) - Method in class com.exonum.binding.blockchain.Block.Builder
-
Sets the identifier of the leader node which has proposed the block.
- ProxyDestructor - Class in com.exonum.binding.proxy
-
ProxyDestructor is a clean action that destroys a native proxy and closes its native handle.
- ProxyDestructor(NativeHandle, Class<?>, LongConsumer) - Constructor for class com.exonum.binding.proxy.ProxyDestructor
-
Creates a new destructor of a native proxy.
- put(K, V) - Method in interface com.exonum.binding.storage.indices.MapIndex
-
Puts a new key-value pair into the map.
- put(K, V) - Method in class com.exonum.binding.storage.indices.MapIndexProxy
- put(K, V) - Method in class com.exonum.binding.storage.indices.ProofMapIndexProxy
-
Puts a new key-value pair into the map.
- putAll(Map<? extends K, ? extends V>) - Method in interface com.exonum.binding.storage.indices.MapIndex
-
Puts all key-value pairs from the given map into this map.
- putAll(Map<? extends K, ? extends V>) - Method in class com.exonum.binding.storage.indices.MapIndexProxy
- putAll(Map<? extends K, ? extends V>) - Method in class com.exonum.binding.storage.indices.ProofMapIndexProxy
R
- RawTransaction - Class in com.exonum.binding.transaction
-
An Exonum raw transaction.
- RawTransaction() - Constructor for class com.exonum.binding.transaction.RawTransaction
- RawTransaction.Builder - Class in com.exonum.binding.transaction
- reason() - Method in annotation type com.exonum.binding.annotations.AutoGenerationCandidate
-
Why or how an element can be auto-generated.
- reason() - Method in annotation type com.exonum.binding.annotations.ImproveDocs
-
A description of why this annotation was added.
- remove() - Method in class com.exonum.binding.storage.indices.EntryIndexProxy
-
Removes a value from this entry.
- remove(E) - Method in class com.exonum.binding.storage.indices.KeySetIndexProxy
-
Removes the element from this set.
- remove(E) - Method in class com.exonum.binding.storage.indices.ValueSetIndexProxy
-
Removes the element from this set.
- remove(K) - Method in interface com.exonum.binding.storage.indices.MapIndex
-
Removes the value mapped to the specified key from the map.
- remove(K) - Method in class com.exonum.binding.storage.indices.MapIndexProxy
- remove(K) - Method in class com.exonum.binding.storage.indices.ProofMapIndexProxy
- removeByHash(HashCode) - Method in class com.exonum.binding.storage.indices.ValueSetIndexProxy
-
Removes an element from this set by its hash.
- removeLast() - Method in class com.exonum.binding.storage.indices.ListIndexProxy
-
Removes the last element of the list and returns it.
- resourceType() - Method in interface com.exonum.binding.proxy.CleanAction
-
Returns the description of the type of resource this action corresponds to.
- resourceType() - Method in class com.exonum.binding.proxy.ProxyDestructor
S
- Schema - Interface in com.exonum.binding.service
-
A schema of the collections (a.k.a.
- Server - Interface in com.exonum.binding.transport
-
An HTTP server providing transport for Exonum transactions and read-requests.
- Service - Interface in com.exonum.binding.service
-
An Exonum service.
- serviceId(short) - Method in class com.exonum.binding.transaction.RawTransaction.Builder
-
Sets the identifier of the service this transaction belongs to.
- set(long, T) - Method in interface com.exonum.binding.storage.indices.ListIndex
-
Replaces the element at the given index of the list with the specified element.
- set(T) - Method in class com.exonum.binding.storage.indices.EntryIndexProxy
-
Sets a new value of the entry, overwriting the previous value.
- size() - Method in interface com.exonum.binding.storage.indices.ListIndex
-
Returns the number of elements in the list.
- Snapshot - Class in com.exonum.binding.storage.database
-
A snapshot is a read-only, immutable database view.
- start(int) - Method in interface com.exonum.binding.transport.Server
-
Starts listening on the given TCP port.
- stateHash(HashCode) - Method in class com.exonum.binding.blockchain.Block.Builder
-
Sets the blockchain state hash at the moment this block was committed.
- stop() - Method in interface com.exonum.binding.transport.Server
-
Requests the server to stop listening to incoming requests and release any resources.
- stream() - Method in interface com.exonum.binding.storage.indices.ListIndex
-
Returns a stream of elements in this list.
- submitTransaction(RawTransaction) - Method in interface com.exonum.binding.service.Node
-
Creates a transaction from the given parameters, signs it with the node service key, and then submits it into Exonum network.
- submitTransaction(RawTransaction) - Method in class com.exonum.binding.service.NodeFake
-
Returns a zero hash always, ignoring the transaction.
- submitTransaction(RawTransaction) - Method in class com.exonum.binding.service.NodeProxy
-
Creates a transaction from the given parameters, signs it with the node service key, and then submits it into Exonum network.
- SUCCESS - com.exonum.binding.blockchain.TransactionResult.Type
-
Indicates successful transaction execution.
- successful() - Static method in class com.exonum.binding.blockchain.TransactionResult
-
Returns a transaction result corresponding to successful execution.
- SUCCESSFUL_RESULT_STATUS_CODE - Static variable in class com.exonum.binding.blockchain.TransactionResult
-
The status code of a successfully executed transaction.
T
- toBytes(Block) - Method in enum com.exonum.binding.blockchain.serialization.BlockSerializer
- toBytes(TransactionLocation) - Method in enum com.exonum.binding.blockchain.serialization.TransactionLocationSerializer
- toBytes(TransactionResult) - Method in enum com.exonum.binding.blockchain.serialization.TransactionResultSerializer
- toString() - Method in class com.exonum.binding.proxy.Cleaner
-
Returns a string representation of this object, including its hash code so that this instance can be easily identified in the logs.
- toString() - Method in class com.exonum.binding.proxy.NativeHandle
- toString() - Method in class com.exonum.binding.proxy.ProxyDestructor
- toString() - Method in exception com.exonum.binding.transaction.TransactionExecutionException
-
Returns a string representation of this error.
- toTransaction(RawTransaction) - Method in interface com.exonum.binding.service.TransactionConverter
-
Converts an Exonum raw transaction to an executable transaction of some service.
- Transaction - Interface in com.exonum.binding.transaction
-
An Exonum transaction.
- TransactionContext - Interface in com.exonum.binding.transaction
-
Transaction context class.
- TransactionContext.Builder - Class in com.exonum.binding.transaction
-
Transaction context builder.
- TransactionConverter - Interface in com.exonum.binding.service
-
A converter of a raw Exonum transaction, which contains transaction data, into an executable transaction.
- TransactionExecutionException - Exception in com.exonum.binding.transaction
-
An exception occurred during transaction execution.
- TransactionExecutionException(byte) - Constructor for exception com.exonum.binding.transaction.TransactionExecutionException
-
Constructs a new transaction exception with no description.
- TransactionExecutionException(byte, String) - Constructor for exception com.exonum.binding.transaction.TransactionExecutionException
-
Constructs a new transaction exception with the specified description.
- TransactionExecutionException(byte, String, Throwable) - Constructor for exception com.exonum.binding.transaction.TransactionExecutionException
-
Constructs a new transaction exception with the specified description and cause.
- transactionId(short) - Method in class com.exonum.binding.transaction.RawTransaction.Builder
-
Sets the identifier of the transaction within a service.
- TransactionLocation - Class in com.exonum.binding.blockchain
-
Transaction position in the blockchain.
- TransactionLocation() - Constructor for class com.exonum.binding.blockchain.TransactionLocation
- TransactionLocationAdapterFactory - Class in com.exonum.binding.blockchain.serialization
-
Class used to automatically create Gson type adapters for AutoValue classes.
- TransactionLocationAdapterFactory() - Constructor for class com.exonum.binding.blockchain.serialization.TransactionLocationAdapterFactory
- TransactionLocationSerializer - Enum in com.exonum.binding.blockchain.serialization
- TransactionResult - Class in com.exonum.binding.blockchain
-
Returns a result of the transaction execution.
- TransactionResult() - Constructor for class com.exonum.binding.blockchain.TransactionResult
- TransactionResult.Type - Enum in com.exonum.binding.blockchain
-
A type of transaction execution result.
- TransactionResultAdapterFactory - Class in com.exonum.binding.blockchain.serialization
-
Class used to automatically create Gson type adapters for AutoValue classes.
- TransactionResultAdapterFactory() - Constructor for class com.exonum.binding.blockchain.serialization.TransactionResultAdapterFactory
- TransactionResultSerializer - Enum in com.exonum.binding.blockchain.serialization
- truncate(long) - Method in class com.exonum.binding.storage.indices.ListIndexProxy
-
Truncates the list, reducing its size to
newSize
. - txMessageHash(HashCode) - Method in class com.exonum.binding.transaction.TransactionContext.Builder
-
Sets transaction message hash for the context.
- txRootHash(HashCode) - Method in class com.exonum.binding.blockchain.Block.Builder
-
Sets the Merkle root hash of the collection holding all transactions in this block.
- typeAdapter(Gson) - Static method in class com.exonum.binding.blockchain.Block
-
Provides a Gson type adapter for this class.
- typeAdapter(Gson) - Static method in class com.exonum.binding.blockchain.TransactionLocation
-
Provides a Gson type adapter for this class.
- typeAdapter(Gson) - Static method in class com.exonum.binding.blockchain.TransactionResult
-
Provides a Gson type adapter for this class.
U
- UNEXPECTED_ERROR - com.exonum.binding.blockchain.TransactionResult.Type
-
Indicates an unexpected error during transaction execution.
- UNEXPECTED_ERROR_STATUS_CODE - Static variable in class com.exonum.binding.blockchain.TransactionResult
-
The status code of transaction execution corresponding to an unexpected error during transaction execution (some unexpected runtime exception in Java, panic in Rust).
- unexpectedError(String) - Static method in class com.exonum.binding.blockchain.TransactionResult
-
Creates a transaction result corresponding to an unexpected error during transaction execution (some unexpected runtime exception in Java, panic in Rust).
- UserServiceAdapter - Class in com.exonum.binding.service.adapters
-
An adapter of a user-facing interface
Service
to an interface with a native code. - UserServiceAdapter(Service, Server, ViewFactory) - Constructor for class com.exonum.binding.service.adapters.UserServiceAdapter
- UserTransactionAdapter - Class in com.exonum.binding.service.adapters
-
An adapter of a user-facing interface
Transaction
to an interface with a native code. - UserTransactionAdapter(Transaction, ViewFactory) - Constructor for class com.exonum.binding.service.adapters.UserTransactionAdapter
V
- valueOf(long, long) - Static method in class com.exonum.binding.blockchain.TransactionLocation
- valueOf(Snapshot, OptionalInt, long) - Static method in class com.exonum.binding.service.BlockCommittedEventImpl
-
Creates a new block committed event.
- valueOf(String) - Static method in enum com.exonum.binding.blockchain.serialization.BlockSerializer
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.exonum.binding.blockchain.serialization.TransactionLocationSerializer
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.exonum.binding.blockchain.serialization.TransactionResultSerializer
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.exonum.binding.blockchain.TransactionResult.Type
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.exonum.binding.service.adapters.ViewProxyFactory
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum com.exonum.binding.blockchain.serialization.BlockSerializer
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum com.exonum.binding.blockchain.serialization.TransactionLocationSerializer
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum com.exonum.binding.blockchain.serialization.TransactionResultSerializer
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum com.exonum.binding.blockchain.TransactionResult.Type
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum com.exonum.binding.service.adapters.ViewProxyFactory
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Method in interface com.exonum.binding.storage.indices.MapIndex
-
Returns an iterator over the map values in lexicographical order of keys.
- values() - Method in class com.exonum.binding.storage.indices.MapIndexProxy
- values() - Method in class com.exonum.binding.storage.indices.ProofMapIndexProxy
- ValueSetIndexProxy<E> - Class in com.exonum.binding.storage.indices
-
A value set is an index that contains no duplicate elements (values).
- ValueSetIndexProxy.Entry<E> - Class in com.exonum.binding.storage.indices
-
An entry of a value set index: a hash-value pair.
- View - Class in com.exonum.binding.storage.database
-
Represents a view of a database.
- ViewFactory - Interface in com.exonum.binding.service.adapters
-
A factory of views.
- ViewProxyFactory - Enum in com.exonum.binding.service.adapters
-
A factory of View proxies.
W
- withSnapshot(Function<Snapshot, ResultT>) - Method in interface com.exonum.binding.service.Node
-
Performs a given function with a snapshot of the current database state.
- withSnapshot(Function<Snapshot, ResultT>) - Method in class com.exonum.binding.service.NodeFake
- withSnapshot(Function<Snapshot, ResultT>) - Method in class com.exonum.binding.service.NodeProxy
-
Performs a given function with a snapshot of the current database state.
All Classes All Packages