Index

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

A

accept(Message) - Method in class convex.net.ResultConsumer
 
acquire(Hash) - Method in class convex.api.Convex
Attempts to 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 remote peer.
acquireState() - Method in class convex.api.Convex
 
address - Variable in class convex.api.Convex
Current address for this Client
API - Class in convex.peer
Class providing a simple API to a peer Server.
API() - Constructor for class convex.peer.API
 
Applications - Class in convex.api
 
Applications() - Constructor for class convex.api.Applications
 

B

BELIEF - Enum constant in enum class convex.net.MessageType
Communication of a latest Belief by a Peer.
broadcast(Message, boolean) - Method in class convex.peer.ConnectionManager
 
bufferMessage(ByteBuffer) - Method in class convex.net.MessageSender
Buffers a message for sending.

C

CHALLENGE - Enum constant in enum class convex.net.MessageType
A message that requests the remote endpoint to respond with a signed response.
close() - Method in class convex.api.Convex
Disconnects the client from the network.
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.ConnectionManager
 
close() - Method in class convex.peer.Server
 
closeAllConnections() - Method in class convex.peer.ConnectionManager
Close all outgoing connections from this Peer
closeButMaintainConnection() - Method in class convex.api.Convex
Close without affecting the connection
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) - Static method in class convex.api.Convex
Connect to a local Server, using the Peer's 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.Convex
Current Connection to a Peer, may be null or a closed connection.
Connection - Class in convex.net
Class representing a Connection between network participants.
ConnectionManager - Class in convex.peer
Class for managing the outbound 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
connectToPeerAsync(InetSocketAddress) - Method in class convex.peer.ConnectionManager
Schedules a request to connect to a Peer at the given host address
Convex - Class in convex.api
Class representing the client API to the Convex network when connected directly using the binary protocol.
convex.api - package convex.api
 
convex.net - package convex.net
 
convex.peer - package convex.peer
 
create(int) - Static method in class convex.net.MemoryByteChannel
 
create(Connection, ACell) - Static method in class convex.net.Message
 
create(Connection, MessageType, ACell) - Static method in class convex.net.Message
 
create(Server) - Static method in class convex.peer.ServerInformation
 
create(Server, String) - Static method in class convex.peer.ServerEvent
 
create(Server, BlockingQueue<Message>) - Static method in class convex.net.NIOServer
Creates a new unlaunched NIO server
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(SignedData<Belief>) - Static method in class convex.net.Message
 
createChallenge(SignedData<ACell>) - Static method in class convex.net.Message
 
createData(ACell) - Static method in class convex.net.Message
 
createGoodBye(SignedData<ACell>) - Static method in class convex.net.Message
 
createResponse(SignedData<ACell>) - Static method in class convex.net.Message
 

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
 

F

finalize() - Method in class convex.api.Convex
 
finalize() - Method in class convex.net.NIOServer
 
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.
getAction() - Method in class convex.net.MessageReceiver
 
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 PeerServer
getBeliefHash() - Method in class convex.peer.ServerInformation
 
getBlockCount() - Method in class convex.peer.ServerInformation
 
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.Convex
Gets the underlying Connection instance for this Client.
getConnection() - Method in class convex.net.Message
 
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
getConnectionCount() - Method in class convex.peer.ServerInformation
 
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
getConsensusPoint() - Method in class convex.peer.ServerInformation
 
getCounter() - Static method in class convex.net.Connection
Gets the global message ID counter
getErrorCode() - Method in class convex.net.Message
 
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
getHostname() - Method in class convex.peer.ServerInformation
 
getID() - Method in class convex.net.Message
Gets the message ID for correlation, assuming this message type supports IDs.
getInformation() - Method in class convex.peer.ServerEvent
 
getKeyPair() - Method in class convex.peer.Server
Returns the Keypair for this peer server SECURITY: Be careful with this!
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
 
getNetworkID() - Method in class convex.peer.ServerInformation
 
getPayload() - Method in class convex.net.Message
 
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.peer.Server
Gets the public key of the peer account
getPeerKey() - Method in class convex.peer.ServerInformation
 
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
getReason() - Method in class convex.peer.ServerEvent
 
getReceiveAction() - Method in class convex.peer.Server
 
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.Convex
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
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.
getStateHash() - Method in class convex.peer.ServerInformation
 
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.
getTrustedConnectionCount() - Method in class convex.peer.ConnectionManager
Returns the number of trusted connections
getTrustedConnectionCount() - Method in class convex.peer.ServerInformation
 
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.

H

handleChannelRecieve() - Method in class convex.net.Connection
Handles receipt of bytes from the channel on this Connection.
handleError(long, Object, Object) - Method in class convex.net.ResultConsumer
Method called when an error result is received.
handleError(Object, Object) - Method in class convex.net.ResultConsumer
Method called when an error result is received.
handleResult(long, Object) - Method in class convex.net.ResultConsumer
Method called when a normal (non-error) result is received.
handleResult(Object) - Method in class convex.net.ResultConsumer
Method called when a normal (non-error) result is received.
handleResultMessage(Message) - Method in class convex.net.ResultConsumer
Method called when a result is received.

I

information - Variable in class convex.peer.ServerEvent
 
