org.jclouds.rest.internal
Class UtilsImpl

java.lang.Object
  extended by org.jclouds.rest.internal.UtilsImpl
All Implemented Interfaces:
Utils

public class UtilsImpl
extends Object
implements Utils

Author:
Adrian Cole

Constructor Summary
protected UtilsImpl(com.google.inject.Injector injector, Json json, XMLParser xml, HttpClient simpleClient, HttpAsyncClient simpleAsyncClient, Crypto encryption, DateService date, com.google.common.util.concurrent.ListeningExecutorService userExecutor, com.google.common.util.concurrent.ListeningExecutorService ioExecutor, com.google.common.eventbus.EventBus eventBus, Map<String,Credentials> credentialStore, Logger.LoggerFactory loggerFactory)
           
 
Method Summary
 HttpAsyncClient asyncHttp()
          #see #getHttpAsyncClient
 Map<String,Credentials> credentialStore()
           
 Crypto crypto()
          #see #getCrypto
 DateService date()
          #see #getDateService
 com.google.common.eventbus.EventBus eventBus()
           
 Map<String,Credentials> getCredentialStore()
          retrieves a list of credentials for resources created within this context, keyed on id of the resource with a namespace prefix (ex.
 Crypto getCrypto()
           
 DateService getDateService()
           
 com.google.common.eventbus.EventBus getEventBus()
           
 HttpAsyncClient getHttpAsyncClient()
           
 HttpClient getHttpClient()
           
 com.google.inject.Injector getInjector()
           
 com.google.common.util.concurrent.ListeningExecutorService getIoExecutor()
           
 Json getJson()
           
 Logger.LoggerFactory getLoggerFactory()
           
 com.google.common.util.concurrent.ListeningExecutorService getUserExecutor()
           
 XMLParser getXml()
           
 HttpClient http()
          #see #getHttpClient
 com.google.inject.Injector injector()
          #see #getInjector
 com.google.common.util.concurrent.ListeningExecutorService ioExecutor()
          #see #getIoExecutor
 Json json()
          #see #getJson
 Logger.LoggerFactory loggerFactory()
          #see #getLoggerFactory
 com.google.common.util.concurrent.ListeningExecutorService userExecutor()
          #see #getUserExecutor
 XMLParser xml()
          #see #getXml
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UtilsImpl

@Inject
protected UtilsImpl(com.google.inject.Injector injector,
                           Json json,
                           XMLParser xml,
                           HttpClient simpleClient,
                           HttpAsyncClient simpleAsyncClient,
                           Crypto encryption,
                           DateService date,
                           @Named(value="jclouds.user-threads")
                           com.google.common.util.concurrent.ListeningExecutorService userExecutor,
                           @Named(value="jclouds.io-worker-threads")
                           com.google.common.util.concurrent.ListeningExecutorService ioExecutor,
                           com.google.common.eventbus.EventBus eventBus,
                           Map<String,Credentials> credentialStore,
                           Logger.LoggerFactory loggerFactory)
Method Detail

asyncHttp

public HttpAsyncClient asyncHttp()
Description copied from interface: Utils
#see #getHttpAsyncClient

Specified by:
asyncHttp in interface Utils

date

public DateService date()
Description copied from interface: Utils
#see #getDateService

Specified by:
date in interface Utils

crypto

public Crypto crypto()
Description copied from interface: Utils
#see #getCrypto

Specified by:
crypto in interface Utils

getDateService

public DateService getDateService()
Specified by:
getDateService in interface Utils

getCrypto

public Crypto getCrypto()
Specified by:
getCrypto in interface Utils

getHttpAsyncClient

public HttpAsyncClient getHttpAsyncClient()
Specified by:
getHttpAsyncClient in interface Utils

getHttpClient

public HttpClient getHttpClient()
Specified by:
getHttpClient in interface Utils

http

public HttpClient http()
Description copied from interface: Utils
#see #getHttpClient

Specified by:
http in interface Utils

getIoExecutor

public com.google.common.util.concurrent.ListeningExecutorService getIoExecutor()
Specified by:
getIoExecutor in interface Utils

getUserExecutor

public com.google.common.util.concurrent.ListeningExecutorService getUserExecutor()
Specified by:
getUserExecutor in interface Utils

ioExecutor

public com.google.common.util.concurrent.ListeningExecutorService ioExecutor()
Description copied from interface: Utils
#see #getIoExecutor

Specified by:
ioExecutor in interface Utils

userExecutor

public com.google.common.util.concurrent.ListeningExecutorService userExecutor()
Description copied from interface: Utils
#see #getUserExecutor

Specified by:
userExecutor in interface Utils

getEventBus

public com.google.common.eventbus.EventBus getEventBus()
Specified by:
getEventBus in interface Utils

eventBus

public com.google.common.eventbus.EventBus eventBus()
Specified by:
eventBus in interface Utils

getLoggerFactory

public Logger.LoggerFactory getLoggerFactory()
Specified by:
getLoggerFactory in interface Utils

loggerFactory

public Logger.LoggerFactory loggerFactory()
Description copied from interface: Utils
#see #getLoggerFactory

Specified by:
loggerFactory in interface Utils

getJson

public Json getJson()
Specified by:
getJson in interface Utils

json

public Json json()
Description copied from interface: Utils
#see #getJson

Specified by:
json in interface Utils

getInjector

@Beta
public com.google.inject.Injector getInjector()
Specified by:
getInjector in interface Utils

injector

@Beta
public com.google.inject.Injector injector()
Description copied from interface: Utils
#see #getInjector

Specified by:
injector in interface Utils

getXml

public XMLParser getXml()
Specified by:
getXml in interface Utils

xml

public XMLParser xml()
Description copied from interface: Utils
#see #getXml

Specified by:
xml in interface Utils

credentialStore

public Map<String,Credentials> credentialStore()
Specified by:
credentialStore in interface Utils
See Also:
ComputeServiceContext#getCredentialStore

getCredentialStore

public Map<String,Credentials> getCredentialStore()
Description copied from interface: Utils
retrieves a list of credentials for resources created within this context, keyed on id of the resource with a namespace prefix (ex. node#. We are testing this approach for resources such as compute nodes, where you could access this externally.

accessing credentials for a node

the key is in the form node#id.

Specified by:
getCredentialStore in interface Utils


Copyright © 2009-2013 jclouds. All Rights Reserved.