public class ServiceHelper extends Object
| Modifier and Type | Method and Description |
|---|---|
static <S,T> T |
callMethod(S service,
String methodNane,
Class<T> returnType)
Extracts the
Context. |
static <T> List<String> |
findCacheKeysForService(T service)
Returns the cache keys for a given Service.
|
static <T> T |
getService(String id,
String providerOrApi,
List<T> services)
Chooses a
ComputeService that matches the specified a service id or a provider / api. |
static <T> org.jclouds.Context |
toContext(T service)
Extracts the
Context. |
static <T> String |
toId(T service)
Extracts the Id of the Service.
|
static <T> String |
toName(T service)
Extracts the Name of the Service.
|
public static <T> List<String> findCacheKeysForService(T service)
service - public static <T> T getService(String id, String providerOrApi, List<T> services)
ComputeService that matches the specified a service id or a provider / api.id - providerOrApi - services - public static <T> String toId(T service)
T - service - public static <T> String toName(T service)
T - service - public static <T> org.jclouds.Context toContext(T service)
Context.T - service - Copyright © 2013. All Rights Reserved.