isAutoSequence() - Method in class convex.api.Convex
Determines if this Client is configured to automatically generate sequence numbers
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(AccountKey) - Method in class convex.peer.ConnectionManager
Return true if a specified Peer is connected
IServerEvent - Interface in convex.peer
Server Event Interface.
isJoined() - Method in class convex.peer.ServerInformation
 
isOpen() - Method in class convex.net.MemoryByteChannel
 
isSynced() - Method in class convex.peer.ServerInformation
 
isTrusted() - Method in class convex.net.Connection
 

K

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

L

launch() - Method in class convex.peer.Server
Launch the Peer Server, including all main server threads
launch(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[], IServerEvent) - Static method in class convex.peer.API
Launch a local set of peers.
launchPeer(Map<Keyword, Object>) - Static method in class convex.peer.API
Launches a Peer Server with a supplied configuration.
load(Server, ConnectionManager) - Method in class convex.peer.ServerInformation
 
log - Static variable in class convex.net.MessageSender
 

M

maintainConnections() - Method in class convex.peer.ConnectionManager
 
manager - Variable in class convex.peer.Server
Connection manager instance.
maybeMergeBeliefs() - Method in class convex.peer.Server
Checks for mergeable remote beliefs, and if found merge and update own belief.
maybePublishBlock() - Method in class convex.peer.Server
Checks for pending transactions, and if found propose them as a new Block.
maybeSendBytes() - Method in class convex.net.MessageSender
Try to send bytes on the outbound channel.
maybeUpdateBelief() - Method in class convex.peer.Server
Handle general Belief update, taking belief registered in newBeliefs
MemoryByteChannel - Class in convex.net
ByteChannel implementation wrapping a fixed size in-memory buffer
Message - Class in convex.net
Class representing a message to / from a specific PeerConnection
MessageReceiver - Class in convex.net
Class responsible for buffered accumulation of messages 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
 
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

onServerChange(ServerEvent) - Method in interface convex.peer.IServerEvent
 

P

persistPeerData() - Method in class convex.peer.Server
Writes the Peer data to the configured store.
processChallenge(Message, Peer) - Method in class convex.peer.ConnectionManager
 

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 - Enum constant in enum class convex.net.MessageType
A request to perform the specified query and return results.
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
queueEvent(SignedData<?>) - Method in class convex.peer.Server
Adds an event to the inboud server event queue.

R

raiseServerChange(String) - Method in class convex.peer.Server
Reports a server change event to the registered hook, if any
read(ByteBuffer) - Method in class convex.net.MemoryByteChannel
 
reason - Variable in class convex.peer.ServerEvent
 
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.
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.
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.
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
 

S

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_BUFFER_SIZE - Static variable in class convex.net.MessageSender
 
sendChallenge(SignedData<ACell>) - Method in class convex.net.Connection
Sends a CHALLENGE Request Message on this connection.
sendData(ACell) - Method in class convex.net.Connection
Sends a DATA Message on this connection.
sendMessage(Message) - Method in class convex.net.Connection
Sends a message over this connection
sendMissingData(Hash) - Method in class convex.net.Connection
Sends a DATA Message on this connection.
sendObject(MessageType, ACell) - Method in class convex.net.Connection
Sends a 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.
sendResult(CVMLong, ACell) - Method in class convex.net.Connection
Sends a RESULT Message on this connection with no error code (i.e.
sendResult(CVMLong, ACell, ACell) - Method in class convex.net.Connection
Sends a RESULT Message on this connection.
sendResult(Result) - Method in class convex.net.Connection
Sends a RESULT 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.ConnectionManager
 
server - Variable in class convex.peer.ServerEvent
 
Server - Class in convex.peer
A self contained server that can be launched with a config.
ServerEvent - Class in convex.peer
Lightweight wrapper for server events
ServerInformation - Class in convex.peer
Utility class to extract and store server information samples
setAddress(Address) - Method in class convex.api.Convex
Sets the Address for this connection.
setAddress(Address, AKeyPair) - Method in class convex.api.Convex
 
setAutoSequence(boolean) - Method in class convex.api.Convex
Configures auto-generation of sequence numbers
setConnection(AccountKey, Connection) - Method in class convex.peer.ConnectionManager
 
setHandler(Consumer<Message>) - Method in class convex.api.Convex
 
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
 
setPeerController(Address) - Method in class convex.peer.Server
Sets the Peer controller Address
setTrustedPeerKey(AccountKey) - Method in class convex.net.Connection
 
signData(T) - Method in class convex.api.Convex
Signs a value on behalf of this client.
start() - Method in class convex.peer.ConnectionManager
 
STATUS - Enum constant in enum class convex.net.MessageType
Request for a peer status update.

T

toString() - Method in class convex.net.Connection
 
toString() - Method in class convex.net.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(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 - 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.
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
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

U

unbuffer(Hash) - Method in class convex.net.ResultConsumer
Unbuffer and replay messages for a given hash

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

wakeUp() - Method in class convex.net.Connection
 
withConnection(Connection) - Method in class convex.net.Message
 
wrap(Connection) - Static method in class convex.api.Convex
Wraps a connection as a Convex client instance
write(ByteBuffer) - Method in class convex.net.MemoryByteChannel
 
A B C D F G H I K L M N O P Q R S T U V W 
All Classes|All Packages|Constant Field Values