Index

A B C D E F G H I K L M N O P Q R S T U V W 
All Classes and Interfaces|All Packages|Constant Field Values

A

accept(Message) - Method in class convex.net.ResultConsumer
 
acquire(Hash) - Method in class convex.api.Convex
Attempts to asynchronously acquire a complete persistent data structure for the given hash from the remote peer.
acquire(Hash, AStore) - Method in class convex.api.Convex
Attempts to acquire a complete persistent data structure for the given hash from the connected peer.
acquire(Hash, AStore) - Method in class convex.api.ConvexLocal
 
acquire(Hash, AStore) - Method in class convex.api.ConvexRemote
 
acquireState() - Method in class convex.api.Convex
Gets the consensus state from the remote Peer
acquireState() - Method in class convex.api.ConvexLocal
 
acquireState() - Method in class convex.api.ConvexRemote
Gets the consensus state from the connected Peer.
Acquiror - Class in convex.api
Utility class for acquiring data remotely
Acquiror(Hash, AStore, ConvexRemote) - Constructor for class convex.api.Acquiror
 
address - Variable in class convex.api.Convex
Current Address for this Client
alertBadMessage(Message, String) - Method in class convex.peer.ConnectionManager
Called to signal a bad / corrupt message from a Peer.
alertMissing(Message, MissingDataException, AccountKey) - Method in class convex.peer.ConnectionManager
Called to signal missing data in a Belief / Order
API - Class in convex.peer
Class providing a simple API to operate a peer protocol Server.
API() - Constructor for class convex.peer.API
 
Applications - Class in convex.api
 
Applications() - Constructor for class convex.api.Applications
 
AThreadedComponent - Class in convex.peer
Base class for a threaded execution component that runs within the context of a Peer Server
AThreadedComponent(Server) - Constructor for class convex.peer.AThreadedComponent
 
awaiting - Variable in class convex.api.Convex
Map of results awaiting completion.
awaitResult(long, long) - Method in class convex.api.Convex
Method to start waiting for a complete result.

B

BELIEF - Enum constant in enum class convex.net.MessageType
Communication of a latest Belief by a Peer.
BELIEF_BROADCAST_DELAY - Static variable in class convex.peer.BeliefPropagator
Minimum delay between successive Belief broadcasts
BELIEF_BROADCAST_POLL_TIME - Static variable in class convex.peer.BeliefPropagator
Polling period for Belief propagator loop
BELIEF_FULL_BROADCAST_DELAY - Static variable in class convex.peer.BeliefPropagator
Time between full Belief broadcasts
BELIEF_QUEUE_SIZE - Static variable in class convex.peer.Config
Size of incoming Belief queue
BELIEF_REBROADCAST_DELAY - Static variable in class convex.peer.BeliefPropagator
 
BeliefPropagator - Class in convex.peer
Component class to handle propagation of new Beliefs from a Peer Overall logic: 1.
BeliefPropagator(Server) - Constructor for class convex.peer.BeliefPropagator
 
broadcast(Message) - Method in class convex.peer.ConnectionManager
Broadcasts a Message to all connected Peers
bufferMessage(ByteBuffer) - Method in class convex.net.MessageSender
Buffers a message for sending.

C

canSendMessage() - Method in class convex.net.MessageSender
Checks if this sender is ready to send a message.
CHALLENGE - Enum constant in enum class convex.net.MessageType
A message that requests the remote endpoint to respond with a signed response.
ChallengeRequest - Class in convex.net
 
checkCache(Hash) - Method in class convex.net.store.RemoteStore
 
clientTransactionCount - Variable in class convex.peer.TransactionHandler
 
close() - Method in class convex.api.Convex
Disconnects the client from the network, releasing any connection resources.
close() - Method in class convex.api.ConvexLocal
 
close() - Method in class convex.api.ConvexRemote
Disconnects the client from the network, closing the underlying connection.
close() - Method in class convex.net.Connection
 
close() - Method in class convex.net.MemoryByteChannel
 
close() - Method in class convex.net.NIOServer
 
close() - Method in class convex.net.store.RemoteStore
 
close() - Method in class convex.net.UDPServer
 
close() - Method in class convex.peer.AThreadedComponent
Close this threaded component, including interrupting any running thread(s).
close() - Method in class convex.peer.ConnectionManager
 
close() - Method in class convex.peer.Server
 
close() - Method in class convex.peer.TransactionHandler
 
closeAllConnections() - Method in class convex.peer.ConnectionManager
Close all outgoing connections from this Peer
closeButMaintainConnection() - Method in class convex.api.ConvexRemote
Close without affecting the underlying connection (will be unlinked but not closed)
closeConnection() - Method in class convex.net.Message
Closes any connection associated with this message, probably because of bad behaviour
closeConnection(AccountKey) - Method in class convex.peer.ConnectionManager
Close and remove a connection
COMMAND - Enum constant in enum class convex.net.MessageType
A control command to a peer.
Config - Class in convex.peer
Static tools and utilities for Peer configuration
Config() - Constructor for class convex.peer.Config
 
