public interface Master extends Remote
Modifier and Type | Method and Description |
---|---|
void |
abortRun()
Notifies the master to terminate the run immediately.
|
long |
currentTimeMillis()
Obtain the master's time for time adjustment.
|
MasterState |
getCurrentState()
Obtains the current state of the master.
|
void |
updateMetrics(RuntimeMetrics m)
Updates the master with the latest runtime metrics so the
master can dump out the stats accordingly.
|
void |
waitForState(MasterState state)
Wait for a certain state on the master.
|
long currentTimeMillis() throws RemoteException
RemoteException
- A network error occurredvoid abortRun() throws RemoteException
RemoteException
- A network error occurred.void updateMetrics(RuntimeMetrics m) throws RemoteException
m
- The runtime metrics to updateRemoteException
- A network error occurred.MasterState getCurrentState() throws RemoteException
RemoteException
void waitForState(MasterState state) throws RemoteException
state
- RemoteException