|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jclouds.rest.internal.RestContextImpl<S,A>
public class RestContextImpl<S,A>
| Constructor Summary | |
|---|---|
protected |
RestContextImpl(Closer closer,
Map<String,Credentials> credentialStore,
Utils utils,
com.google.inject.Injector injector,
com.google.inject.TypeLiteral<S> syncApi,
com.google.inject.TypeLiteral<A> asyncApi,
URI endpoint,
String provider,
String identity,
String apiVersion,
Set<String> iso3166Codes)
|
| Method Summary | |
|---|---|
void |
close()
Closes all connections to Cloud Files. |
Map<String,Credentials> |
credentialStore()
|
boolean |
equals(Object obj)
|
S |
getApi()
reflects a tuned connection to the cloud which calls RestContext.getAsyncApi() with predetermined
timeouts. |
String |
getApiVersion()
|
A |
getAsyncApi()
low-level api to the cloud. |
Map<String,Credentials> |
getCredentialStore()
retrieves a list of credentials for resources created within this context, keyed on id
of the resource. |
String |
getDescription()
Description of the location |
URI |
getEndpoint()
|
String |
getId()
Unique ID provided by the provider (us-standard, miami, etc) |
String |
getIdentity()
|
Set<String> |
getIso3166Codes()
|
Map<String,Object> |
getMetadata()
|
Location |
getParent()
The parent, or null, if top-level |
LocationScope |
getScope()
Scope of the location, ex. |
Utils |
getUtils()
|
int |
hashCode()
|
String |
toString()
|
Utils |
utils()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
@Inject
protected RestContextImpl(Closer closer,
Map<String,Credentials> credentialStore,
Utils utils,
com.google.inject.Injector injector,
com.google.inject.TypeLiteral<S> syncApi,
com.google.inject.TypeLiteral<A> asyncApi,
URI endpoint,
String provider,
String identity,
String apiVersion,
Set<String> iso3166Codes)
| Method Detail |
|---|
public void close()
close in interface RestContext<S,A>Closerpublic String getIdentity()
getIdentity in interface RestContext<S,A>public A getAsyncApi()
RestContext
getAsyncApi in interface RestContext<S,A>Futurespublic S getApi()
RestContextRestContext.getAsyncApi() with predetermined
timeouts.
getApi in interface RestContext<S,A>public URI getEndpoint()
getEndpoint in interface RestContext<S,A>public Utils getUtils()
getUtils in interface RestContext<S,A>public Utils utils()
utils in interface RestContext<S,A>RestContext.getUtils()public String getApiVersion()
getApiVersion in interface RestContext<S,A>public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic String toString()
toString in class Objectpublic Map<String,Credentials> getCredentialStore()
RestContextid
of the resource. We are testing this approach for resources such as compute nodes, where you
could access this externally.
getCredentialStore in interface RestContext<S,A>public Map<String,Credentials> credentialStore()
credentialStore in interface RestContext<S,A>public String getDescription()
Location
getDescription in interface Locationpublic String getId()
Location
getId in interface Locationpublic Set<String> getIso3166Codes()
getIso3166Codes in interface Locationpublic Map<String,Object> getMetadata()
getMetadata in interface Locationpublic Location getParent()
Location
getParent in interface Locationpublic LocationScope getScope()
Location
getScope in interface Location
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||