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.
address - Variable in class convex.api.Convex
Current Address for this Client
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_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
 
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.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 connection
closeConnection() - Method in class convex.net.message.Message
 
closeConnection() - Method in class convex.net.message.MessageLocal
 
closeConnection() - Method in class convex.net.message.MessageRemote
 
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.
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 PeerConnection 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 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 - 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.message - package convex.net.message
 
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(AccountKey) - Static method in class convex.net.ChallengeRequest
 
create(AccountKey, int) - Static method in class convex.net.ChallengeRequest
 
create(Connection, MessageType, ACell, Blob) - Static method in class convex.net.message.Message
 
create(MessageType, ACell, Server, Consumer<Result>) - Static method in class convex.net.message.MessageLocal
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.Message
 
createBelief(Belief, List<ACell>) - Static method in class convex.net.message.Message
Create a Belief message ready for broadcast including delta novelty
createBeliefRequest() - Static method in class convex.net.message.Message
Create a Belief request message
createChallenge(SignedData<ACell>) - Static method in class convex.net.message.Message
 
createData(ACell) - Static method in class convex.net.message.Message
 
createGoodBye() - Static method in class convex.net.message.Message
 
createMissingData(Hash) - Static method in class convex.net.message.Message
 
createMissingData(CVMLong, Hash...) - Static method in class convex.net.message.Message
 
createResponse(SignedData<ACell>) - Static method in class convex.net.message.Message
 
createResult(CVMLong, ACell, ACell) - Static method in class convex.net.message.Message
 
createResult(Result) - Static method in class convex.net.message.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_PORT - Static variable in class convex.net.NIOServer
 
DEFAULT_PORT - Static variable in class convex.peer.Server
 

E

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 AcountKey for the client using the API.
getAddress() - Method in class convex.api.Convex
Returns the current Address for the client using the API.
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() - Method in class convex.api.ConvexRemote
Gets the underlying Connection instance for this Client.
getConnection() - Method in class convex.net.message.Message
Gets the Connection instance associated with this message, or null if no connection exists (presumably a local Message)
getConnection() - Method in class convex.net.message.MessageLocal
 
getConnection() - Method in class convex.net.message.MessageRemote
 
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
 
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.Message
Gets the message ID for correlation, assuming this message type supports IDs.
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
getMessageCode() - Method in enum class convex.net.MessageType
 
getMessageData() - Method in class convex.net.message.Message
Gets the encoded data for this message.
getOriginString() - Method in class convex.net.message.Message
Gets a String identifying the origin of the message.
getOriginString() - Method in class convex.net.message.MessageLocal
 
getOriginString() - Method in class convex.net.message.MessageRemote
Gets a String identifying the origin of the message.
getPayload() - Method in class convex.net.message.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
 
getReceiceAction() - Method in class convex.net.MessageReceiver
 
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.api.ConvexRemote
Gets the Internet address of the currently connected remote
getRemoteAddress() - Method in class convex.net.Connection
Returns the remote SocketAddress associated with this connection, or null if not available
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
 
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
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.Message
 
GOODBYE - Enum constant in enum class convex.net.MessageType
Communication of an intention to shutdown.

H

handleChannelRecieve() - Method in class convex.net.Connection
Handles receipt of bytes from the channel on this Connection.
handleError(long, ACell, ACell) - Method in class convex.net.ResultConsumer
Method called when an error result is received.
handleMissingData(Message) - Method in class convex.peer.Server
Respond to a request for missing data, on a best-efforts basis.
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.Message
 

I

internalHandler - Variable in class convex.api.Convex
Result Consumer for messages received back from a client connection
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
 
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
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
 
launch() - Method in class convex.peer.Server
Launch the Peer Server, including all main server threads
launch(Integer) - Method in class convex.net.NIOServer
 
launch(String, Integer) - Method in class convex.net.NIOServer
 
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.Message
 
log - Static variable in class convex.net.MessageSender
 
log - Static variable in class convex.peer.API
 
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
 

M

maintainConnections() - Method in class convex.peer.ConnectionManager
 
