org.dasein.cloud.aws.compute
Class EBSSnapshot
java.lang.Object
org.dasein.cloud.compute.AbstractSnapshotSupport
org.dasein.cloud.aws.compute.EBSSnapshot
- All Implemented Interfaces:
- org.dasein.cloud.AccessControlledService, org.dasein.cloud.compute.SnapshotSupport
public class EBSSnapshot
- extends org.dasein.cloud.compute.AbstractSnapshotSupport
| Fields inherited from interface org.dasein.cloud.compute.SnapshotSupport |
ANY, CREATE_SNAPSHOT, GET_SNAPSHOT, LIST_SNAPSHOT, MAKE_PUBLIC, REMOVE_SNAPSHOT, SHARE_SNAPSHOT |
| Methods inherited from class org.dasein.cloud.compute.AbstractSnapshotSupport |
create, getContext, getProvider, searchSnapshots, shareSnapshot, snapshot, toString |
addSnapshotShare
public void addSnapshotShare(@Nonnull
String providerSnapshotId,
@Nonnull
String accountNumber)
throws org.dasein.cloud.CloudException,
org.dasein.cloud.InternalException
- Specified by:
addSnapshotShare in interface org.dasein.cloud.compute.SnapshotSupport- Overrides:
addSnapshotShare in class org.dasein.cloud.compute.AbstractSnapshotSupport
- Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException
addPublicShare
public void addPublicShare(@Nonnull
String providerSnapshotId)
throws org.dasein.cloud.CloudException,
org.dasein.cloud.InternalException
- Specified by:
addPublicShare in interface org.dasein.cloud.compute.SnapshotSupport- Overrides:
addPublicShare in class org.dasein.cloud.compute.AbstractSnapshotSupport
- Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException
createSnapshot
@Nonnull
public String createSnapshot(@Nonnull
org.dasein.cloud.compute.SnapshotCreateOptions options)
throws org.dasein.cloud.InternalException,
org.dasein.cloud.CloudException
- Specified by:
createSnapshot in interface org.dasein.cloud.compute.SnapshotSupport- Overrides:
createSnapshot in class org.dasein.cloud.compute.AbstractSnapshotSupport
- Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException
getCapabilities
@Nonnull
public org.dasein.cloud.compute.SnapshotCapabilities getCapabilities()
getProviderTermForSnapshot
@Nonnull
public String getProviderTermForSnapshot(@Nonnull
Locale locale)
getSnapshot
@Nullable
public org.dasein.cloud.compute.Snapshot getSnapshot(@Nonnull
String snapshotId)
throws org.dasein.cloud.InternalException,
org.dasein.cloud.CloudException
- Specified by:
getSnapshot in interface org.dasein.cloud.compute.SnapshotSupport- Overrides:
getSnapshot in class org.dasein.cloud.compute.AbstractSnapshotSupport
- Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException
identifyAttachmentRequirement
@Nonnull
public org.dasein.cloud.Requirement identifyAttachmentRequirement()
throws org.dasein.cloud.InternalException,
org.dasein.cloud.CloudException
- Specified by:
identifyAttachmentRequirement in interface org.dasein.cloud.compute.SnapshotSupport- Overrides:
identifyAttachmentRequirement in class org.dasein.cloud.compute.AbstractSnapshotSupport
- Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException
isPublic
public boolean isPublic(@Nonnull
String snapshotId)
throws org.dasein.cloud.InternalException,
org.dasein.cloud.CloudException
- Specified by:
isPublic in interface org.dasein.cloud.compute.SnapshotSupport- Overrides:
isPublic in class org.dasein.cloud.compute.AbstractSnapshotSupport
- Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException
isSubscribed
public boolean isSubscribed()
throws org.dasein.cloud.InternalException,
org.dasein.cloud.CloudException
- Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException
listShares
@Nonnull
public Iterable<String> listShares(@Nonnull
String forSnapshotId)
throws org.dasein.cloud.InternalException,
org.dasein.cloud.CloudException
- Specified by:
listShares in interface org.dasein.cloud.compute.SnapshotSupport- Overrides:
listShares in class org.dasein.cloud.compute.AbstractSnapshotSupport
- Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException
listSnapshotStatus
@Nonnull
public Iterable<org.dasein.cloud.ResourceStatus> listSnapshotStatus()
throws org.dasein.cloud.InternalException,
org.dasein.cloud.CloudException
- Specified by:
listSnapshotStatus in interface org.dasein.cloud.compute.SnapshotSupport- Overrides:
listSnapshotStatus in class org.dasein.cloud.compute.AbstractSnapshotSupport
- Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException
listSnapshots
@Nonnull
public Iterable<org.dasein.cloud.compute.Snapshot> listSnapshots()
throws org.dasein.cloud.InternalException,
org.dasein.cloud.CloudException
- Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException
listSnapshots
@Nonnull
public Iterable<org.dasein.cloud.compute.Snapshot> listSnapshots(@Nullable
org.dasein.cloud.compute.SnapshotFilterOptions options)
throws org.dasein.cloud.InternalException,
org.dasein.cloud.CloudException
- Specified by:
listSnapshots in interface org.dasein.cloud.compute.SnapshotSupport- Overrides:
listSnapshots in class org.dasein.cloud.compute.AbstractSnapshotSupport
- Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException
mapServiceAction
@Nonnull
public String[] mapServiceAction(@Nonnull
org.dasein.cloud.identity.ServiceAction action)
- Specified by:
mapServiceAction in interface org.dasein.cloud.AccessControlledService- Overrides:
mapServiceAction in class org.dasein.cloud.compute.AbstractSnapshotSupport
remove
public void remove(@Nonnull
String snapshotId)
throws org.dasein.cloud.InternalException,
org.dasein.cloud.CloudException
- Specified by:
remove in interface org.dasein.cloud.compute.SnapshotSupport- Overrides:
remove in class org.dasein.cloud.compute.AbstractSnapshotSupport
- Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException
removeAllSnapshotShares
public void removeAllSnapshotShares(@Nonnull
String providerSnapshotId)
throws org.dasein.cloud.CloudException,
org.dasein.cloud.InternalException
- Specified by:
removeAllSnapshotShares in interface org.dasein.cloud.compute.SnapshotSupport- Overrides:
removeAllSnapshotShares in class org.dasein.cloud.compute.AbstractSnapshotSupport
- Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException
removeSnapshotShare
public void removeSnapshotShare(@Nonnull
String providerSnapshotId,
@Nonnull
String accountNumber)
throws org.dasein.cloud.CloudException,
org.dasein.cloud.InternalException
- Specified by:
removeSnapshotShare in interface org.dasein.cloud.compute.SnapshotSupport- Overrides:
removeSnapshotShare in class org.dasein.cloud.compute.AbstractSnapshotSupport
- Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException
removePublicShare
public void removePublicShare(@Nonnull
String providerSnapshotId)
throws org.dasein.cloud.CloudException,
org.dasein.cloud.InternalException
- Specified by:
removePublicShare in interface org.dasein.cloud.compute.SnapshotSupport- Overrides:
removePublicShare in class org.dasein.cloud.compute.AbstractSnapshotSupport
- Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException
removeTags
public void removeTags(@Nonnull
String snapshotId,
@Nonnull
org.dasein.cloud.Tag... tags)
throws org.dasein.cloud.CloudException,
org.dasein.cloud.InternalException
- Specified by:
removeTags in interface org.dasein.cloud.compute.SnapshotSupport- Overrides:
removeTags in class org.dasein.cloud.compute.AbstractSnapshotSupport
- Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException
removeTags
public void removeTags(@Nonnull
String[] snapshotIds,
@Nonnull
org.dasein.cloud.Tag... tags)
throws org.dasein.cloud.CloudException,
org.dasein.cloud.InternalException
- Specified by:
removeTags in interface org.dasein.cloud.compute.SnapshotSupport- Overrides:
removeTags in class org.dasein.cloud.compute.AbstractSnapshotSupport
- Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException
searchSnapshots
@Nonnull
public Iterable<org.dasein.cloud.compute.Snapshot> searchSnapshots(@Nonnull
org.dasein.cloud.compute.SnapshotFilterOptions opts)
throws org.dasein.cloud.InternalException,
org.dasein.cloud.CloudException
- Specified by:
searchSnapshots in interface org.dasein.cloud.compute.SnapshotSupport- Overrides:
searchSnapshots in class org.dasein.cloud.compute.AbstractSnapshotSupport
- Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException
supportsSnapshotCopying
public boolean supportsSnapshotCopying()
throws org.dasein.cloud.CloudException,
org.dasein.cloud.InternalException
- Specified by:
supportsSnapshotCopying in interface org.dasein.cloud.compute.SnapshotSupport- Overrides:
supportsSnapshotCopying in class org.dasein.cloud.compute.AbstractSnapshotSupport
- Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException
supportsSnapshotCreation
public boolean supportsSnapshotCreation()
throws org.dasein.cloud.CloudException,
org.dasein.cloud.InternalException
- Specified by:
supportsSnapshotCreation in interface org.dasein.cloud.compute.SnapshotSupport- Overrides:
supportsSnapshotCreation in class org.dasein.cloud.compute.AbstractSnapshotSupport
- Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException
supportsSnapshotSharing
public boolean supportsSnapshotSharing()
throws org.dasein.cloud.InternalException,
org.dasein.cloud.CloudException
- Specified by:
supportsSnapshotSharing in interface org.dasein.cloud.compute.SnapshotSupport- Overrides:
supportsSnapshotSharing in class org.dasein.cloud.compute.AbstractSnapshotSupport
- Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException
supportsSnapshotSharingWithPublic
public boolean supportsSnapshotSharingWithPublic()
throws org.dasein.cloud.InternalException,
org.dasein.cloud.CloudException
- Specified by:
supportsSnapshotSharingWithPublic in interface org.dasein.cloud.compute.SnapshotSupport- Overrides:
supportsSnapshotSharingWithPublic in class org.dasein.cloud.compute.AbstractSnapshotSupport
- Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException
updateTags
public void updateTags(@Nonnull
String snapshotId,
@Nonnull
org.dasein.cloud.Tag... tags)
throws org.dasein.cloud.CloudException,
org.dasein.cloud.InternalException
- Specified by:
updateTags in interface org.dasein.cloud.compute.SnapshotSupport- Overrides:
updateTags in class org.dasein.cloud.compute.AbstractSnapshotSupport
- Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException
updateTags
public void updateTags(@Nonnull
String[] snapshotIds,
@Nonnull
org.dasein.cloud.Tag... tags)
throws org.dasein.cloud.CloudException,
org.dasein.cloud.InternalException
- Specified by:
updateTags in interface org.dasein.cloud.compute.SnapshotSupport- Overrides:
updateTags in class org.dasein.cloud.compute.AbstractSnapshotSupport
- Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException
Copyright © 2009-2014 Dell, Inc.. All Rights Reserved.