package org.dromara.domain.bo;

import org.dromara.domain.SenClusterNodes;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 集群配置业务对象 sen_cluster_nodes
 *
 * @author luogang
 * @date 2024-09-13
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = SenClusterNodes.class, reverseConvertGenerate = false)
public class SenClusterNodesBo extends BaseEntity {

    /**
     * 节点id
     */
    @NotNull(message = "节点id不能为空", groups = { EditGroup.class })
    private Long nodeId;

    /**
     * 节点名称
     */
    @NotBlank(message = "节点名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String nodeName;
    /**
     * 硬件类型
     */
    @NotBlank(message = "硬件类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String hardwareType;

    /**
     * 算法提供商
     */
    private String algorithmProvider;

    /**
     * 节点算力
     */
    private Long computePower;

    /**
     * 节点IP
     */
    @NotBlank(message = "节点IP不能为空", groups = { AddGroup.class, EditGroup.class })
    private String nodeIp;

    /**
     * 算力路数
     */
    private Long computePaths;

    /**
     * 运行中任务数
     */
    private Long runningTasks;

    /**
     * 运行状态（0-运行中 1-已停止2-运行报错）
     */
    @NotBlank(message = "运行状态（0-运行中 1-已停止2-运行报错）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String runningStatus;

    /**
     * 描述
     */
    private String nodeDesc;


}
