@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 ComputeServiceContextpublic <S,A> RestContext<S,A> getProviderSpecificContext()
getProviderSpecificContext in interface ComputeServiceContextpublic void close()
close in interface ComputeServiceContextpublic Utils getUtils()
getUtils in interface ComputeServiceContextpublic Utils utils()
utils in interface ComputeServiceContextComputeServiceContext.getUtils()public Map<String,Credentials> getCredentialStore()
ComputeServiceContextid
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#8us-east-1/i-asdfdas, then the key will be node#us-east-1/i-asdfdashttp://cloud/instances/1, then the key will be node#http://cloud/instances/1getCredentialStore in interface ComputeServiceContextpublic Map<String,Credentials> credentialStore()
credentialStore in interface ComputeServiceContextComputeServiceContext.getCredentialStore()Copyright © 2009-2012 jclouds. All Rights Reserved.