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
|
boolean |
equals(Object obj) |
String |
getDescription()
Description of the location
|
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.
|
int |
hashCode() |
boolean |
isOpen() |
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 boolean isOpen()
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 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()
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.