Package com.decs.shared
Interface SlaveService
- All Superinterfaces:
Remote
Slave Service Interface
This interface references the remote methods that are required to be implemented on each DECS-Slave instance.
- Version:
- 1.0
- Author:
- Bruno Guiomar
-
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks the status of a connected DECS-Slave instanceRetrieves the system information of the slave instancebooleansetupProblemEnvironment(ArrayList<JobFile> jobFiles, String problemCode, String distribution) Sets up the execution environment in the Slave instancebooleanstartInference(String problemCode) Starts the inference process on each connected slavebooleanStops the inference process on each connected slave
-
Method Details
-
checkStatus
Checks the status of a connected DECS-Slave instance- Returns:
- Liveliness of the node
- Throws:
RemoteException- If the slave instance cannot be reached or any communication error is raised.
-
getSystemInformation
Retrieves the system information of the slave instance- Returns:
- System information object
- Throws:
RemoteException- If the slave instance cannot be reached or any communication error is raised.
-
setupProblemEnvironment
boolean setupProblemEnvironment(ArrayList<JobFile> jobFiles, String problemCode, String distribution) throws RemoteException Sets up the execution environment in the Slave instance- Parameters:
jobFiles- List of the files to be transferedproblemCode- Problem short codedistribution- Problem distribution type- Returns:
- Status of the operation
- Throws:
RemoteException- If the slave instance cannot be reached or any communication error is raised.
-
startInference
Starts the inference process on each connected slave- Parameters:
problemCode- Problem short code- Returns:
- Status of the operation
- Throws:
RemoteException- If the slave instance cannot be reached or any communication error is raised.
-
stopInference
Stops the inference process on each connected slave- Returns:
- Status of the operation
- Throws:
RemoteException- If the slave instance cannot be reached or any communication error is raised.
-