public class DashboardClient
extends java.lang.Object
Constructor and Description |
---|
DashboardClient(java.lang.String dashHost,
java.lang.String jobID,
int numberOfConnections) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
boolean |
jobStateChange(JobAPI.JobState state)
send JobStateChange message to Dashboard
|
boolean |
registerJob(JobAPI.Job job,
JobMasterAPI.NodeInfo jobMasterNodeInfo)
send registerJob message to Dashboard
when a job master starts, it sends this message to Dashboard
|
boolean |
registerWorker(JobMasterAPI.WorkerInfo workerInfo,
JobMasterAPI.WorkerState initialState)
send RegisterWorker message to Dashboard
initialState must be either STARTED or RESTARTED
|
boolean |
scaledWorkers(int change,
int numberOfWorkers,
java.util.List<java.lang.Integer> killedWorkers)
send ScaleComputeResource message to Dashboard
instances shows the updated value of the instances for this compute resource
instances may be smaller or higher than the original value
if it is smaller, it means some instances of that resource removed
if it is higher, it means some instances of that resource added
|
boolean |
workerStateChange(int workerID,
JobMasterAPI.WorkerState state)
send WorkerStateChange message to Dashboard
|
public DashboardClient(java.lang.String dashHost, java.lang.String jobID, int numberOfConnections)
public boolean registerJob(JobAPI.Job job, JobMasterAPI.NodeInfo jobMasterNodeInfo)
public boolean jobStateChange(JobAPI.JobState state)
public boolean scaledWorkers(int change, int numberOfWorkers, java.util.List<java.lang.Integer> killedWorkers)
public boolean registerWorker(JobMasterAPI.WorkerInfo workerInfo, JobMasterAPI.WorkerState initialState)
public boolean workerStateChange(int workerID, JobMasterAPI.WorkerState state)
public void close()