@Singleton
public class AsyncGaeHttpCommandExecutorService
extends org.jclouds.http.internal.BaseHttpCommandExecutorService<com.google.appengine.api.urlfetch.HTTPRequest>
HttpCommandExecutorService using their
fetchAsync call| Modifier and Type | Field and Description |
|---|---|
static String |
USER_AGENT |
| Constructor and Description |
|---|
AsyncGaeHttpCommandExecutorService(com.google.appengine.api.urlfetch.URLFetchService urlFetchService,
org.jclouds.http.HttpUtils utils,
org.jclouds.io.ContentMetadataCodec contentMetadataCodec,
com.google.common.util.concurrent.ListeningExecutorService ioExecutor,
org.jclouds.http.IOExceptionRetryHandler ioRetryHandler,
org.jclouds.http.handlers.DelegatingRetryHandler retryHandler,
org.jclouds.http.handlers.DelegatingErrorHandler errorHandler,
org.jclouds.http.internal.HttpWire wire,
ConvertToGaeRequest convertToGaeRequest,
ConvertToJcloudsResponse convertToJcloudsResponse) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
cleanup(com.google.appengine.api.urlfetch.HTTPRequest nativeRequest)
nothing to clean up.
|
protected com.google.appengine.api.urlfetch.HTTPRequest |
convert(org.jclouds.http.HttpRequest request) |
protected org.jclouds.http.HttpResponse |
convert(com.google.appengine.api.urlfetch.HTTPResponse gaeResponse) |
com.google.appengine.api.urlfetch.HTTPRequest |
filterLogAndConvertRe(org.jclouds.http.HttpRequest request) |
protected org.jclouds.http.HttpResponse |
invoke(com.google.appengine.api.urlfetch.HTTPRequest request) |
com.google.common.util.concurrent.ListenableFuture<org.jclouds.http.HttpResponse> |
submit(org.jclouds.http.HttpCommand command) |
public static final String USER_AGENT
@Inject
public AsyncGaeHttpCommandExecutorService(com.google.appengine.api.urlfetch.URLFetchService urlFetchService,
org.jclouds.http.HttpUtils utils,
org.jclouds.io.ContentMetadataCodec contentMetadataCodec,
@Named(value="jclouds.io-worker-threads")
com.google.common.util.concurrent.ListeningExecutorService ioExecutor,
org.jclouds.http.IOExceptionRetryHandler ioRetryHandler,
org.jclouds.http.handlers.DelegatingRetryHandler retryHandler,
org.jclouds.http.handlers.DelegatingErrorHandler errorHandler,
org.jclouds.http.internal.HttpWire wire,
ConvertToGaeRequest convertToGaeRequest,
ConvertToJcloudsResponse convertToJcloudsResponse)
protected org.jclouds.http.HttpResponse convert(com.google.appengine.api.urlfetch.HTTPResponse gaeResponse)
protected com.google.appengine.api.urlfetch.HTTPRequest convert(org.jclouds.http.HttpRequest request)
throws IOException
convert in class org.jclouds.http.internal.BaseHttpCommandExecutorService<com.google.appengine.api.urlfetch.HTTPRequest>IOExceptionprotected void cleanup(com.google.appengine.api.urlfetch.HTTPRequest nativeRequest)
cleanup in class org.jclouds.http.internal.BaseHttpCommandExecutorService<com.google.appengine.api.urlfetch.HTTPRequest>protected org.jclouds.http.HttpResponse invoke(com.google.appengine.api.urlfetch.HTTPRequest request)
throws IOException
invoke in class org.jclouds.http.internal.BaseHttpCommandExecutorService<com.google.appengine.api.urlfetch.HTTPRequest>IOExceptionpublic com.google.appengine.api.urlfetch.HTTPRequest filterLogAndConvertRe(org.jclouds.http.HttpRequest request)
public com.google.common.util.concurrent.ListenableFuture<org.jclouds.http.HttpResponse> submit(org.jclouds.http.HttpCommand command)
submit in interface org.jclouds.http.HttpCommandExecutorServicesubmit in class org.jclouds.http.internal.BaseHttpCommandExecutorService<com.google.appengine.api.urlfetch.HTTPRequest>Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.