任务

运行时UQL(UQL PROCESS)

查看运行时UQL

List<Table> tables = client.top();

终止运行时UQL

根据processId 终止

KillRequest request = new KillRequest();
request.setProcessId("a_4_274_1");
client.kill(request);

终止所有UQL PROCESS

KillRequest request = new KillRequest();
request.setAll(true);
client.kill(request);

算法任务(Algorithm task)

查看算法任务

查看最近运行的5个算法任务

ShowTaskRequest request = new ShowTaskRequest();
request.setLimit(5);
List<Table> tables = client.showTask(request);

查看Id为165的算法任务

ShowTaskRequest request = new ShowTaskRequest();
request.setId(165);
List<Table> tables = client.showTask(request);

查看状态为Done的算法任务

ShowTaskRequest request = new ShowTaskRequest();
request.setStatus(TaskStatus.DONE);
List<Table> tables = client.showTask(request);

返回TASK_STATUS字段说明

字段 状态码
pending 0
computing 1
writing 2
done 3
failed 4
stopped 5

消除算法任务列表

清除Id为357的任务

ClearTaskRequest request = new ClearTaskRequest();
request.setId(357);
client.clearTask(request);

清除所有betweenness_centrality任务

ClearTaskRequest request = new ClearTaskRequest();
request.setName("betweenness_centrality");
client.clearTask(request);

取消/停止算法任务

StopTaskRequest request = new StopTaskRequest();
request.setId(357);
client.stopTask(request);