connect(Server) - Static method in class convex.api.Convex
Connect to a local Server, with no address and keypair set
connect(Server, Address, AKeyPair) - Static method in class convex.api.Convex
Connect to a local Server, using given address and keypair
connect(InetSocketAddress) - Static method in class convex.api.Convex
Creates an anonymous connection to a Peer, suitable for queries
connect(InetSocketAddress, Address, AKeyPair) - Static method in class convex.api.Convex
Create a Convex client by connecting to the specified Peer using the given key pair
connect(InetSocketAddress, Address, AKeyPair, AStore) - Static method in class convex.api.Convex
Create a Convex client by connecting to the specified Peer using the given key pair and using a given store
connect(InetSocketAddress, Consumer<Message>, AStore) - Static method in class convex.net.Connection
Create a Connection by connecting to a remote address
connect(InetSocketAddress, Consumer<Message>, AStore, AccountKey) - Static method in class convex.net.Connection
Create a Connection by connecting to a remote address
connect(InetSocketAddress, Consumer<Message>, AStore, AccountKey, int, int) - Static method in class convex.net.Connection
Create a Connection by connecting to a remote address
connection - Variable in class convex.api.ConvexRemote
Current Connection to a Peer, may be null or a closed connection.
Connection - Class in convex.net
Class representing the low-level NIO network Connection between network participants.
ConnectionManager - Class in convex.peer
Class for managing the outbound Peer connections from a Peer Server.
ConnectionManager(Server) - Constructor for class convex.peer.ConnectionManager
 
connectToPeer(InetSocketAddress) - Method in class convex.peer.ConnectionManager
Connects explicitly to a Peer at the given host address
connectToPeer(InetSocketAddress, AStore) - Method in class convex.api.ConvexRemote
 
convex - Variable in class convex.net.store.RemoteStore
 
Convex - Class in convex.api
Class representing a client API to the Convex network.
Convex(Address, AKeyPair) - Constructor for class convex.api.Convex
 
convex.api - package convex.api
 
convex.net - package convex.net
 
convex.net.store - package convex.net.store
 
convex.peer - package convex.peer
 
ConvexLocal - Class in convex.api
Convex Client implementation supporting a direct connection to a Peer Server in the same JVM.
ConvexLocal(Server, Address, AKeyPair) - Constructor for class convex.api.ConvexLocal
 
ConvexRemote - Class in convex.api
 
ConvexRemote(Address, AKeyPair) - Constructor for class convex.api.ConvexRemote
 
countInterests() - Method in class convex.peer.TransactionHandler
 
create(int) - Static method in class convex.net.MemoryByteChannel
 
create(Convex) - Method in class convex.net.store.RemoteStore
 
create(AccountKey) - Static method in class convex.net.ChallengeRequest
 
create(AccountKey, int) - Static method in class convex.net.ChallengeRequest
 
create(Hash, AStore, ConvexRemote) - Static method in class convex.api.Acquiror
 
create(Connection, MessageType, Blob) - Static method in class convex.net.Message
 
create(MessageType, ACell) - Static method in class convex.net.Message
 
create(MessageType, ACell, Blob) - Static method in class convex.net.Message
 
create(MessageType, ACell, Predicate<Message>) - Static method in class convex.net.Message
Create an instance with the given message data
create(Server) - Static method in class convex.net.NIOServer
Creates a new unlaunched NIO server component
create(Server, Address, AKeyPair) - Static method in class convex.api.ConvexLocal
 
create(ByteChannel, Consumer<Message>, AStore, AccountKey) - Static method in class convex.net.Connection
Create a PeerConnection using an existing channel.
create(HashMap<Keyword, Object>) - Static method in class convex.peer.Server
Creates a new (unlaunched) Server with a given config.
createAccount(AccountKey) - Method in class convex.api.Convex
Creates a new account with the given public key
createAccountSync(AccountKey) - Method in class convex.api.Convex
Creates a new account with the given public key
createBelief(Belief) - Static method in class convex.net.Message
 
createBeliefRequest() - Static method in class convex.net.Message
Create a Belief request message
createChallenge(SignedData<ACell>) - Static method in class convex.net.Message
 
createDataRequest(CVMLong, Hash...) - Static method in class convex.net.Message
 
createDataResponse(CVMLong, ACell...) - Static method in class convex.net.Message
 
createGoodBye() - Static method in class convex.net.Message
 
createResponse(SignedData<ACell>) - Static method in class convex.net.Message
 
createResult(CVMLong, ACell, ACell) - Static method in class convex.net.Message
 
createResult(Result) - Static method in class convex.net.Message
 
