Index
A B C D E F G H I M N O P R S T U V W
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- addPeer(Host) - Method in interface network.INetwork
-
Adds a new peer connection to the network layer.
- addPeer(Host) - Method in class network.NetworkService
B
- broadcastMessage(short, Object, Iterator<Host>) - Method in interface network.INetwork
-
Send a message to multiple peers
- broadcastMessage(short, Object, Iterator<Host>) - Method in class network.NetworkService
C
- channelActive(ChannelHandlerContext) - Method in class network.pipeline.OutHandshakeHandler
- channelActiveCallback(Channel) - Method in class network.PeerOutConnection
- channelInactive(ChannelHandlerContext) - Method in class network.pipeline.InExceptionHandler
- channelInactive(ChannelHandlerContext) - Method in class network.pipeline.OutExceptionHandler
- channelRead(ChannelHandlerContext, Object) - Method in class network.pipeline.InConnectionHandler
- channelRead(ChannelHandlerContext, Object) - Method in class network.pipeline.InHandshakeHandler
- channelRead(ChannelHandlerContext, Object) - Method in class network.pipeline.OutConnectionHandler
- clientHost - Variable in class network.messaging.control.FirstHandshakeMessage
- code - Variable in class network.messaging.NetworkMessage
- compareTo(Host) - Method in class network.Host
- ControlMessage - Class in network.messaging.control
- ControlMessage.Type - Enum in network.messaging.control
D
- decode(ChannelHandlerContext, ByteBuf, List<Object>) - Method in class network.pipeline.MessageDecoder
- deliverMessage(short, T, Host) - Method in interface network.IMessageConsumer
-
Method that is called to deliver a message from the network layer to the application
- deserialize(ByteBuf) - Static method in class network.Host
- deserialize(ByteBuf) - Method in interface network.ISerializer
-
Deserializes an object from a byte buffer and returns it.
E
- encode(ChannelHandlerContext, NetworkMessage, ByteBuf) - Method in class network.pipeline.MessageEncoder
- equals(Object) - Method in class network.Host
- exceptionCaught(ChannelHandlerContext, Throwable) - Method in class network.pipeline.InExceptionHandler
- exceptionCaught(ChannelHandlerContext, Throwable) - Method in class network.pipeline.OutExceptionHandler
F
- FIRST_HS - network.messaging.control.ControlMessage.Type
- FirstHandshakeMessage - Class in network.messaging.control
- FirstHandshakeMessage(Host) - Constructor for class network.messaging.control.FirstHandshakeMessage
- forceRemovePeer(Host) - Method in interface network.INetwork
-
Removes the peer from the network layer, which closes any open connections.
- forceRemovePeer(Host) - Method in class network.NetworkService
- fromOpcode(int) - Static method in enum network.messaging.control.ControlMessage.Type
G
- getAddress() - Method in class network.Host
-
Gets the address of this host
- getPort() - Method in class network.Host
-
Gets the port of this host
H
- handshakeCompletedCallback(Channel) - Method in class network.PeerOutConnection
- hashCode() - Method in class network.Host
- HEARTBEAT - network.messaging.control.ControlMessage.Type
- HeartbeatMessage - Class in network.messaging.control
- HeartbeatMessage() - Constructor for class network.messaging.control.HeartbeatMessage
- Host - Class in network
-
Represents a node in the network layer, including its IP Address and listen port
- Host(InetAddress, int) - Constructor for class network.Host
-
Creates a new host with the given address and port
I
- IMessageConsumer<T> - Interface in network
-
Interface that allows the receiving of a message T from the network layer.
- InConnectionHandler - Class in network.pipeline
- INetwork - Interface in network
-
Represents the network layer.
- InExceptionHandler - Class in network.pipeline
- InExceptionHandler() - Constructor for class network.pipeline.InExceptionHandler
- InHandshakeHandler - Class in network.pipeline
- InHandshakeHandler(Map<Short, IMessageConsumer>) - Constructor for class network.pipeline.InHandshakeHandler
- initChannel(SocketChannel) - Method in class network.PeerOutConnection
- INodeListener - Interface in network
-
Interface that allows receiving notifications when the network layer detects node changes.
- isConnectionActive(Host) - Method in interface network.INetwork
-
Checks if the is an open connection to a peer
- isConnectionActive(Host) - Method in class network.NetworkService
- ISerializer<T> - Interface in network
-
Represents a serializer/deserializer that writes/reads objects to/from a byte buffer
M
- MessageDecoder - Class in network.pipeline
- MessageDecoder(Map<Short, ISerializer>) - Constructor for class network.pipeline.MessageDecoder
- MessageEncoder - Class in network.pipeline
- MessageEncoder(Map<Short, ISerializer>) - Constructor for class network.pipeline.MessageEncoder
- MSG_CODE - Static variable in class network.messaging.control.ControlMessage
- myHost() - Method in interface network.INetwork
-
Get information about the local node
- myHost() - Method in class network.NetworkService
N
- network - package network
- network.messaging - package network.messaging
- network.messaging.control - package network.messaging.control
- network.pipeline - package network.pipeline
- NetworkMessage - Class in network.messaging
- NetworkMessage(short, Object) - Constructor for class network.messaging.NetworkMessage
- NetworkService - Class in network
- NetworkService(Properties) - Constructor for class network.NetworkService
- nodeConnectionReestablished(Host) - Method in interface network.INodeListener
-
Method that is called when the connection to a node was lost and re-established
- nodeDown(Host) - Method in interface network.INodeListener
-
Method called when a node is detected as down
- nodeUp(Host) - Method in interface network.INodeListener
-
Method called when a nod is detected as up
O
- opcode - Variable in enum network.messaging.control.ControlMessage.Type
- operationComplete(ChannelFuture) - Method in class network.PeerOutConnection
- OutConnectionHandler - Class in network.pipeline
- OutExceptionHandler - Class in network.pipeline
- OutExceptionHandler() - Constructor for class network.pipeline.OutExceptionHandler
- OutHandshakeHandler - Class in network.pipeline
- OutHandshakeHandler(Host, PeerOutConnection) - Constructor for class network.pipeline.OutHandshakeHandler
P
- payload - Variable in class network.messaging.NetworkMessage
- PeerOutConnection - Class in network
R
- registerConsumer(short, IMessageConsumer) - Method in interface network.INetwork
-
Registers a new consumer to handle messages with a specific code
- registerConsumer(short, IMessageConsumer) - Method in class network.NetworkService
- registerNodeListener(INodeListener) - Method in interface network.INetwork
-
Registers the listener to receive updates when peer state changes
- registerNodeListener(INodeListener) - Method in class network.NetworkService
- registerSerializer(short, ISerializer) - Method in interface network.INetwork
-
Registers the (de)serializer to be used when sending or receiving messages with a specific code
- registerSerializer(short, ISerializer) - Method in class network.NetworkService
- removePeer(Host) - Method in interface network.INetwork
-
Removes the peer from the network layer, waiting until any pending messages are sent (or the connection attempt fails) before closing.
- removePeer(Host) - Method in class network.NetworkService
S
- sendMessage(short, Object, Host) - Method in interface network.INetwork
-
Sends a message to a peer
- sendMessage(short, Object, Host) - Method in class network.NetworkService
- sendMessage(short, Object, Host, boolean) - Method in interface network.INetwork
-
Sends a message to a peer, possibly using a dedicated channel
- sendMessage(short, Object, Host, boolean) - Method in class network.NetworkService
- serialize(ByteBuf) - Method in class network.Host
- serialize(T, ByteBuf) - Method in interface network.ISerializer
-
Serializes the received object into the received byte buffer.
- serializedSize() - Method in class network.Host
- serializedSize(T) - Method in interface network.ISerializer
-
Calculates the serialized size of a given object2
- serializer - Static variable in class network.messaging.control.ControlMessage
- serializer - Static variable in class network.messaging.control.FirstHandshakeMessage
- serializer - Static variable in class network.messaging.control.HeartbeatMessage
T
- toString() - Method in class network.Host
- toString() - Method in class network.messaging.control.FirstHandshakeMessage
- toString() - Method in class network.messaging.control.HeartbeatMessage
- toString() - Method in class network.messaging.NetworkMessage
- TRANSIENT_KEY - Static variable in class network.NetworkService
- type - Variable in class network.messaging.control.ControlMessage
U
- userEventTriggered(ChannelHandlerContext, Object) - Method in class network.pipeline.InExceptionHandler
- userEventTriggered(ChannelHandlerContext, Object) - Method in class network.pipeline.OutExceptionHandler
V
- valueOf(String) - Static method in enum network.messaging.control.ControlMessage.Type
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum network.messaging.control.ControlMessage.Type
-
Returns an array containing the constants of this enum type, in the order they are declared.
W
- write(ChannelHandlerContext, Object, ChannelPromise) - Method in class network.pipeline.InConnectionHandler
- write(ChannelHandlerContext, Object, ChannelPromise) - Method in class network.pipeline.InExceptionHandler
- write(ChannelHandlerContext, Object, ChannelPromise) - Method in class network.pipeline.InHandshakeHandler
- write(ChannelHandlerContext, Object, ChannelPromise) - Method in class network.pipeline.OutConnectionHandler
- write(ChannelHandlerContext, Object, ChannelPromise) - Method in class network.pipeline.OutExceptionHandler
All Classes All Packages