package com.bocloud.cmp.model.storage;

import com.bocloud.cmp.model.HostModel;
import lombok.Data;

import java.util.List;

/**
 * CEPH OSD
 * A physical or logical storage unit (e.g., LUN). Sometimes,
 * Ceph users use the term “OSD” to refer to Ceph OSD Daemon,
 * though the proper term is “Ceph OSD”.
 */
@Data
public class CephOsdModel {
    @Data
    public static class Node {
        private Long id;
        private String uuid;
        private Boolean in;
        private Boolean up;
        private Long weight;
        private HostModel node;
    }

    private String uuid;
    private Long epoch; // ？？？？？？
    private List<Node> nodes; // 节点所在服务器
}