CVMExecutor - Class in convex.peer
Component handling CVM execution loop with a Peer Server
CVMExecutor(Server) - Constructor for class convex.peer.CVMExecutor
 

D

DATA - Enum constant in enum class convex.net.MessageType
A message relaying data.
decode(int) - Static method in enum class convex.net.MessageType
 
DEFAULT_CLIENT_TIMEOUT - Static variable in class convex.peer.Config
Default timeout in milliseconds for client transactions
DEFAULT_OUTGOING_CONNECTION_COUNT - Static variable in class convex.peer.Config
Default number of outgoing connections for a Peer
DEFAULT_PORT - Static variable in class convex.net.NIOServer
 
DEFAULT_PORT - Static variable in class convex.peer.Server
 

E

equals(Object) - Method in class convex.net.Message
 
executor - Variable in class convex.peer.Server
Transaction handler instance.

F

finalize() - Method in class convex.api.Convex
 
finalize() - Method in class convex.net.Connection
 
finalize() - Method in class convex.net.NIOServer
 
finalize() - Method in class convex.peer.AThreadedComponent
 
finalize() - Method in class convex.peer.Server
 
flushBytes() - Method in class convex.net.Connection
Sends bytes buffered into the underlying channel.

G

getAccountKey() - Method in class convex.api.Convex
Returns the current AccountKey for the client using the API.
getAccountKey(Address) - Method in class convex.api.Convex
Returns the current AccountKey for the specified address.
getAddress() - Method in class convex.api.Convex
Returns the current Address for the client using the API.
getBalance() - Method in class convex.api.Convex
Query the balance for the current account
getBalance() - Method in class convex.api.ConvexLocal
 
getBalance(Address) - Method in class convex.api.Convex
 
getBelief() - Method in class convex.peer.Server
Gets the current Belief held by this Peer
getBeliefBroadcastCount() - Method in class convex.peer.BeliefPropagator
 
getBeliefPropagator() - Method in class convex.peer.Server
 
getBeliefReceivedCount() - Method in class convex.peer.Server
Gets the number of beliefs received by this Peer
getBroadcastCount() - Method in class convex.peer.Server
Gets the number of belief broadcasts made by this Peer
getConfig() - Method in class convex.peer.Server
 
getConnection(AccountKey) - Method in class convex.peer.ConnectionManager
Gets a connection based on the peers public key
getConnectionCount() - Method in class convex.peer.ConnectionManager
Returns the number of active connections
getConnectionManager() - Method in class convex.peer.Server
 
getConnections() - Method in class convex.peer.ConnectionManager
Gets the current set of outbound peer connections from this server
getCVMExecutor() - Method in class convex.peer.Server
 
getFuture() - Method in class convex.api.Acquiror
 
getHostAddress() - Method in class convex.api.Convex
Gets the remote address for this Convex client instance
getHostAddress() - Method in class convex.api.ConvexLocal
 
getHostAddress() - Method in class convex.api.ConvexRemote
 
getHostAddress() - Method in class convex.net.NIOServer
Gets the host address for this server (including port), or null if closed
getHostAddress() - Method in class convex.peer.Server
Gets the host address for this Server (including port), or null if closed
getHostname() - Method in class convex.peer.Server
Gets the desired host name for this Peer
getID() - Method in class convex.net.Message
Gets the message ID for correlation, assuming this message type supports IDs.
getKeyPair() - Method in class convex.api.Convex
Get the keypair for this Convex connection.
getKeyPair() - Method in class convex.peer.Server
Returns the Keypair for this peer server SECURITY: Be careful with this!
getLastActivity() - Method in class convex.net.Connection
 
getLastBroadcastBelief() - Method in class convex.peer.BeliefPropagator
 
getLoad() - Method in class convex.peer.AThreadedComponent
 
getLocalAddress() - Method in class convex.net.Connection
Returns the local SocketAddress associated with this connection, or null if not available
getLocalServer() - Method in class convex.api.Convex
Gets the local Server instance, or null if not a local connection
getLocalServer() - Method in class convex.api.ConvexLocal
 
getLocalServer() - Method in class convex.api.ConvexRemote
 
getMessageCode() - Method in enum class convex.net.MessageType
 
getMessageData() - Method in class convex.net.Message
Gets the encoded data for this message.
getNextID() - Method in class convex.net.Connection
 
getPayload() - Method in class convex.net.Message
 
getPeer() - Method in class convex.peer.CVMExecutor
 
getPeer() - Method in class convex.peer.Server
Gets the current Peer data structure for this Server.
getPeerController() - Method in class convex.peer.Server
Gets the Peer controller Address
getPeerKey() - Method in class convex.net.ChallengeRequest
 
getPeerKey() - Method in class convex.peer.Server
Gets the public key of the peer account
getPort() - Method in class convex.net.NIOServer
Gets the port that this server instance is listening on.
getPort() - Method in class convex.peer.Server
Gets the port that this Server is currently accepting connections on
getQueryProcessor() - Method in class convex.peer.Server
 
