public final class ServiceFunctions extends Object
Modifier and Type | Field and Description |
---|---|
static com.google.common.base.Function<String,String> |
TYPE_WITHOUT_VERSION
Takes a Service Type or Service Name and strips off any version (if applicable) and returns the
common name.
|
static com.google.common.base.Function<String,Integer> |
VERSION_FROM_TYPE
Determines the version from a Service Type or Name.
|
Constructor and Description |
---|
ServiceFunctions() |
public static final com.google.common.base.Function<String,String> TYPE_WITHOUT_VERSION
nova21
would be returned as nova
.public static final com.google.common.base.Function<String,Integer> VERSION_FROM_TYPE
nova21
would return 21
, compute
would
return 1
Copyright © 2017. All rights reserved.