public class UtilsImpl extends Object implements Utils
Modifier | Constructor and Description |
---|---|
protected |
UtilsImpl(com.google.inject.Injector injector,
Json json,
XMLParser xml,
HttpClient simpleClient,
HttpAsyncClient simpleAsyncClient,
Crypto encryption,
DateService date,
ExecutorService userThreads,
ExecutorService ioThreads,
com.google.common.eventbus.EventBus eventBus,
Map<String,Credentials> credentialStore,
Logger.LoggerFactory loggerFactory) |
Modifier and Type | Method and Description |
---|---|
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() |
ExecutorService |
getIoExecutor() |
Json |
getJson() |
Logger.LoggerFactory |
getLoggerFactory() |
ExecutorService |
getUserExecutor() |
XMLParser |
getXml() |
HttpClient |
http()
#see #getHttpClient
|
com.google.inject.Injector |
injector()
#see #getInjector
|
ExecutorService |
ioExecutor()
#see #getIoExecutor
|
Json |
json()
#see #getJson
|
Logger.LoggerFactory |
loggerFactory()
#see #getLoggerFactory
|
ExecutorService |
userExecutor()
#see #getUserExecutor
|
XMLParser |
xml()
#see #getXml
|
@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") ExecutorService userThreads, @Named(value="jclouds.io-worker-threads") ExecutorService ioThreads, com.google.common.eventbus.EventBus eventBus, Map<String,Credentials> credentialStore, Logger.LoggerFactory loggerFactory)
public HttpAsyncClient asyncHttp()
Utils
public DateService date()
Utils
public DateService getDateService()
getDateService
in interface Utils
public HttpAsyncClient getHttpAsyncClient()
getHttpAsyncClient
in interface Utils
public HttpClient getHttpClient()
getHttpClient
in interface Utils
public HttpClient http()
Utils
public ExecutorService getIoExecutor()
getIoExecutor
in interface Utils
public ExecutorService getUserExecutor()
getUserExecutor
in interface Utils
public ExecutorService ioExecutor()
Utils
ioExecutor
in interface Utils
public ExecutorService userExecutor()
Utils
userExecutor
in interface Utils
public com.google.common.eventbus.EventBus getEventBus()
getEventBus
in interface Utils
public com.google.common.eventbus.EventBus eventBus()
public Logger.LoggerFactory getLoggerFactory()
getLoggerFactory
in interface Utils
public Logger.LoggerFactory loggerFactory()
Utils
loggerFactory
in interface Utils
@Beta public com.google.inject.Injector getInjector()
getInjector
in interface Utils
@Beta public com.google.inject.Injector injector()
Utils
public Map<String,Credentials> credentialStore()
credentialStore
in interface Utils
ComputeServiceContext#getCredentialStore
public Map<String,Credentials> getCredentialStore()
Utils
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.
node#id
.
8
, then the key will be node#8
us-east-1/i-asdfdas
, then the key will be node#us-east-1/i-asdfdas
http://cloud/instances/1
, then the key will be node#http://cloud/instances/1
getCredentialStore
in interface Utils
Copyright © 2009-2013 jclouds. All Rights Reserved.