public class ContextImpl extends Object implements Context
Modifier | Constructor and Description |
---|---|
protected |
ContextImpl(String name,
ProviderMetadata providerMetadata,
com.google.common.base.Supplier<Credentials> creds,
Utils utils,
Closer closer) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes all connections, including executor service
|
Map<String,Credentials> |
credentialStore()
will be removed in jclouds 1.6
|
boolean |
equals(Object obj) |
String |
getApiVersion()
will be removed in jclouds 1.6
|
String |
getBuildVersion()
will be removed in jclouds 1.6
|
Map<String,Credentials> |
getCredentialStore()
will be removed in jclouds 1.6
|
String |
getDescription()
Description of the location
|
URI |
getEndpoint()
will be removed in jclouds 1.6
|
String |
getId()
Unique ID provided by the provider (us-standard, miami, etc)
|
String |
getIdentity() |
Set<String> |
getIso3166Codes() |
Map<String,Object> |
getMetadata() |
String |
getName()
Identifies the Context.
|
Location |
getParent()
The parent, or null, if top-level
|
ProviderMetadata |
getProviderMetadata() |
LocationScope |
getScope()
Scope of the location, ex.
|
Utils |
getUtils() |
int |
hashCode() |
String |
toString() |
Utils |
utils() |
@Inject protected ContextImpl(String name, ProviderMetadata providerMetadata, com.google.common.base.Supplier<Credentials> creds, Utils utils, Closer closer)
public void close()
public ProviderMetadata getProviderMetadata()
getProviderMetadata
in interface Context
ContextBuilder.newBuilder(org.jclouds.providers.ProviderMetadata)
public String getName()
public String getIdentity()
getIdentity
in interface Context
ApiMetadata.getDefaultIdentity()
public URI getEndpoint()
getEndpoint
in interface Context
Context.getProviderMetadata()
,
ProviderMetadata.getEndpoint()
public Utils utils()
utils
in interface Context
Context.getUtils()
public String getApiVersion()
getApiVersion
in interface Context
Context.getProviderMetadata()
,
ProviderMetadata.getApiMetadata()
,
ApiMetadata.getVersion()
public String getBuildVersion()
getBuildVersion
in interface Context
Context.getProviderMetadata()
,
ProviderMetadata.getApiMetadata()
,
ApiMetadata.getBuildVersion()
public String getDescription()
getDescription
in interface Location
public String getId()
public Set<String> getIso3166Codes()
getIso3166Codes
in interface Location
public Map<String,Object> getMetadata()
getMetadata
in interface Location
public Location getParent()
public LocationScope getScope()
public Map<String,Credentials> credentialStore()
credentialStore
in interface Context
Utils.credentialStore()
public Map<String,Credentials> getCredentialStore()
getCredentialStore
in interface Context
Utils.getCredentialStore()
Copyright © 2009-2013 jclouds. All Rights Reserved.