| 63 | import com.cloud.utils.db.GenericDao; |
| 64 | |
| 65 | @Entity |
| 66 | @Table(name = "host") |
| 67 | @Inheritance(strategy = InheritanceType.TABLE_PER_CLASS) |
| 68 | @DiscriminatorColumn(name = "type", discriminatorType = DiscriminatorType.STRING, length = 32) |
| 69 | public class HostVO implements Host { |
| 70 | @Id |
| 71 | @GeneratedValue(strategy = GenerationType.IDENTITY) |
| 72 | @Column(name = "id") |
| 73 | private long id; |
| 74 | |
| 75 | @Column(name = "disconnected") |
| 76 | @Temporal(value = TemporalType.TIMESTAMP) |
| 77 | private Date disconnectedOn; |
| 78 | |
| 79 | @Column(name = "name", nullable = false) |
| 80 | private String name = null; |
| 81 | |
| 82 | /** |
| 83 | * Note: There is no setter for status because it has to be set in the dao code. |
| 84 | */ |
| 85 | @Column(name = "status", nullable = false) |
| 86 | private Status status = null; |
| 87 | |
| 88 | @Column(name = "type", updatable = true, nullable = false) |
| 89 | @Enumerated(value = EnumType.STRING) |
| 90 | private Type type; |
| 91 | |
| 92 | @Column(name = "private_ip_address", nullable = false) |
| 93 | private String privateIpAddress; |
| 94 | |
| 95 | @Column(name = "private_mac_address", nullable = false) |
| 96 | private String privateMacAddress; |
| 97 | |
| 98 | @Column(name = "private_netmask", nullable = false) |
| 99 | private String privateNetmask; |
| 100 | |
| 101 | @Column(name = "public_netmask") |
| 102 | private String publicNetmask; |
| 103 | |
| 104 | @Column(name = "public_ip_address") |
| 105 | private String publicIpAddress; |
| 106 | |
| 107 | @Column(name = "public_mac_address") |
| 108 | private String publicMacAddress; |
| 109 | |
| 110 | @Column(name = "storage_ip_address") |
| 111 | private String storageIpAddress; |
| 112 | |
| 113 | @Column(name = "cluster_id") |
| 114 | private Long clusterId; |
| 115 | |
| 116 | @Column(name = "storage_netmask") |
| 117 | private String storageNetmask; |
| 118 | |
| 119 | @Column(name = "storage_mac_address") |
| 120 | private String storageMacAddress; |
| 121 | |
| 122 | @Column(name = "storage_ip_address_2") |
nothing calls this directly
no outgoing calls
no test coverage detected