org.dasein.cloud.cloudstack.compute
Class Snapshots
java.lang.Object
org.dasein.cloud.cloudstack.compute.Snapshots
- All Implemented Interfaces:
- AccessControlledService, SnapshotSupport
public class Snapshots
- extends Object
- implements SnapshotSupport
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
addSnapshotShare
public void addSnapshotShare(@Nonnull
String providerSnapshotId,
@Nonnull
String accountNumber)
throws CloudException,
InternalException
- Specified by:
addSnapshotShare in interface SnapshotSupport
- Throws:
CloudException
InternalException
addPublicShare
public void addPublicShare(@Nonnull
String providerSnapshotId)
throws CloudException,
InternalException
- Specified by:
addPublicShare in interface SnapshotSupport
- Throws:
CloudException
InternalException
create
@Deprecated
@Nonnull
public String create(@Nonnull
String volumeId,
@Nonnull
String description)
throws InternalException,
CloudException
- Deprecated.
- Specified by:
create in interface SnapshotSupport
- Throws:
InternalException
CloudException
getSnapshot
@Nullable
public Snapshot getSnapshot(@Nonnull
String snapshotId)
throws InternalException,
CloudException
- Specified by:
getSnapshot in interface SnapshotSupport
- Throws:
InternalException
CloudException
remove
public void remove(@Nonnull
String snapshotId)
throws InternalException,
CloudException
- Specified by:
remove in interface SnapshotSupport
- Throws:
InternalException
CloudException
removeAllSnapshotShares
public void removeAllSnapshotShares(@Nonnull
String providerSnapshotId)
throws CloudException,
InternalException
- Specified by:
removeAllSnapshotShares in interface SnapshotSupport
- Throws:
CloudException
InternalException
removeSnapshotShare
public void removeSnapshotShare(@Nonnull
String providerSnapshotId,
@Nonnull
String accountNumber)
throws CloudException,
InternalException
- Specified by:
removeSnapshotShare in interface SnapshotSupport
- Throws:
CloudException
InternalException
removePublicShare
public void removePublicShare(@Nonnull
String providerSnapshotId)
throws CloudException,
InternalException
- Specified by:
removePublicShare in interface SnapshotSupport
- Throws:
CloudException
InternalException
searchSnapshots
@Nonnull
public Iterable<Snapshot> searchSnapshots(@Nullable
String ownerId,
@Nullable
String keyword)
throws InternalException,
CloudException
- Specified by:
searchSnapshots in interface SnapshotSupport
- Throws:
InternalException
CloudException
getProviderTermForSnapshot
@Nonnull
public String getProviderTermForSnapshot(@Nonnull
Locale locale)
- Specified by:
getProviderTermForSnapshot in interface SnapshotSupport
listShares
@Nonnull
public Iterable<String> listShares(@Nonnull
String snapshotId)
throws InternalException,
CloudException
- Specified by:
listShares in interface SnapshotSupport
- Throws:
InternalException
CloudException
listSnapshotStatus
@Nonnull
public Iterable<ResourceStatus> listSnapshotStatus()
throws InternalException,
CloudException
- Specified by:
listSnapshotStatus in interface SnapshotSupport
- Throws:
InternalException
CloudException
identifyAttachmentRequirement
@Nonnull
public Requirement identifyAttachmentRequirement()
throws InternalException,
CloudException
- Specified by:
identifyAttachmentRequirement in interface SnapshotSupport
- Throws:
InternalException
CloudException
isPublic
public boolean isPublic(@Nonnull
String snapshotId)
throws InternalException,
CloudException
- Specified by:
isPublic in interface SnapshotSupport
- Throws:
InternalException
CloudException
mapServiceAction
@Nonnull
public String[] mapServiceAction(@Nonnull
ServiceAction action)
- Specified by:
mapServiceAction in interface AccessControlledService
supportsSnapshotSharing
public boolean supportsSnapshotSharing()
throws InternalException,
CloudException
- Specified by:
supportsSnapshotSharing in interface SnapshotSupport
- Throws:
InternalException
CloudException
supportsSnapshotSharingWithPublic
public boolean supportsSnapshotSharingWithPublic()
throws InternalException,
CloudException
- Specified by:
supportsSnapshotSharingWithPublic in interface SnapshotSupport
- Throws:
InternalException
CloudException
listSnapshots
@Nonnull
public Iterable<Snapshot> listSnapshots()
throws InternalException,
CloudException
- Specified by:
listSnapshots in interface SnapshotSupport
- Throws:
InternalException
CloudException
shareSnapshot
public void shareSnapshot(@Nonnull
String arg0,
String arg1,
boolean arg2)
throws InternalException,
CloudException
- Specified by:
shareSnapshot in interface SnapshotSupport
- Throws:
InternalException
CloudException
snapshot
@Nonnull
public Snapshot snapshot(@Nonnull
String volumeId,
@Nonnull
String name,
@Nonnull
String description,
@Nullable
Tag... tags)
throws InternalException,
CloudException
- Specified by:
snapshot in interface SnapshotSupport
- Throws:
InternalException
CloudException
supportsSnapshotCreation
public boolean supportsSnapshotCreation()
throws CloudException,
InternalException
- Specified by:
supportsSnapshotCreation in interface SnapshotSupport
- Throws:
CloudException
InternalException
isSubscribed
public boolean isSubscribed()
throws InternalException,
CloudException
- Specified by:
isSubscribed in interface SnapshotSupport
- Throws:
InternalException
CloudException
Copyright © 2012 enStratus Networks Inc. All Rights Reserved.