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


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()
          Deprecated. 
 Map<String,Credentials> credentialStore()
          retrieves a list of credentials for resources created within this context, keyed on id of the resource with a namespace prefix (ex.
 Crypto crypto()
           
 DateService date()
           
 com.google.common.eventbus.EventBus eventBus()
           
 HttpClient http()
           
 com.google.inject.Injector injector()
           
 com.google.common.util.concurrent.ListeningExecutorService ioExecutor()
           
 Json json()
           
 Logger.LoggerFactory loggerFactory()
           
 com.google.common.util.concurrent.ListeningExecutorService userExecutor()
           
 XMLParser xml()
           
 
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

@Deprecated
public HttpAsyncClient asyncHttp()
Deprecated. 

Specified by:
asyncHttp in interface Utils

date

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

crypto

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

http

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

ioExecutor

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

userExecutor

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

eventBus

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

loggerFactory

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

json

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

injector

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

xml

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

credentialStore

public Map<String,Credentials> credentialStore()
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:
credentialStore in interface Utils


Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.