org.dasein.cloud.aws.platform
Class SQS

java.lang.Object
  extended by org.dasein.cloud.platform.AbstractMQSupport<AWSCloud>
      extended by org.dasein.cloud.aws.platform.SQS
All Implemented Interfaces:
org.dasein.cloud.AccessControlledService, org.dasein.cloud.platform.MQSupport

public class SQS
extends org.dasein.cloud.platform.AbstractMQSupport<AWSCloud>


Field Summary
static String SET_QUEUE_ATTRIBUTES
           
 
Fields inherited from interface org.dasein.cloud.platform.MQSupport
ANY
 
Constructor Summary
SQS(AWSCloud provider)
           
 
Method Summary
static org.dasein.cloud.identity.ServiceAction[] asSQSServiceAction(String action)
           
 String createMessageQueue(org.dasein.cloud.platform.MQCreateOptions options)
           
 String getProviderTermForMessageQueue(Locale locale)
           
 boolean isSubscribed()
           
 Iterable<org.dasein.cloud.platform.MessageQueue> listMessageQueues()
           
 Iterable<org.dasein.cloud.ResourceStatus> listMessageQueueStatus()
           
 Iterable<org.dasein.cloud.platform.MQMessageReceipt> receiveMessages(String mqId, org.dasein.util.uom.time.TimePeriod<org.dasein.util.uom.time.Second> waitTime, int count, org.dasein.util.uom.time.TimePeriod<org.dasein.util.uom.time.Second> visibilityTimeout)
           
 void removeMessageQueue(String mqId, String reason)
           
 org.dasein.cloud.platform.MQMessageIdentifier sendMessage(String mqId, String message)
           
 
Methods inherited from class org.dasein.cloud.platform.AbstractMQSupport
getContext, getMessageQueue, getProvider, mapServiceAction, receiveMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SET_QUEUE_ATTRIBUTES

public static final String SET_QUEUE_ATTRIBUTES
See Also:
Constant Field Values
Constructor Detail

SQS

public SQS(AWSCloud provider)
Method Detail

asSQSServiceAction

public static org.dasein.cloud.identity.ServiceAction[] asSQSServiceAction(String action)

createMessageQueue

@Nonnull
public String createMessageQueue(@Nonnull
                                         org.dasein.cloud.platform.MQCreateOptions options)
                          throws org.dasein.cloud.CloudException,
                                 org.dasein.cloud.InternalException
Specified by:
createMessageQueue in interface org.dasein.cloud.platform.MQSupport
Overrides:
createMessageQueue in class org.dasein.cloud.platform.AbstractMQSupport<AWSCloud>
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

getProviderTermForMessageQueue

@Nonnull
public String getProviderTermForMessageQueue(@Nonnull
                                                     Locale locale)

isSubscribed

public boolean isSubscribed()
                     throws org.dasein.cloud.CloudException,
                            org.dasein.cloud.InternalException
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

listMessageQueues

@Nonnull
public Iterable<org.dasein.cloud.platform.MessageQueue> listMessageQueues()
                                                                   throws org.dasein.cloud.CloudException,
                                                                          org.dasein.cloud.InternalException
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

listMessageQueueStatus

@Nonnull
public Iterable<org.dasein.cloud.ResourceStatus> listMessageQueueStatus()
                                                                 throws org.dasein.cloud.CloudException,
                                                                        org.dasein.cloud.InternalException
Specified by:
listMessageQueueStatus in interface org.dasein.cloud.platform.MQSupport
Overrides:
listMessageQueueStatus in class org.dasein.cloud.platform.AbstractMQSupport<AWSCloud>
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

receiveMessages

@Nonnull
public Iterable<org.dasein.cloud.platform.MQMessageReceipt> receiveMessages(@Nonnull
                                                                                    String mqId,
                                                                                    @Nullable
                                                                                    org.dasein.util.uom.time.TimePeriod<org.dasein.util.uom.time.Second> waitTime,
                                                                                    @Nonnegative
                                                                                    int count,
                                                                                    @Nullable
                                                                                    org.dasein.util.uom.time.TimePeriod<org.dasein.util.uom.time.Second> visibilityTimeout)
                                                                     throws org.dasein.cloud.CloudException,
                                                                            org.dasein.cloud.InternalException
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

removeMessageQueue

public void removeMessageQueue(@Nonnull
                               String mqId,
                               @Nullable
                               String reason)
                        throws org.dasein.cloud.CloudException,
                               org.dasein.cloud.InternalException
Specified by:
removeMessageQueue in interface org.dasein.cloud.platform.MQSupport
Overrides:
removeMessageQueue in class org.dasein.cloud.platform.AbstractMQSupport<AWSCloud>
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

sendMessage

@Nonnull
public org.dasein.cloud.platform.MQMessageIdentifier sendMessage(@Nonnull
                                                                         String mqId,
                                                                         @Nonnull
                                                                         String message)
                                                          throws org.dasein.cloud.CloudException,
                                                                 org.dasein.cloud.InternalException
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException


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