- 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.crypto - package com.exonum.binding.crypto
-
- com.exonum.binding.messages - package com.exonum.binding.messages
-
- 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.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
-
- createKeyPair(byte[], byte[]) - Static method in class com.exonum.binding.crypto.KeyPair
-
Creates a KeyPair
from two byte arrays, representing privateKey
and publicKey
.
- 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
-
- CryptoFunction - Interface in com.exonum.binding.crypto
-
A crypto function that provides several signature system crypto methods.
- CryptoFunctions - Class in com.exonum.binding.crypto
-
A collection of public-key signature system crypto functions.
- generateKeyPair(byte[]) - Method in interface com.exonum.binding.crypto.CryptoFunction
-
Generates a private key and a corresponding public key using a seed
byte array.
- generateKeyPair() - Method in interface com.exonum.binding.crypto.CryptoFunction
-
Generates a private key and a corresponding public key using a random seed.
- generateKeyPair(byte[]) - Method in enum com.exonum.binding.crypto.Ed25519CryptoFunction
-
- generateKeyPair() - Method in enum com.exonum.binding.crypto.Ed25519CryptoFunction
-
- 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
-
- getBody() - Method in interface com.exonum.binding.messages.Message
-
Returns the message body.
- getBody() - Method in class com.exonum.binding.messages.MessageReader
-
Returns the body of the message as a view in the underlying byte buffer.
- 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.
- 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.messages.AbstractTransaction
-
- getMessage() - Method in interface com.exonum.binding.messages.BinaryMessage
-
Returns the whole binary message.
- getMessage() - Method in class com.exonum.binding.messages.MessageReader
-
Returns the whole binary message.
- getMessage() - Method in interface com.exonum.binding.messages.Transaction
-
Returns this transaction as a binary Exonum message.
- getMessageType() - Method in interface com.exonum.binding.messages.Message
-
Returns the type of this message within a service (e.g., a transaction identifier).
- getMessageType() - Method in class com.exonum.binding.messages.MessageReader
-
- 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.
- getNetworkId() - Method in interface com.exonum.binding.messages.Message
-
Returns the blockchain network id.
- getNetworkId() - Method in class com.exonum.binding.messages.MessageReader
-
- getNumRegisteredActions() - Method in class com.exonum.binding.proxy.Cleaner
-
Returns the number of the registered clean actions.
- getPrivateKey() - Method in class com.exonum.binding.crypto.KeyPair
-
Returns a private key of this pair.
- 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) - Method in class com.exonum.binding.storage.indices.ProofMapIndexProxy
-
Returns a proof that there is a value mapped to the specified key or
that there is no such mapping.
- getPublicKey() - Method in class com.exonum.binding.crypto.KeyPair
-
Returns a public key of this pair.
- 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.
- getServiceId() - Method in interface com.exonum.binding.messages.Message
-
Returns the identifier of the service this message belongs to,
or zero if this message is an internal Exonum message.
- getServiceId() - Method in class com.exonum.binding.messages.MessageReader
-
- getSignature() - Method in interface com.exonum.binding.messages.Message
-
Returns the
Ed25519 signature
over this binary message.
- getSignature() - Method in class com.exonum.binding.messages.MessageReader
-
Returns the
Ed25519 signature
over this binary message.
- 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.
- getVersion() - Method in interface com.exonum.binding.messages.Message
-
Returns the major version of the Exonum serialization protocol.
- getVersion() - Method in class com.exonum.binding.messages.MessageReader
-
- 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 interface com.exonum.binding.messages.Transaction
-
Returns some information about this transaction in JSON format.
- info() - Method in class com.exonum.binding.service.adapters.UserTransactionAdapter
-
- 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.messages
-
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.messages
-
- 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.
- 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 interface com.exonum.binding.messages.Transaction
-
Returns true if this transaction is valid: its data holds the invariants,
it has a correct signature, etc.
- isValid() - Method in class com.exonum.binding.service.adapters.UserTransactionAdapter
-
- 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
-
- NET_ID_OFFSET - Static variable in interface com.exonum.binding.messages.Message
-
- 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, 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<K>, Serializer<V>) - Static method in class com.exonum.binding.storage.indices.MapIndexProxy
-
Creates a new MapIndexProxy.
- 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, Serializer<E>) - Static method in class com.exonum.binding.storage.indices.ValueSetIndexProxy
-
Creates a new value set proxy.
- 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) - 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.
- Schema - Interface in com.exonum.binding.service
-
A schema of the tables (= indices) of a service.
- 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.
- SERVICE_ID_OFFSET - Static variable in interface com.exonum.binding.messages.Message
-
- set(T) - Method in class com.exonum.binding.storage.indices.EntryIndexProxy
-
Sets a new value of the entry, overwriting the previous value.
- 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.
- setBody(ByteBuffer) - Method in class com.exonum.binding.messages.Message.Builder
-
- setSignature(ByteBuffer) - Method in class com.exonum.binding.messages.Message.Builder
-
- SIGNATURE_SIZE - Static variable in interface com.exonum.binding.messages.Message
-
- signatureOffset() - Method in interface com.exonum.binding.messages.Message
-
Returns the signature offset in this message.
- signMessage(byte[], PrivateKey) - Method in interface com.exonum.binding.crypto.CryptoFunction
-
Given a privateKey
, computes and returns a signature for the supplied message
.
- signMessage(byte[], PrivateKey) - Method in enum com.exonum.binding.crypto.Ed25519CryptoFunction
-
- size() - Method in class com.exonum.binding.crypto.AbstractKey
-
Returns the length of this key.
- size() - Method in interface com.exonum.binding.messages.Message
-
Returns the size of a binary representation of this message in bytes.
- size() - Method in class com.exonum.binding.messages.MessageReader
-
- 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.
- stop() - Method in interface com.exonum.binding.transport.Server
-
Requests the server to stop listening to incoming requests and release any resources.
- submitTransaction(Transaction) - Method in interface com.exonum.binding.service.Node
-
Submits a transaction into Exonum network.
- submitTransaction(Transaction) - Method in class com.exonum.binding.service.NodeFake
-
A no-op.
- submitTransaction(Transaction) - Method in class com.exonum.binding.service.NodeProxy
-
Submits a transaction into Exonum network.
- valueOf(String) - Static method in enum com.exonum.binding.crypto.Ed25519CryptoFunction
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.exonum.binding.crypto.PublicKeySerializer
-
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.crypto.Ed25519CryptoFunction
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum com.exonum.binding.crypto.PublicKeySerializer
-
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.
- verify(byte[], byte[], PublicKey) - Method in interface com.exonum.binding.crypto.CryptoFunction
-
Given a publicKey
, verifies that signature
is a valid signature for the
supplied message
.
- verify(byte[], byte[], PublicKey) - Method in enum com.exonum.binding.crypto.Ed25519CryptoFunction
-
- VERSION_OFFSET - Static variable in interface com.exonum.binding.messages.Message
-
- 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.
- ViewModificationCounter - Class in com.exonum.binding.storage.database
-
A listener of fork modification events.
- ViewProxyFactory - Enum in com.exonum.binding.service.adapters
-
A factory of View proxies.