Class SlaveServiceManager

java.lang.Object
com.slave.application.services.SlaveServiceManager

public class SlaveServiceManager extends Object
Slave Service Manager Class

This class manages the service provided by the slave instance.

Version:
1.0
Author:
Bruno Guiomar
  • Field Details

    • slaveInfo

      private SlaveInfo slaveInfo
    • coordinatorAddress

      private String coordinatorAddress
    • coordinatorPort

      private int coordinatorPort
    • slaveAddress

      private String slaveAddress
  • Constructor Details

    • SlaveServiceManager

      public SlaveServiceManager()
      Class Default Constructor
  • Method Details

    • startService

      public void startService(String slaveAddress, int slavePort, String slaveID, String coordinatorAddress, int coordinatorPort)
      Starts the slave service
      Parameters:
      slaveAddress - Slave network address (IP)
      slavePort - Slave network port
      slaveID - Slave short identification
      coordinatorAddress - Coordinator network address (IP)
      coordinatorPort - Coordinator network port
    • createRegistry

      private void createRegistry()
      Creates a remote method invocation registry (RMI registry)
    • bindRemoteInterface

      private void bindRemoteInterface()
      Binds the remote interface with the RMI registry
    • connect2Coordinator

      private void connect2Coordinator()
      Initiates the registration process in the coordinator service