org.dasein.cloud.aws.compute
Class EBSSnapshot
java.lang.Object
org.dasein.cloud.aws.compute.EBSSnapshot
- All Implemented Interfaces:
- org.dasein.cloud.AccessControlledService, org.dasein.cloud.compute.SnapshotSupport
public class EBSSnapshot
- extends Object
- implements org.dasein.cloud.compute.SnapshotSupport
| 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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
create
public String create(String fromVolumeId,
String description)
throws org.dasein.cloud.InternalException,
org.dasein.cloud.CloudException
- Specified by:
create in interface org.dasein.cloud.compute.SnapshotSupport
- Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException
remove
public void remove(String snapshotId)
throws org.dasein.cloud.InternalException,
org.dasein.cloud.CloudException
- Specified by:
remove in interface org.dasein.cloud.compute.SnapshotSupport
- Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException
getProviderTermForSnapshot
public String getProviderTermForSnapshot(Locale locale)
- Specified by:
getProviderTermForSnapshot in interface org.dasein.cloud.compute.SnapshotSupport
listShares
public Iterable<String> listShares(String forSnapshotId)
throws org.dasein.cloud.InternalException,
org.dasein.cloud.CloudException
- Specified by:
listShares in interface org.dasein.cloud.compute.SnapshotSupport
- Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException
getSnapshot
public org.dasein.cloud.compute.Snapshot getSnapshot(String snapshotId)
throws org.dasein.cloud.InternalException,
org.dasein.cloud.CloudException
- Specified by:
getSnapshot in interface org.dasein.cloud.compute.SnapshotSupport
- Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException
isPublic
public boolean isPublic(String snapshotId)
throws org.dasein.cloud.InternalException,
org.dasein.cloud.CloudException
- Specified by:
isPublic in interface org.dasein.cloud.compute.SnapshotSupport
- Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException
isSubscribed
public boolean isSubscribed()
throws org.dasein.cloud.InternalException,
org.dasein.cloud.CloudException
- Specified by:
isSubscribed in interface org.dasein.cloud.compute.SnapshotSupport
- Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException
supportsSnapshotSharing
public boolean supportsSnapshotSharing()
throws org.dasein.cloud.InternalException,
org.dasein.cloud.CloudException
- Specified by:
supportsSnapshotSharing in interface org.dasein.cloud.compute.SnapshotSupport
- 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
- Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException
listSnapshots
public Iterable<org.dasein.cloud.compute.Snapshot> listSnapshots()
throws org.dasein.cloud.InternalException,
org.dasein.cloud.CloudException
- Specified by:
listSnapshots in interface org.dasein.cloud.compute.SnapshotSupport
- 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
shareSnapshot
public void shareSnapshot(String snapshotId,
String withAccountId,
boolean affirmative)
throws org.dasein.cloud.InternalException,
org.dasein.cloud.CloudException
- Specified by:
shareSnapshot in interface org.dasein.cloud.compute.SnapshotSupport
- Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException
Copyright © 2012 enStratus Networks LLC. All Rights Reserved.