Class ServiceFunctions
- java.lang.Object
-
- org.openstack4j.openstack.identity.functions.ServiceFunctions
-
public final class ServiceFunctions extends Object
Functions to help resolve specific Services and Versions- Author:
- Jeremy Unruh
-
-
Field Summary
Fields Modifier and Type Field Description static com.google.common.base.Function<String,String>TYPE_WITHOUT_VERSIONTakes 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_TYPEDetermines the version from a Service Type or Name.
-
Constructor Summary
Constructors Constructor Description ServiceFunctions()
-
-
-
Field Detail
-
TYPE_WITHOUT_VERSION
public static final 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. For example:nova21would be returned asnova.
-
VERSION_FROM_TYPE
public static final com.google.common.base.Function<String,Integer> VERSION_FROM_TYPE
Determines the version from a Service Type or Name. If the current service does not match the pattern then a version 1 is always returned. For example:nova21would return21,computewould return1
-
-