getReceiveAction() - Method in class convex.peer.Server
Gets the action to perform for an incoming client message
getReceivedCount() - Method in class convex.net.Connection
 
getReceivedCount() - Method in class convex.net.MessageReceiver
Get the number of messages received in total by this Receiver
getRemoteAddress() - Method in class convex.net.Connection
Returns the remote SocketAddress associated with this connection, or null if not available
getRootHash() - Method in class convex.net.store.RemoteStore
 
getSendHash() - Method in class convex.net.ChallengeRequest
 
getSequence() - Method in class convex.api.Convex
Gets the current sequence number for this Client, which is the sequence number of the last transaction observed for the current client's Account.
getSequence() - Method in class convex.api.ConvexLocal
 
getSequence(Address) - Method in class convex.api.Convex
Gets the current sequence number for an account, which is the sequence number of the last transaction observed for the Account.
getSequence(Address) - Method in class convex.api.ConvexLocal
 
getState() - Method in class convex.api.ConvexLocal
 
getStatusVector() - Method in class convex.peer.Server
Gets the status vector for the Peer 0 = latest belief hash 1 = states vector hash 2 = genesis state hash 3 = peer key 4 = consensus state 5 = consensus point 6 = proposal point 7 = ordering length 8 = consensus point vector
getStore() - Method in class convex.net.Connection
Gets the store associated with this Connection
getStore() - Method in class convex.peer.Server
Gets the Store configured for this Server.
getThreadName() - Method in class convex.peer.AThreadedComponent
 
getThreadName() - Method in class convex.peer.BeliefPropagator
 
getThreadName() - Method in class convex.peer.ConnectionManager
 
getThreadName() - Method in class convex.peer.CVMExecutor
 
getThreadName() - Method in class convex.peer.QueryHandler
 
getThreadName() - Method in class convex.peer.TransactionHandler
 
getToken() - Method in class convex.net.ChallengeRequest
 
getTransactionHandler() - Method in class convex.peer.Server
 
getTrustedConnectionCount() - Method in class convex.peer.ConnectionManager
Returns the number of trusted connections
getTrustedPeerKey() - Method in class convex.net.Connection
 
getType() - Method in class convex.net.Message
 
GOODBYE - Enum constant in enum class convex.net.MessageType
Communication of an intention to shutdown the connection.

H

handleChannelRecieve() - Method in class convex.net.Connection
Handles receipt of bytes from the channel on this Connection.
handleDataRequest(Message) - Method in class convex.peer.Server
Respond to a request for missing data, on a best-efforts basis.
handleError(long, ACell, ACell) - Method in class convex.net.ResultConsumer
Method called when an error result is received.
handleNormalResult(long, ACell) - Method in class convex.net.ResultConsumer
Method called when a normal (non-error) result is received.
handleResult(long, Result) - Method in class convex.net.ResultConsumer
Handler for a fully received Result.
hasData() - Method in class convex.net.Message
 

I

IPUtils - Class in convex.net
 
IPUtils() - Constructor for class convex.net.IPUtils
 
isAutoSequence() - Method in class convex.api.Convex
Determines if this Client is configured to automatically generate sequence numbers
isAwaitingResults() - Method in class convex.peer.TransactionHandler
 
