use of com.tencent.angel.master.client.WorkerClient in project angel by Tencent.
the class WorkerThreadStackBlock method render.
@Override
protected void render(Block html) {
set(TITLE, join("Angel WorkerThreadStack ", $(WORKER_ATTEMPT_ID)));
try {
WorkerAttemptId workerAttemptId = new WorkerAttemptId($(WORKER_ATTEMPT_ID));
WorkerClient workerClient = null;
LOG.info("start init WorkerClient");
workerClient = new WorkerClient(amContext, workerAttemptId);
String info = workerClient.getThreadStack();
html.pre()._(info)._();
} catch (IOException | UnvalidIdStrException | ServiceException e) {
LOG.error("get stack for " + $(WORKER_ATTEMPT_ID) + " failed, ", e);
}
}
Aggregations