Search in sources :

Example 1 with ComputerJobStatusBuilder

use of com.baidu.hugegraph.computer.k8s.crd.model.ComputerJobStatusBuilder in project hugegraph-computer by hugegraph.

the class ComputerJobController method fillCRStatus.

private void fillCRStatus(HugeGraphComputerJob computerJob) {
    ComputerJobStatus status = computerJob.getStatus() == null ? new ComputerJobStatus() : computerJob.getStatus();
    status = new ComputerJobStatusBuilder(status).editOrNewComponentStates().endComponentStates().editOrNewJobState().endJobState().build();
    computerJob.setStatus(status);
}
Also used : ComputerJobStatus(com.baidu.hugegraph.computer.k8s.crd.model.ComputerJobStatus) ComputerJobStatusBuilder(com.baidu.hugegraph.computer.k8s.crd.model.ComputerJobStatusBuilder)

Aggregations

ComputerJobStatus (com.baidu.hugegraph.computer.k8s.crd.model.ComputerJobStatus)1 ComputerJobStatusBuilder (com.baidu.hugegraph.computer.k8s.crd.model.ComputerJobStatusBuilder)1