CommunicationHub

class CommunicationHub(node: Node?)

This class manages the communication between nodes in a distributed system. It provides methods to get the RMI proxy of a node and to set the current neighbours of a node.

Constructors

Link copied to clipboard
constructor(node: Node?)

Properties

Link copied to clipboard

Gets the RMI proxy of the current node.

Link copied to clipboard

Gets the RMI proxy of the leader.

Link copied to clipboard

Gets the RMI proxy of the left neighbour.

Link copied to clipboard

Gets the RMI proxy of the next neighbour.

Link copied to clipboard

Gets the RMI proxy of the right neighbour.

Functions

Link copied to clipboard
fun getRMIProxy(proxiedAddress: Address): NodeCommands?

Gets the RMI proxy of a node with a given address.

Link copied to clipboard
fun setActNeighbours(actNeighbours: DSNeighbours?)

Sets the current neighbours of a node.