isClosed() - Method in class convex.net.Connection
Checks if this connection is closed (i.e.
isConnected() - Method in class convex.api.Convex
Checks if this Convex client instance has an open connection.
isConnected() - Method in class convex.api.ConvexLocal
 
isConnected() - Method in class convex.api.ConvexRemote
Checks if this Convex client instance has an open remote connection.
isConnected(AccountKey) - Method in class convex.peer.ConnectionManager
Return true if a specified Peer is connected
isLive() - Method in class convex.peer.Server
Checks is the server is Live, i.e.
isNetworkReady(List<Server>, long) - Static method in class convex.peer.API
Returns a true value if the local network is ready and synced with the same consensus state hash.
isOpen() - Method in class convex.net.MemoryByteChannel
 
isRebroadcastDue() - Method in class convex.peer.BeliefPropagator
Check if the propagator wants the latest Belief for rebroadcast
isRunning() - Method in class convex.peer.Server
Checks if the Server threads are running
isTimedout() - Method in class convex.net.ChallengeRequest
 
isTrusted() - Method in class convex.net.Connection
 

K

keyPair - Variable in class convex.api.Convex
Key pair for this Client

L

lastBlockPublishedTime - Variable in class convex.peer.TransactionHandler
Time at which last Block was published by this Peer
launch() - Method in class convex.peer.Server
Launch the Peer Server, including all main server threads
launch(String, Integer) - Method in class convex.net.NIOServer
Launch NIO Server, binding to a given socket address
launch(String, Integer) - Method in class convex.net.UDPServer
 
launchApp(Class<?>, String...) - Static method in class convex.api.Applications
Helper function to launch a different JVM process with the same classpath.
launchLocalPeers(List<AKeyPair>, State) - Static method in class convex.peer.API
Launch a local set of peers.
launchLocalPeers(List<AKeyPair>, State, int[]) - Static method in class convex.peer.API
Launch a local set of peers.
launchPeer() - Static method in class convex.peer.API
Launches a peer with a default configuration.
launchPeer(Map<Keyword, Object>) - Static method in class convex.peer.API
Launches a Peer Server with a supplied configuration.
log - Static variable in class convex.net.Message
 
log - Static variable in class convex.net.MessageSender
 
log - Static variable in class convex.peer.API
 
lookupSequence(Address) - Method in class convex.api.Convex
Look up the sequence number for an account
loop() - Method in class convex.peer.AThreadedComponent
 
loop() - Method in class convex.peer.BeliefPropagator
 
loop() - Method in class convex.peer.ConnectionManager
 
loop() - Method in class convex.peer.CVMExecutor
 
loop() - Method in class convex.peer.QueryHandler
 
loop() - Method in class convex.peer.TransactionHandler
Loops for handling incoming client transactions

M

main(String[]) - Static method in class convex.net.IPUtils
 
main(String...) - Static method in class convex.net.UDPServer
 
maintainConnections() - Method in class convex.peer.ConnectionManager
 
makeDataResponse(AStore) - Method in class convex.net.Message
 
manager - Variable in class convex.peer.Server
Connection manager instance.
MAX_REBROADCAST_DELAY - Static variable in class convex.peer.Config
Delay before rebroadcasting Belief if not in consensus
maybeGenerateBlock(Peer) - Method in class convex.peer.TransactionHandler
Checks for pending transactions, and if found propose them as a new Block.
maybeGetBlock() - Method in class convex.peer.TransactionHandler
Gets the next Block for publication, or null if not yet ready
maybeMergeBeliefs(Belief...) - Method in class convex.peer.BeliefPropagator
Checks for mergeable remote beliefs, and if found merge and update own belief.
maybeReportTransactions(Peer) - Method in class convex.peer.TransactionHandler
 
maybeSendBytes() - Method in class convex.net.MessageSender
Try to send bytes on the outbound channel.
maybeUpdateBelief(Belief) - Method in class convex.peer.BeliefPropagator
Handle general Belief update, taking belief registered in newBeliefs
maybeUpdateSequence(SignedData<ATransaction>) - Method in class convex.api.Convex
Called after a transaction is submitted to update sequence (if possible)
MemoryByteChannel - Class in convex.net
ByteChannel implementation wrapping a fixed size in-memory buffer
mergeBeliefMessage(HashMap<AccountKey, SignedData<Order>>, Message) - Method in class convex.peer.BeliefPropagator
 
Message - Class in convex.net
Class representing a message to / from a specific connection
Message(MessageType, ACell, Blob, Predicate<Message>) - Constructor for class convex.net.Message
 
messageData - Variable in class convex.net.Message
 
messageHandler - Variable in class convex.api.Convex
Result Consumer for messages received back from a client connection
MessageReceiver - Class in convex.net
Class responsible for buffered accumulation of data received over a connection.
MessageReceiver(Consumer<Message>, Connection) - Constructor for class convex.net.MessageReceiver
 
MessageSender - Class in convex.net
Message sender responsible for moving bytes from a ByteBuffer to a ByteChannel Must call maybeSendBytes to attempt to flush buffer to channel.
MessageSender(ByteChannel) - Constructor for class convex.net.MessageSender
 
MessageType - Enum Class in convex.net
 

N

NIOServer - Class in convex.net
NIO Server implementation that handles incoming messages on a given port.

O

offerQuery(Message) - Method in class convex.peer.QueryHandler
Offer a transaction for handling
offerTransaction(Message) - Method in class convex.peer.TransactionHandler
Offer a transaction for handling

P

payload - Variable in class convex.net.Message
 
PEER_CONNECTION_DROP_TIME - Static variable in class convex.peer.Config
Number of milliseconds average time to drop low-staked Peers
PEER_SYNC_TIMEOUT - Static variable in class convex.peer.Config
Timeout for syncing with an existing Peer
peerKey - Variable in class convex.net.ChallengeRequest
 
persistPeerData() - Method in class convex.peer.CVMExecutor
 
persistPeerData() - Method in class convex.peer.Server
Writes the Peer data to the configured store.
prepareTransaction(ATransaction) - Method in class convex.api.Convex
Prepares a transaction for network submission - Sets origin account if needed - Sets sequence number (if autosequencing is enabled) - Signs transaction with current key pair
processBelief(Message) - Method in class convex.peer.Server
Process an incoming message that represents a Belief
processChallenge(Message, Peer) - Method in class convex.peer.ConnectionManager
 
processClose(Message) - Method in class convex.peer.Server
Called by a remote peer to close connections to the remote peer.
processMessage(Message) - Method in class convex.peer.Server
Process a message received from a peer or client.
processMessage(Message) - Method in class convex.peer.TransactionHandler
 
processQuery(Message) - Method in class convex.peer.Server
 
processResponse(Message) - Method in class convex.peer.Server
 
processStatus(Message) - Method in class convex.peer.Server
 
processTransact(Message) - Method in class convex.peer.Server
 
propagator - Variable in class convex.peer.Server
Connection manager instance.
PRUNE_TIMEOUT - Static variable in class convex.net.NIOServer
 
pruneConnections(long, Set<SelectionKey>) - Method in class convex.net.NIOServer
Prune old connections

Q

query(ACell) - Method in class convex.api.Convex
Submits a query to the Convex network, returning a Future once the query has been successfully queued.
query(ACell, Address) - Method in class convex.api.Convex
Submits a query to the Convex network, returning a Future once the query has been successfully queued.
query(ACell, Address) - Method in class convex.api.ConvexLocal
 
query(ACell, Address) - Method in class convex.api.ConvexRemote
 
query(String) - Method in class convex.api.Convex
Submits a query to the Convex network, returning a Future once the query has been successfully queued.
QUERY - Enum constant in enum class convex.net.MessageType
A request to perform the specified query and return results.
QUERY_QUEUE_SIZE - Static variable in class convex.peer.Config
Default size for incoming client query queue Note: this limits TPS for client queries, will send failures if overloaded
queryHandler - Variable in class convex.peer.Server
Query handler instance.
QueryHandler - Class in convex.peer
 
QueryHandler(Server) - Constructor for class convex.peer.QueryHandler
 
querySync(ACell) - Method in class convex.api.Convex
Executes a query synchronously and waits for the Result
querySync(ACell, long) - Method in class convex.api.Convex
Executes a query synchronously and waits for the Result
querySync(ACell, Address) - Method in class convex.api.Convex
Executes a query synchronously and waits for the Result
querySync(ACell, Address, long) - Method in class convex.api.Convex
Executes a query synchronously and waits for the Result
querySync(String) - Method in class convex.api.Convex
Executes a query synchronously and waits for the Result
queueBelief(Message) - Method in class convex.peer.BeliefPropagator
Queues a Belief Message for broadcast
queueBelief(Message) - Method in class convex.peer.Server
Adds an event to the inbound server event queue.
queueUpdate(Belief) - Method in class convex.peer.CVMExecutor
 

R

read(ByteBuffer) - Method in class convex.net.MemoryByteChannel
 
RECEIVE_BUFFER_SIZE - Static variable in class convex.net.MessageReceiver
 
RECEIVE_BUFFER_SIZE - Static variable in class convex.peer.Config
Default size for client receive ByteBuffers.
receivedTransactionCount - Variable in class convex.peer.TransactionHandler
 
receiveFromChannel(ReadableByteChannel) - Method in class convex.net.MessageReceiver
Handles receipt of bytes from a channel.
reconnect() - Method in class convex.api.ConvexRemote
 
refForHash(Hash) - Method in class convex.net.store.RemoteStore
 
remoteAddress - Variable in class convex.api.ConvexRemote
 
RemoteStore - Class in convex.net.store
A Store implementation working over a Convex binary connection
RemoteStore(Convex) - Constructor for class convex.net.store.RemoteStore
 
REQUEST_BELIEF - Enum constant in enum class convex.net.MessageType
Request the latest Belief from a Peer.
REQUEST_DATA - Enum constant in enum class convex.net.MessageType
A request to provide data.
requestChallenge(AccountKey, Connection, Peer) - Method in class convex.peer.ConnectionManager
Sends out a challenge to a connection that is not trusted.
requestChallenge(SignedData<ACell>) - Method in class convex.api.Convex
Request a challenge.
requestChallenge(SignedData<ACell>) - Method in class convex.api.ConvexLocal
 
requestChallenge(SignedData<ACell>) - Method in class convex.api.ConvexRemote
 
requestStatus() - Method in class convex.api.Convex
Submits a status request to the Convex network peer, returning a Future once the request has been successfully queued.
requestStatus() - Method in class convex.api.ConvexLocal
 
requestStatus() - Method in class convex.api.ConvexRemote
 
requestStatusSync(long) - Method in class convex.api.Convex
Request status using a sync operation.
resolve(String) - Method in class convex.api.Convex
Attempts to resolve a CNS name
RESPONSE - Enum constant in enum class convex.net.MessageType
A response to a challenge.
RESULT - Enum constant in enum class convex.net.MessageType
Message containing the Result for a corresponding COMMAND, QUERY or TRANSACT message.
ResultConsumer - Class in convex.net
Consumer abstract base class for default behaviour when awaiting results.
ResultConsumer() - Constructor for class convex.net.ResultConsumer
 
returnHandler - Variable in class convex.net.Message
 
returnMessage(Message) - Method in class convex.net.Message
Returns a message back to the originator of the message.
returnResult(Result) - Method in class convex.net.Message
Reports a result back to the originator of the message.
run() - Method in class convex.net.UDPServer
 
running - Variable in class convex.net.UDPServer
 

S

SELECT_TIMEOUT - Static variable in class convex.net.NIOServer
 
selectRead(SelectionKey) - Static method in class convex.net.Connection
Handles channel reads from a SelectionKey for the client listener SECURITY: Called on Connection Selector Thread
selectRead(SelectionKey) - Method in class convex.net.NIOServer
 
selectWrite(SelectionKey) - Method in class convex.net.NIOServer
 
send(Connection, Peer) - Method in class convex.net.ChallengeRequest
Sends out a single challenge to the remote peer.
sendChallenge(SignedData<ACell>) - Method in class convex.net.Connection
Sends a CHALLENGE Request Message on this connection.
sendData(Blob) - Method in class convex.net.Connection
Sends a DATA Message on this connection.
sendHash - Variable in class convex.net.ChallengeRequest
 
sendMessage(Message) - Method in class convex.net.Connection
Sends a message over this connection
sendQuery(ACell) - Method in class convex.net.Connection
Sends a QUERY Message on this connection with a null Address
sendQuery(ACell, Address) - Method in class convex.net.Connection
Sends a QUERY Message on this connection.
sendResponse(SignedData<ACell>) - Method in class convex.net.Connection
Sends a RESPONSE Request Message on this connection.
sendStatusRequest() - Method in class convex.net.Connection
Sends a STATUS Request Message on this connection.
sendTransaction(SignedData<ATransaction>) - Method in class convex.net.Connection
Sends a transaction if possible, returning the message ID (greater than zero) if successful.
sequence - Variable in class convex.api.Convex
Sequence number for this client, or null if not yet known.
server - Variable in class convex.peer.AThreadedComponent
 
Server - Class in convex.peer
A self contained Peer Server that can be launched with a config.
setAddress(Address) - Method in class convex.api.Convex
Sets the Address for this connection.
setAddress(Address, AKeyPair) - Method in class convex.api.Convex
Sets the Address and Keypair for this connection.
setAutoSequence(boolean) - Method in class convex.api.Convex
Configures auto-generation of sequence numbers
setBeliefUpdateObserver(Consumer<Belief>) - Method in class convex.peer.BeliefPropagator
Sets the observer for belief updates
setConnection(Connection) - Method in class convex.api.ConvexRemote
Sets the current Connection for this Remote Client
setHandler(Consumer<Message>) - Method in class convex.api.Convex
Sets a handler for messages that are received but not otherwise processed (transaction/query results will be relayed instead to the appropriate handler )
setHook(Consumer<Message>) - Method in class convex.net.MessageReceiver
Sets an optional additional message receiver hook (for debugging / observability purposes)
setHostname(String) - Method in class convex.peer.Server
Sets the desired host name for this Server
setKeyPair(AKeyPair) - Method in class convex.api.Convex
 
setMessageReceiveObserver(Consumer<Message>) - Method in class convex.peer.Server
 
setNextSequence(long) - Method in class convex.api.Convex
 
setOrderUpdateObserver(Consumer<SignedData<Order>>) - Method in class convex.peer.BeliefPropagator
Sets the observer for order updates
setPeer(Peer) - Method in class convex.peer.CVMExecutor
 
setReceiveHook(Consumer<Message>) - Method in class convex.net.Connection
Sets an optional additional message receiver hook (for debugging / observability purposes)
setRequestObserver(Consumer<SignedData<ATransaction>>) - Method in class convex.peer.TransactionHandler
Sets a request observer, which will be called whenever the Peer processes a valid client transaction request
setResponseObserver(BiConsumer<SignedData<ATransaction>, Result>) - Method in class convex.peer.TransactionHandler
Sets a request observer, which will be called whenever the Peer processes a valid client transaction request
setRootData(T) - Method in class convex.net.store.RemoteStore
 
setTimeout(long) - Method in class convex.api.Convex
Sets the default timeout for this Convex client instance.
setTrustedPeerKey(AccountKey) - Method in class convex.net.Connection
 
setUpdateHook(Consumer<Peer>) - Method in class convex.peer.CVMExecutor
 
shortName() - Method in class convex.net.store.RemoteStore
 
shutdown() - Method in class convex.peer.Server
Shut down the Server, as gracefully as possible.
signData(T) - Method in class convex.api.Convex
Signs a value on behalf of this client, using the currently assigned keypair.
SOCKET_PEER_BUFFER_SIZE - Static variable in class convex.peer.Config
Size of default server socket buffers for an outbound peer connection
SOCKET_RECEIVE_BUFFER_SIZE - Static variable in class convex.peer.Config
Size of default client socket receive buffer
SOCKET_SEND_BUFFER_SIZE - Static variable in class convex.peer.Config
Size of default client socket send buffer
SOCKET_SERVER_BUFFER_SIZE - Static variable in class convex.peer.Config
Size of default server socket receive buffer
start() - Method in class convex.peer.AThreadedComponent
Start the threaded component
start() - Method in class convex.peer.BeliefPropagator
 
start() - Method in class convex.peer.ConnectionManager
 
start() - Method in class convex.peer.TransactionHandler
 
STATUS - Enum constant in enum class convex.net.MessageType
Request for a peer status update.
STATUS_COUNT - Static variable in class convex.peer.Config
Number of fields in a Peer STATUS message
storeRef(Ref<T>, int, Consumer<Ref<ACell>>) - Method in class convex.net.store.RemoteStore
 
storeTopRef(Ref<T>, int, Consumer<Ref<ACell>>) - Method in class convex.net.store.RemoteStore
 

T

thread - Variable in class convex.peer.AThreadedComponent
 
timeout - Variable in class convex.api.Convex
 
timeout - Variable in class convex.net.ChallengeRequest
 
token - Variable in class convex.net.ChallengeRequest
 
toResult() - Method in class convex.net.Message
 
toString() - Method in class convex.api.Convex
 
toString() - Method in class convex.api.ConvexLocal
 
toString() - Method in class convex.api.ConvexRemote
 
toString() - Method in class convex.net.Connection
 
toString() - Method in class convex.net.Message
 
transact(ACell) - Method in class convex.api.Convex
Executes a transaction, compiling the given source code as an Invoke.
transact(SignedData<ATransaction>) - Method in class convex.api.Convex
Submits a signed transaction to the Convex network, returning a Future once the transaction has been successfully queued.
transact(SignedData<ATransaction>) - Method in class convex.api.ConvexLocal
 
transact(SignedData<ATransaction>) - Method in class convex.api.ConvexRemote
 
transact(ATransaction) - Method in class convex.api.Convex
Submits a transaction to the Convex network, returning a future once the transaction has been successfully queued.
transact(String) - Method in class convex.api.Convex
Executes a transaction, compiling the given source code as an Invoke.
TRANSACT - Enum constant in enum class convex.net.MessageType
A message requesting a transaction be accepted by the receiving peer and included in the next available block.
TRANSACTION_QUEUE_SIZE - Static variable in class convex.peer.Config
Default size for incoming client transaction queue Note: this limits TPS for client transactions, will send failures if overloaded
transactionHandler - Variable in class convex.peer.Server
Transaction handler instance.
TransactionHandler - Class in convex.peer
Server component for handling client transactions and producing Blocks Main loop for this component handles client transaction messages, validates them and prepares them for inclusion in a Block
TransactionHandler(Server) - Constructor for class convex.peer.TransactionHandler
 
transactSync(SignedData<ATransaction>) - Method in class convex.api.Convex
Submits a transaction synchronously to the Convex network, returning a Result
transactSync(SignedData<ATransaction>, long) - Method in class convex.api.Convex
Submits a signed transaction synchronously to the Convex network, returning a Result
transactSync(ATransaction) - Method in class convex.api.Convex
Submits a transaction synchronously to the Convex network, returning a Result
transactSync(ATransaction, long) - Method in class convex.api.Convex
Submits a signed transaction synchronously to the Convex network, returning a Result
transactSync(String) - Method in class convex.api.Convex
Executes a transaction, compiling the given source code as an Invoke.
transfer(Address, long) - Method in class convex.api.Convex
Submits a transfer transaction to the Convex network, returning a future once the transaction has been successfully queued.
transferSync(Address, long) - Method in class convex.api.Convex
Submits a transfer transaction to the Convex network peer, and waits for confirmation of the result
tryGetIP() - Static method in class convex.net.IPUtils
 
tryGetWTF() - Static method in class convex.net.IPUtils
 
txMessageQueue - Variable in class convex.peer.TransactionHandler
Queue for incoming (unverified) transaction messages
type - Variable in class convex.net.Message
 

U

UDPServer - Class in convex.net
 
UDPServer() - Constructor for class convex.net.UDPServer
 
updateBelief(Belief) - Method in class convex.peer.Server
Triggers CVM Executor Belief update

V

valueOf(String) - Static method in enum class convex.net.MessageType
Returns the enum constant of this class with the specified name.
values() - Static method in enum class convex.net.MessageType
Returns an array containing the constants of this enum class, in the order they are declared.

W

write(ByteBuffer) - Method in class convex.net.MemoryByteChannel
 
A B C D E F G H I K L M N O P Q R S T U V W 
All Classes and Interfaces|All Packages|Constant Field Values