Search in sources :

Example 1 with PSAgentId

use of com.tencent.angel.psagent.PSAgentId in project angel by Tencent.

the class PSAgentManager method initPSAgents.

private void initPSAgents() throws InvalidParameterException {
    for (int i = 0; i < psAgentNumber; i++) {
        PSAgentId id = new PSAgentId(i);
        AMPSAgent agent = new AMPSAgent(context, id, new Location(ips[i], 0));
        psAgentMap.put(id, agent);
    }
}
Also used : PSAgentId(com.tencent.angel.psagent.PSAgentId) Location(com.tencent.angel.common.location.Location)

Aggregations

Location (com.tencent.angel.common.location.Location)1 PSAgentId (com.tencent.angel.psagent.PSAgentId)1