public class VMSnapshots extends CollectionDecorator<Snapshot,Snapshots,VMSnapshot>
VMSnapshots providing relation and functional services
to Snapshots.
| Constructor and Description |
|---|
VMSnapshots(HttpProxyBroker proxy,
VM parent) |
| Modifier and Type | Method and Description |
|---|---|
VMSnapshot |
add(Snapshot snapshot)
Adds Snapshot object.
|
VMSnapshot |
add(Snapshot snapshot,
String expect)
Adds Snapshot object.
|
VMSnapshot |
add(Snapshot snapshot,
String expect,
String correlationId)
Adds Snapshot object.
|
VMSnapshot |
get(UUID id)
Fetches VMSnapshot object by id.
|
VMSnapshot |
getById(String id)
Fetches VMSnapshot object by id.
|
List<VMSnapshot> |
list()
Lists VMSnapshot objects.
|
List<VMSnapshot> |
list(Integer max)
Lists VMSnapshot objects.
|
List<VMSnapshot> |
list(Integer max,
String allContent)
Lists VMSnapshot objects.
|
getpublic VMSnapshots(HttpProxyBroker proxy, VM parent)
proxy - HttpProxyBrokerparent - VMpublic List<VMSnapshot> list() throws org.apache.http.client.ClientProtocolException, ServerException, IOException
list in class CollectionDecorator<Snapshot,Snapshots,VMSnapshot>VMSnapshotorg.apache.http.client.ClientProtocolException - Signals that HTTP/S protocol error has occurred.ServerException - Signals that an oVirt api error has occurred.IOException - Signals that an I/O exception of some sort has occurred.public VMSnapshot get(UUID id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
get in class CollectionDecorator<Snapshot,Snapshots,VMSnapshot>id - entity idVMSnapshotorg.apache.http.client.ClientProtocolException - Signals that HTTP/S protocol error has occurred.ServerException - Signals that an oVirt api error has occurred.IOException - Signals that an I/O exception of some sort has occurred.public VMSnapshot getById(String id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
getById in class CollectionDecorator<Snapshot,Snapshots,VMSnapshot>id - entity idVMSnapshotorg.apache.http.client.ClientProtocolException - Signals that HTTP/S protocol error has occurred.ServerException - Signals that an oVirt api error has occurred.IOException - Signals that an I/O exception of some sort has occurred.public List<VMSnapshot> list(Integer max) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
max -
[max results]
VMSnapshotorg.apache.http.client.ClientProtocolException - Signals that HTTP/S protocol error has occurred.ServerException - Signals that an oVirt api error has occurred.IOException - Signals that an I/O exception of some sort has occurred.public List<VMSnapshot> list(Integer max, String allContent) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
allContent -
[true|false]
max -
[max results]
VMSnapshotorg.apache.http.client.ClientProtocolException - Signals that HTTP/S protocol error has occurred.ServerException - Signals that an oVirt api error has occurred.IOException - Signals that an I/O exception of some sort has occurred.public VMSnapshot add(Snapshot snapshot) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
snapshot - Snapshot
snapshot.description
[snapshot.persist_memorystate]
[snapshot.disks.disk]
VMSnapshotorg.apache.http.client.ClientProtocolException - Signals that HTTP/S protocol error has occurred.ServerException - Signals that an oVirt api error has occurred.IOException - Signals that an I/O exception of some sort has occurred.public VMSnapshot add(Snapshot snapshot, String expect) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
snapshot - Snapshot
snapshot.description
[snapshot.persist_memorystate]
[snapshot.disks.disk]
expect -
[201-created]
VMSnapshotorg.apache.http.client.ClientProtocolException - Signals that HTTP/S protocol error has occurred.ServerException - Signals that an oVirt api error has occurred.IOException - Signals that an I/O exception of some sort has occurred.public VMSnapshot add(Snapshot snapshot, String expect, String correlationId) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
snapshot - Snapshot
snapshot.description
[snapshot.persist_memorystate]
[snapshot.disks.disk]
expect -
[201-created]
correlationId -
[any string]
VMSnapshotorg.apache.http.client.ClientProtocolException - Signals that HTTP/S protocol error has occurred.ServerException - Signals that an oVirt api error has occurred.IOException - Signals that an I/O exception of some sort has occurred.Copyright ? 2010 Red Hat, Inc - released under the Apache License Version 2.0