mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
CloudStack CLOUDSTACK-723
Enhanced baremetal servers support on Cisco UCS
This commit is contained in:
parent
997e9fb7b0
commit
1a1d716d90
7
plugins/hypervisors/ucs/src/com/cloud/ucs/database/UcsBladeDao.java
Executable file
7
plugins/hypervisors/ucs/src/com/cloud/ucs/database/UcsBladeDao.java
Executable file
@ -0,0 +1,7 @@
|
||||
package com.cloud.ucs.database;
|
||||
|
||||
import com.cloud.utils.db.GenericDao;
|
||||
|
||||
public interface UcsBladeDao extends GenericDao<UcsBladeVO, Long> {
|
||||
|
||||
}
|
||||
11
plugins/hypervisors/ucs/src/com/cloud/ucs/database/UcsBladeDaoImpl.java
Executable file
11
plugins/hypervisors/ucs/src/com/cloud/ucs/database/UcsBladeDaoImpl.java
Executable file
@ -0,0 +1,11 @@
|
||||
package com.cloud.ucs.database;
|
||||
|
||||
import javax.ejb.Local;
|
||||
|
||||
import com.cloud.utils.db.DB;
|
||||
import com.cloud.utils.db.GenericDaoBase;
|
||||
@Local(value = { UcsBladeDao.class })
|
||||
@DB(txn = false)
|
||||
public class UcsBladeDaoImpl extends GenericDaoBase<UcsBladeVO, Long> implements UcsBladeDao {
|
||||
|
||||
}
|
||||
69
plugins/hypervisors/ucs/src/com/cloud/ucs/database/UcsBladeVO.java
Executable file
69
plugins/hypervisors/ucs/src/com/cloud/ucs/database/UcsBladeVO.java
Executable file
@ -0,0 +1,69 @@
|
||||
package com.cloud.ucs.database;
|
||||
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.Table;
|
||||
|
||||
@Entity
|
||||
@Table(name="ucs_blade")
|
||||
public class UcsBladeVO {
|
||||
@Id
|
||||
@GeneratedValue(strategy=GenerationType.IDENTITY)
|
||||
@Column(name="id")
|
||||
private long id;
|
||||
|
||||
@Column(name="uuid")
|
||||
private String uuid;
|
||||
|
||||
@Column(name="ucs_manager_id")
|
||||
private long ucsManagerId;
|
||||
|
||||
@Column(name="host_id")
|
||||
private Long hostId;
|
||||
|
||||
@Column(name="dn")
|
||||
private String dn;
|
||||
|
||||
public long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public long getUcsManagerId() {
|
||||
return ucsManagerId;
|
||||
}
|
||||
|
||||
public void setUcsManagerId(long ucsManagerId) {
|
||||
this.ucsManagerId = ucsManagerId;
|
||||
}
|
||||
|
||||
public Long getHostId() {
|
||||
return hostId;
|
||||
}
|
||||
|
||||
public void setHostId(Long hostId) {
|
||||
this.hostId = hostId;
|
||||
}
|
||||
|
||||
public String getDn() {
|
||||
return dn;
|
||||
}
|
||||
|
||||
public void setDn(String dn) {
|
||||
this.dn = dn;
|
||||
}
|
||||
|
||||
public String getUuid() {
|
||||
return uuid;
|
||||
}
|
||||
|
||||
public void setUuid(String uuid) {
|
||||
this.uuid = uuid;
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user