mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Started an object model for the orchestration platform
This commit is contained in:
parent
49c9f1f0ab
commit
b9ddcf8cfe
@ -40,6 +40,7 @@ public interface Snapshot extends ControlledEntity {
|
|||||||
return max;
|
return max;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return this.name();
|
return this.name();
|
||||||
}
|
}
|
||||||
@ -56,6 +57,7 @@ public interface Snapshot extends ControlledEntity {
|
|||||||
BackedUp,
|
BackedUp,
|
||||||
Error;
|
Error;
|
||||||
|
|
||||||
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return this.name();
|
return this.name();
|
||||||
}
|
}
|
||||||
@ -67,8 +69,9 @@ public interface Snapshot extends ControlledEntity {
|
|||||||
|
|
||||||
public static final long MANUAL_POLICY_ID = 0L;
|
public static final long MANUAL_POLICY_ID = 0L;
|
||||||
|
|
||||||
Long getId();
|
long getId();
|
||||||
|
|
||||||
|
@Override
|
||||||
long getAccountId();
|
long getAccountId();
|
||||||
|
|
||||||
long getVolumeId();
|
long getVolumeId();
|
||||||
|
|||||||
@ -40,7 +40,7 @@ public class SnapshotVO implements Snapshot, Identity {
|
|||||||
@Id
|
@Id
|
||||||
@GeneratedValue(strategy=GenerationType.IDENTITY)
|
@GeneratedValue(strategy=GenerationType.IDENTITY)
|
||||||
@Column(name="id")
|
@Column(name="id")
|
||||||
private long id = -1;
|
private final long id = -1;
|
||||||
|
|
||||||
@Column(name="data_center_id")
|
@Column(name="data_center_id")
|
||||||
long dataCenterId;
|
long dataCenterId;
|
||||||
@ -131,7 +131,7 @@ public class SnapshotVO implements Snapshot, Identity {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Long getId() {
|
public long getId() {
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -144,6 +144,7 @@ public class SnapshotVO implements Snapshot, Identity {
|
|||||||
return accountId;
|
return accountId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public long getDomainId() {
|
public long getDomainId() {
|
||||||
return domainId;
|
return domainId;
|
||||||
}
|
}
|
||||||
@ -239,6 +240,7 @@ public class SnapshotVO implements Snapshot, Identity {
|
|||||||
this.version = version;
|
this.version = version;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public Date getCreated() {
|
public Date getCreated() {
|
||||||
return created;
|
return created;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -8,8 +8,6 @@ public interface StorageSubSystem {
|
|||||||
String getType();
|
String getType();
|
||||||
Class<? extends Grouping> getScope();
|
Class<? extends Grouping> getScope();
|
||||||
|
|
||||||
create();
|
|
||||||
|
|
||||||
URI grantAccess(String vol, String reservationId);
|
URI grantAccess(String vol, String reservationId);
|
||||||
URI RemoveAccess(String vol, String reservationId);
|
URI RemoveAccess(String vol, String reservationId);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -50,5 +50,6 @@ public interface FiniteState<S, E> {
|
|||||||
* @return array of events.
|
* @return array of events.
|
||||||
*/
|
*/
|
||||||
Set<E> getPossibleEvents();
|
Set<E> getPossibleEvents();
|
||||||
|
|
||||||
String getDescription();
|
String getDescription();
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user