|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jclouds.compute.util.ComputeServiceUtils
public class ComputeServiceUtils
| Field Summary | |
|---|---|
static Pattern |
DELIMETED_BY_HYPHEN_ENDING_IN_HYPHEN_HEX
|
| Constructor Summary | |
|---|---|
ComputeServiceUtils()
|
|
| Method Summary | |
|---|---|
static NodeMetadataBuilder |
addMetadataAndParseTagsFromCommaDelimitedValue(NodeMetadataBuilder builder,
Map<String,String> map)
|
static NodeMetadataBuilder |
addMetadataAndParseTagsFromValuesOfEmptyString(NodeMetadataBuilder builder,
Map<String,String> map)
|
static String |
createExecutionErrorMessage(Map<?,Exception> executionExceptions)
|
static String |
createNodeErrorMessage(Map<? extends NodeMetadata,? extends Throwable> failedNodes)
|
static Statement |
execHttpResponse(HttpRequest request)
build a shell script that invokes the contents of the http request in bash. |
static Statement |
execHttpResponse(URI location)
|
static Statement |
extractTargzIntoDirectory(HttpRequest targz,
String directory)
build a shell script that invokes the contents of the http request in bash. |
static Statement |
extractTargzIntoDirectory(URI targz,
String directory)
|
static Statement |
extractZipIntoDirectory(HttpRequest zip,
String directory)
build a shell script that invokes the contents of the http request in bash. |
static Statement |
extractZipIntoDirectory(URI zip,
String directory)
|
static Iterable<? extends ComputeMetadata> |
filterByName(Iterable<? extends ComputeMetadata> nodes,
String name)
|
static String |
formatStatus(ComputeMetadataIncludingStatus<?> resource)
status as a string which optionally includes the backend status |
static double |
getCores(Hardware input)
|
static double |
getCoresAndSpeed(Hardware input)
|
static double |
getSpace(Hardware input)
|
static Iterable<String> |
getSupportedProviders()
Deprecated. |
static Map<String,String> |
metadataAndTagsAsCommaDelimitedValue(TemplateOptions options)
For cloud apis that need to namespace tags as the value of the key jclouds.tags |
static Map<String,String> |
metadataAndTagsAsValuesOfEmptyString(TemplateOptions options)
For cloud apis that have a pattern of using empty strings as tags, return a map that contains that. |
static OsFamily |
parseOsFamilyOrUnrecognized(String in)
|
static String |
parseVersionOrReturnEmptyString(OsFamily family,
String in,
Map<OsFamily,Map<String,String>> osVersionMap)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final Pattern DELIMETED_BY_HYPHEN_ENDING_IN_HYPHEN_HEX
| Constructor Detail |
|---|
public ComputeServiceUtils()
| Method Detail |
|---|
public static String formatStatus(ComputeMetadataIncludingStatus<?> resource)
public static Statement execHttpResponse(HttpRequest request)
public static Statement execHttpResponse(URI location)
public static Statement extractTargzIntoDirectory(HttpRequest targz,
String directory)
public static Statement extractTargzIntoDirectory(URI targz,
String directory)
public static Statement extractZipIntoDirectory(HttpRequest zip,
String directory)
public static Statement extractZipIntoDirectory(URI zip,
String directory)
public static double getCores(Hardware input)
public static double getCoresAndSpeed(Hardware input)
public static double getSpace(Hardware input)
public static OsFamily parseOsFamilyOrUnrecognized(String in)
public static String createExecutionErrorMessage(Map<?,Exception> executionExceptions)
public static String createNodeErrorMessage(Map<? extends NodeMetadata,? extends Throwable> failedNodes)
public static Iterable<? extends ComputeMetadata> filterByName(Iterable<? extends ComputeMetadata> nodes,
String name)
@Deprecated public static Iterable<String> getSupportedProviders()
public static Map<String,String> metadataAndTagsAsValuesOfEmptyString(TemplateOptions options)
public static NodeMetadataBuilder addMetadataAndParseTagsFromValuesOfEmptyString(NodeMetadataBuilder builder,
Map<String,String> map)
metadataAndTagsAsValuesOfEmptyString(org.jclouds.compute.options.TemplateOptions)public static Map<String,String> metadataAndTagsAsCommaDelimitedValue(TemplateOptions options)
jclouds.tags
public static NodeMetadataBuilder addMetadataAndParseTagsFromCommaDelimitedValue(NodeMetadataBuilder builder,
Map<String,String> map)
metadataAndTagsAsCommaDelimitedValue(org.jclouds.compute.options.TemplateOptions)
public static String parseVersionOrReturnEmptyString(OsFamily family,
String in,
Map<OsFamily,Map<String,String>> osVersionMap)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||