org.dasein.cloud.aws.platform
Class CloudFront

java.lang.Object
  extended by org.dasein.cloud.aws.platform.CloudFront
All Implemented Interfaces:
org.dasein.cloud.AccessControlledService, org.dasein.cloud.platform.CDNSupport

public class CloudFront
extends Object
implements org.dasein.cloud.platform.CDNSupport


Field Summary
 
Fields inherited from interface org.dasein.cloud.platform.CDNSupport
ANY, CREATE_DISTRIBUTION, GET_DISTRIBUTION, LIST_DISTRIBUTION, REMOVE_DISTRIBUTION
 
Method Summary
 String create(String bucket, String name, boolean active, String... cnames)
           
 void delete(String distributionId)
           
 org.dasein.cloud.platform.Distribution getDistribution(String distributionId)
           
 String getProviderTermForDistribution(Locale locale)
           
 boolean isSubscribed()
           
 Collection<org.dasein.cloud.platform.Distribution> list()
           
 Collection<org.dasein.cloud.ResourceStatus> listDistributionStatus()
           
 String[] mapServiceAction(org.dasein.cloud.identity.ServiceAction action)
           
 void update(String distributionId, String name, boolean active, String... cnames)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

@Nonnull
public String create(@Nonnull
                             String bucket,
                             @Nonnull
                             String name,
                             boolean active,
                             @Nullable
                             String... cnames)
              throws org.dasein.cloud.InternalException,
                     org.dasein.cloud.CloudException
Specified by:
create in interface org.dasein.cloud.platform.CDNSupport
Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException

delete

public void delete(@Nonnull
                   String distributionId)
            throws org.dasein.cloud.InternalException,
                   org.dasein.cloud.CloudException
Specified by:
delete in interface org.dasein.cloud.platform.CDNSupport
Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException

getDistribution

@Nullable
public org.dasein.cloud.platform.Distribution getDistribution(@Nonnull
                                                                       String distributionId)
                                                       throws org.dasein.cloud.InternalException,
                                                              org.dasein.cloud.CloudException
Specified by:
getDistribution in interface org.dasein.cloud.platform.CDNSupport
Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException

getProviderTermForDistribution

@Nonnull
public String getProviderTermForDistribution(@Nonnull
                                                     Locale locale)
Specified by:
getProviderTermForDistribution in interface org.dasein.cloud.platform.CDNSupport

isSubscribed

public boolean isSubscribed()
                     throws org.dasein.cloud.InternalException,
                            org.dasein.cloud.CloudException
Specified by:
isSubscribed in interface org.dasein.cloud.platform.CDNSupport
Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException

list

@Nonnull
public Collection<org.dasein.cloud.platform.Distribution> list()
                                                        throws org.dasein.cloud.InternalException,
                                                               org.dasein.cloud.CloudException
Specified by:
list in interface org.dasein.cloud.platform.CDNSupport
Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException

listDistributionStatus

@Nonnull
public Collection<org.dasein.cloud.ResourceStatus> listDistributionStatus()
                                                                   throws org.dasein.cloud.InternalException,
                                                                          org.dasein.cloud.CloudException
Specified by:
listDistributionStatus in interface org.dasein.cloud.platform.CDNSupport
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

update

public void update(@Nonnull
                   String distributionId,
                   @Nonnull
                   String name,
                   boolean active,
                   @Nullable
                   String... cnames)
            throws org.dasein.cloud.InternalException,
                   org.dasein.cloud.CloudException
Specified by:
update in interface org.dasein.cloud.platform.CDNSupport
Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException


Copyright © 2009-2014 Dell, Inc.. All Rights Reserved.