@Singleton public class ComputeServiceContextImpl<S,A> extends Object implements ComputeServiceContext
Constructor and Description |
---|
ComputeServiceContextImpl(ComputeService computeService,
Map<String,Credentials> credentialStore,
Utils utils,
RestContext providerSpecificContext) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
Map<String,Credentials> |
credentialStore() |
boolean |
equals(Object obj) |
ComputeService |
getComputeService() |
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. |
<S,A> RestContext<S,A> |
getProviderSpecificContext() |
Utils |
getUtils() |
int |
hashCode() |
String |
toString() |
Utils |
utils() |
@Inject public ComputeServiceContextImpl(ComputeService computeService, Map<String,Credentials> credentialStore, Utils utils, RestContext providerSpecificContext)
public ComputeService getComputeService()
getComputeService
in interface ComputeServiceContext
public <S,A> RestContext<S,A> getProviderSpecificContext()
getProviderSpecificContext
in interface ComputeServiceContext
public void close()
close
in interface ComputeServiceContext
public Utils getUtils()
getUtils
in interface ComputeServiceContext
public Utils utils()
utils
in interface ComputeServiceContext
ComputeServiceContext.getUtils()
public Map<String,Credentials> getCredentialStore()
ComputeServiceContext
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 ComputeServiceContext
public Map<String,Credentials> credentialStore()
credentialStore
in interface ComputeServiceContext
ComputeServiceContext.getCredentialStore()
Copyright © 2009-2012 jclouds. All Rights Reserved.