Search in sources :

Example 1 with AMParameterServerEvent

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()));
        }
    }
}
Also used : AMParameterServerEvent(com.tencent.angel.master.ps.ps.AMParameterServerEvent) AMParameterServer(com.tencent.angel.master.ps.ps.AMParameterServer) ParameterServerId(com.tencent.angel.ps.ParameterServerId) ConcurrentHashMap(java.util.concurrent.ConcurrentHashMap)

Aggregations

AMParameterServer (com.tencent.angel.master.ps.ps.AMParameterServer)1 AMParameterServerEvent (com.tencent.angel.master.ps.ps.AMParameterServerEvent)1 ParameterServerId (com.tencent.angel.ps.ParameterServerId)1 ConcurrentHashMap (java.util.concurrent.ConcurrentHashMap)1