public class RabitTracker extends Object implements IRabitTracker
IRabitTracker.TrackerStatus
Constructor and Description |
---|
RabitTracker(int numWorkers) |
RabitTracker(int numWorkers,
String hostIp,
String pythonExec) |
Modifier and Type | Method and Description |
---|---|
String |
getRabitTrackerCommand()
visible for testing
|
Map<String,String> |
getWorkerEnvs()
Get environments that can be used to pass to worker.
|
boolean |
start(long timeout) |
void |
stop() |
void |
uncaughtException(Thread t,
Throwable e) |
int |
waitFor(long timeout) |
public RabitTracker(int numWorkers) throws XGBoostError
XGBoostError
public RabitTracker(int numWorkers, String hostIp, String pythonExec) throws XGBoostError
XGBoostError
public void uncaughtException(Thread t, Throwable e)
uncaughtException
in interface Thread.UncaughtExceptionHandler
public Map<String,String> getWorkerEnvs()
getWorkerEnvs
in interface IRabitTracker
public String getRabitTrackerCommand()
public void stop()
stop
in interface IRabitTracker
public boolean start(long timeout)
start
in interface IRabitTracker
public int waitFor(long timeout)
waitFor
in interface IRabitTracker
Copyright © 2023. All rights reserved.