Class Slave

All Implemented Interfaces:
SlaveService, Serializable, Remote

public class Slave extends SlaveServiceImpl
Slave Class

This class represents the Slave entity and serves as the node's initial point.

Version:
1.0
Author:
Bruno Guiomar
See Also:
  • Field Details

  • Constructor Details

    • Slave

      public Slave(String slaveAddress) throws RemoteException
      Class Constructor
      Parameters:
      slaveAddress - Slave network address (IP)
      Throws:
      RemoteException - If the slave instance cannot be reached or any communication error is raised.
  • Method Details

    • main

      public static void main(String[] args) throws RemoteException
      Main Method of the Java application
      Parameters:
      args - Command line arguments
      Throws:
      RemoteException - If the slave instance cannot be reached or any communication error is raised.
    • startService

      private void startService(String localAddress, int localPort, String coordinatorAddress, int coordinatorPort)
      Starts the slave service
      Parameters:
      localAddress - Slave network address (IP)
      localPort - Slave network port
      coordinatorAddress - Coordinator network address (IP)
      coordinatorPort - Coordinator network port
    • startGUI

      private void startGUI()
      Displays the graphical user interface