- 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.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.
- 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(BinaryMessage) - Method in class com.exonum.binding.service.AbstractService
-
- convertToTransaction(BinaryMessage) - Method in interface com.exonum.binding.service.Service
-
Converts an Exonum transaction message to an executable transaction of this service.
- convertTransaction(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 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
-
- 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
-
- getCleaner() - Method in class com.exonum.binding.storage.database.View
-
Returns the cleaner of this view.
- 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 exception com.exonum.binding.transaction.TransactionExecutionException
-
Returns the transaction error code.
- getHash() - Method in class com.exonum.binding.storage.indices.ValueSetIndexProxy.Entry
-
Returns a hash of the element of the set.
- 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.
- getInstance() - Static method in enum com.exonum.binding.service.adapters.ViewProxyFactory
-
Returns an instance of this factory.
- getInstance() - Static method in class com.exonum.binding.storage.database.ViewModificationCounter
-
- getKey() - Method in class com.exonum.binding.storage.indices.MapEntry
-
Returns the key in this entry.
- getLast() - Method in interface com.exonum.binding.storage.indices.ListIndex
-
Returns the last element of the list.
- getMessage() - Method in class com.exonum.binding.transaction.AbstractTransaction
-
- getMessage() - Method in interface com.exonum.binding.transaction.Transaction
-
Returns this transaction as a binary Exonum message.
- getModificationCount(View) - Method in class com.exonum.binding.storage.database.ViewModificationCounter
-
Returns the current value of the modification counter of the given 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.
- 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(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.
- 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.
- getPublicKey() - Method in interface com.exonum.binding.service.Node
-
Returns the 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 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.
- getStateHashes(Snapshot) - Method in class com.exonum.binding.service.AbstractService
-
- getStateHashes(long) - Method in class com.exonum.binding.service.adapters.UserServiceAdapter
-
Returns the state hashes of the service.
- 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(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.
- getValue() - Method in class com.exonum.binding.storage.indices.MapEntry
-
Returns the value in this entry.
- 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.
- 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).
- 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.
- 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++.
- InvalidTransactionException - Exception in com.exonum.binding.service
-
- invoke(MethodInvocation) - Method in class com.exonum.binding.util.LoggingInterceptor
-
- 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(View, Integer) - Method in class com.exonum.binding.storage.database.ViewModificationCounter
-
Returns true if the view has been modified since the given modCount.
- isPresent() - Method in class com.exonum.binding.storage.indices.EntryIndexProxy
-
Returns true if this entry exists in the database.
- isValid() - Method in class com.exonum.binding.service.adapters.UserTransactionAdapter
-
- isValid() - Method in interface com.exonum.binding.transaction.Transaction
-
Returns true if this transaction is valid: its data holds the invariants,
it has a correct signature, etc.
- 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.
- 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
-
- newInGroupUnsafe(String, byte[], View, Serializer<E>) - Static method in class com.exonum.binding.storage.indices.KeySetIndexProxy
-
- newInGroupUnsafe(String, byte[], View, Serializer<E>) - Static method in class com.exonum.binding.storage.indices.ListIndexProxy
-
- newInGroupUnsafe(String, byte[], View, Serializer<K>, Serializer<V>) - Static method in class com.exonum.binding.storage.indices.MapIndexProxy
-
- newInGroupUnsafe(String, byte[], View, Serializer<E>) - Static method in class com.exonum.binding.storage.indices.ProofListIndexProxy
-
- newInGroupUnsafe(String, byte[], View, Serializer<K>, Serializer<V>) - Static method in class com.exonum.binding.storage.indices.ProofMapIndexProxy
-
- newInGroupUnsafe(String, byte[], View, Serializer<E>) - Static method in class com.exonum.binding.storage.indices.ValueSetIndexProxy
-
- newInstance(long, Cleaner) - Static method in class com.exonum.binding.storage.database.Fork
-
Creates a new owning Fork proxy.
- newInstance(long, boolean, Cleaner) - Static method in class com.exonum.binding.storage.database.Fork
-
Creates a new Fork proxy.
- newInstance() - Static method in class com.exonum.binding.storage.database.MemoryDb
-
Creates a new empty MemoryDb.
- newInstance(long, Cleaner) - Static method in class com.exonum.binding.storage.database.Snapshot
-
Creates a new owning Snapshot proxy.
- newInstance(long, boolean, Cleaner) - Static method in class com.exonum.binding.storage.database.Snapshot
-
Creates a new Snapshot proxy.
- 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, Serializer<E>) - Static method in class com.exonum.binding.storage.indices.EntryIndexProxy
-
Creates a new Entry.
- 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, Serializer<E>) - Static method in class com.exonum.binding.storage.indices.KeySetIndexProxy
-
Creates a new key set proxy.
- 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, Serializer<E>) - Static method in class com.exonum.binding.storage.indices.ListIndexProxy
-
Creates a new ListIndexProxy.
- newInstance(String, View, Class<K>, Class<V>) - Static method in class com.exonum.binding.storage.indices.MapIndexProxy
-
Creates a new MapIndexProxy using protobuf messages.
- newInstance(String, View, Serializer<K>, Serializer<V>) - Static method in class com.exonum.binding.storage.indices.MapIndexProxy
-
Creates a new MapIndexProxy.
- 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, Serializer<E>) - Static method in class com.exonum.binding.storage.indices.ProofListIndexProxy
-
Creates a new ProofListIndexProxy.
- 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.ValueSetIndexProxy
-
Creates a new value set storing protobuf messages.
- newInstance(String, View, Serializer<E>) - Static method in class com.exonum.binding.storage.indices.ValueSetIndexProxy
-
Creates a new value set.
- 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, byte[]) - 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, ViewFactory) - Constructor for class com.exonum.binding.service.NodeProxy
-
Creates a proxy of a node.
- notifyModified(Fork) - Method in class com.exonum.binding.storage.database.ViewModificationCounter
-
Notifies that the fork is modified.