public class Providers extends Object
Constructor and Description |
---|
Providers() |
Modifier and Type | Method and Description |
---|---|
static Iterable<ProviderMetadata> |
all()
Returns all available providers.
|
static Iterable<ProviderMetadata> |
allBlobStore()
Returns the providers that are of type
ProviderMetadata.BLOBSTORE_TYPE . |
static Iterable<ProviderMetadata> |
allCompute()
Returns the providers that are of type
ProviderMetadata.COMPUTE_TYPE . |
static Iterable<ProviderMetadata> |
allLoadBalancer()
Returns the providers that are of type
ProviderMetadata.LOADBALANCER_TYPE . |
static Iterable<ProviderMetadata> |
allQueue()
Returns the providers that are of type
ProviderMetadata.QUEUE_TYPE . |
static Iterable<ProviderMetadata> |
allTable()
Returns the providers that are of type
ProviderMetadata.TABLE_TYPE . |
static Iterable<ProviderMetadata> |
boundedByIso3166Code(String iso3166Code)
Returns the providers that are bound to the same location as the given ISO 3166 code regardless of type.
|
static Iterable<ProviderMetadata> |
boundedByIso3166Code(String iso3166Code,
String type)
Returns the providers that are bound to the same location as the given ISO 3166 code and of the given type.
|
static Iterable<ProviderMetadata> |
collocatedWith(ProviderMetadata providerMetadata)
Returns the providers that have at least one common ISO 3166 code in common regardless of type.
|
static Iterable<ProviderMetadata> |
collocatedWith(ProviderMetadata providerMetadata,
String type)
Returns the providers that have at least one common ISO 3166 code and are of the given type.
|
static Iterable<ProviderMetadata> |
ofType(String type)
Returns the providers that are of the provided type.
|
static ProviderMetadata |
withId(String id)
Returns the first provider with the provided id
|
public static Iterable<ProviderMetadata> all()
public static ProviderMetadata withId(String id) throws NoSuchElementException
id
- the id of the provider to returnNoSuchElementException
- whenever there are no providers with the provided idpublic static Iterable<ProviderMetadata> allBlobStore()
ProviderMetadata.BLOBSTORE_TYPE
.public static Iterable<ProviderMetadata> allCompute()
ProviderMetadata.COMPUTE_TYPE
.public static Iterable<ProviderMetadata> allQueue()
ProviderMetadata.QUEUE_TYPE
.public static Iterable<ProviderMetadata> allTable()
ProviderMetadata.TABLE_TYPE
.public static Iterable<ProviderMetadata> allLoadBalancer()
ProviderMetadata.LOADBALANCER_TYPE
.public static Iterable<ProviderMetadata> ofType(String type)
type
- the type to providers to returnpublic static Iterable<ProviderMetadata> boundedByIso3166Code(String iso3166Code)
isoCode
- the ISO 3166 code to filter providers bypublic static Iterable<ProviderMetadata> boundedByIso3166Code(String iso3166Code, String type)
iso3166Code
- the ISO 3166 code to filter providers bytype
- the type to filter providers bypublic static Iterable<ProviderMetadata> collocatedWith(ProviderMetadata providerMetadata)
providerMetadata
- the provider metadata to use to filter providers bypublic static Iterable<ProviderMetadata> collocatedWith(ProviderMetadata providerMetadata, String type)
providerMetadata
- the provider metadata to use to filter providers bytype
- the type to filter providers byCopyright © 2009-2012 jclouds. All Rights Reserved.