Package com.slave.application
Class Slave
- All Implemented Interfaces:
SlaveService,Serializable,Remote
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 Summary
FieldsFields inherited from class java.rmi.server.RemoteObject
ref -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidMain Method of the Java applicationprivate voidstartGUI()Displays the graphical user interfaceprivate voidstartService(String localAddress, int localPort, String coordinatorAddress, int coordinatorPort) Starts the slave serviceMethods inherited from class com.slave.application.services.SlaveServiceImpl
checkStatus, getSystemInformation, setupProblemEnvironment, startInference, stopInferenceMethods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, exportObject, exportObject, unexportObjectMethods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
-
Field Details
-
slaveServiceManager
-
terminalGUI
-
-
Constructor Details
-
Slave
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
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 portcoordinatorAddress- Coordinator network address (IP)coordinatorPort- Coordinator network port
-
startGUI
private void startGUI()Displays the graphical user interface
-