Class SlaveServiceImpl

All Implemented Interfaces:
SlaveService, Serializable, Remote
Direct Known Subclasses:
Slave

public class SlaveServiceImpl extends UnicastRemoteObject implements SlaveService
Slave Service Implementation

This class implements the remote interface methods.

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

    • distribution

      private String distribution
    • problemCode

      private String problemCode
    • operatingSystemMXBean

      private OperatingSystemMXBean operatingSystemMXBean
    • slaveAddress

      private String slaveAddress
  • Constructor Details

    • SlaveServiceImpl

      public SlaveServiceImpl(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

    • checkStatus

      public boolean checkStatus()
      Description copied from interface: SlaveService
      Checks the status of a connected DECS-Slave instance
      Specified by:
      checkStatus in interface SlaveService
      Returns:
      Liveliness of the node
    • getSystemInformation

      public SystemInformation getSystemInformation()
      Description copied from interface: SlaveService
      Retrieves the system information of the slave instance
      Specified by:
      getSystemInformation in interface SlaveService
      Returns:
      System information object
    • setupProblemEnvironment

      public boolean setupProblemEnvironment(ArrayList<JobFile> jobFiles, String problemCode, String distribution)
      Description copied from interface: SlaveService
      Sets up the execution environment in the Slave instance
      Specified by:
      setupProblemEnvironment in interface SlaveService
      Parameters:
      jobFiles - List of the files to be transfered
      problemCode - Problem short code
      distribution - Problem distribution type
      Returns:
      Status of the operation
    • startInference

      public boolean startInference(String problemCode)
      Description copied from interface: SlaveService
      Starts the inference process on each connected slave
      Specified by:
      startInference in interface SlaveService
      Parameters:
      problemCode - Problem short code
      Returns:
      Status of the operation
    • stopInference

      public boolean stopInference()
      Description copied from interface: SlaveService
      Stops the inference process on each connected slave
      Specified by:
      stopInference in interface SlaveService
      Returns:
      Status of the operation