use of com.tencent.angel.master.ps.ps.AMParameterServerEvent in project angel by Tencent.
the class ParameterServerManager method startAllPS.
/**
* Start all PS
*/
public void startAllPS() {
if (useMiniBatch) {
Thread requestThread = new RequestThread();
requestThread.setName("resource-requester");
requestThread.start();
} else {
for (Map.Entry<ParameterServerId, AMParameterServer> entry : psMap.entrySet()) {
entry.getValue().handle(new AMParameterServerEvent(AMParameterServerEventType.PS_SCHEDULE, entry.getKey()));
}
}
}
Aggregations