manager - Variable in class convex.peer.Server
Connection manager instance.
maybeGenerateBlock(Peer) - Method in class convex.peer.TransactionHandler
Checks for pending transactions, and if found propose them as a new Block.
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.message
Class representing a message to / from a specific connection
Message(MessageType, ACell, Blob) - Constructor for class convex.net.message.Message
 
messageData - Variable in class convex.net.message.Message
 
MessageLocal - Class in convex.net.message
Class representing a message to a local Server instance
MessageLocal(MessageType, ACell, Server, Consumer<Result>) - Constructor for class convex.net.message.MessageLocal
 
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
 
MessageRemote - Class in convex.net.message
Message subclass handling return of results via a remote connection
MessageRemote(Connection, MessageType, ACell, Blob) - Constructor for class convex.net.message.MessageRemote
 
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
 
MISSING_DATA - Enum constant in enum class convex.net.MessageType
A request to provide missing data.

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.Message
 
peerKey - Variable in class convex.net.ChallengeRequest
 
persistPeerData() - Method in class convex.peer.Server
Writes the Peer data to the configured store.
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.
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
 
receiveFromChannel(ReadableByteChannel) - Method in class convex.net.MessageReceiver
Handles receipt of bytes from a channel.
reportResult(CVMLong, ACell) - Method in class convex.net.message.MessageRemote
 
reportResult(Result) - Method in class convex.net.message.Message
Reports a result back to the originator of the message.
reportResult(Result) - Method in class convex.net.message.MessageLocal
 
reportResult(Result) - Method in class convex.net.message.MessageRemote
Reports a result back to the originator of the message.
REQUEST_BELIEF - Enum constant in enum class convex.net.MessageType
Request the latest broadcast Belief from a Peer.
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.
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 awaiting results.
ResultConsumer() - Constructor for class convex.net.ResultConsumer
 
resultHandler - Variable in class convex.net.message.MessageLocal
 

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(ACell) - Method in class convex.net.message.Message
Sends a cell of data to the connected Peer
sendData(ACell) - Method in class convex.net.message.MessageLocal
 
sendData(ACell) - Method in class convex.net.message.MessageRemote
 
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
sendMissingData(Hash) - Method in class convex.net.Connection
Sends a MISSING_DATA Message on this connection.
sendMissingData(Hash) - Method in class convex.net.message.Message
Returns a missing data request to the connected Peer
sendMissingData(Hash) - Method in class convex.net.message.MessageLocal
 
sendMissingData(Hash) - Method in class convex.net.message.MessageRemote
 
sendObject(MessageType, ACell) - Method in class convex.net.Connection
Sends a full payload for the given message type.
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.net.message.MessageLocal
 
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
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
 
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
 
setNextSequence(long) - Method in class convex.api.Convex
 
setPeer(Peer) - Method in class convex.peer.CVMExecutor
 
setPeerController(Address) - Method in class convex.peer.Server
Sets the Peer controller Address
setReceiveHook(Consumer<Message>) - Method in class convex.net.Connection
Sets an optional additional message receiver hook (for debugging / observability purposes)
setTimeout(long) - Method in class convex.api.Convex
Sets the timeout for this Convex client instance.
setTrustedPeerKey(AccountKey) - Method in class convex.net.Connection
 
signData(T) - Method in class convex.api.Convex
Signs a value on behalf of this client, using the currently assigned keypair.
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.
store - Variable in class convex.net.message.MessageLocal
 

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
 
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.Message
 
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 performed by the receiving peer and included in the next available block.
transactionHandler - Variable in class convex.peer.Server
Transaction handler instance.
TransactionHandler - Class in convex.peer
Server component for handling client transactions and producing Blocks
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
txMessageQueue - Variable in class convex.peer.TransactionHandler
Queue for incoming (unverified) transaction messages
type - Variable in class convex.net.message.Message
 

U

updateBelief(Belief) - Method in class convex.peer.Server
 

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

withConnection(Connection) - Method in class convex.net.message.MessageRemote
 
wrap(Connection) - Static method in class convex.api.ConvexRemote
Wraps a connection as a Convex client instance
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