Class ServiceFunctions


  • public final class ServiceFunctions
    extends Object
    Functions to help resolve specific Services and Versions
    Author:
    Jeremy Unruh
    • 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: nova21 would be returned as nova.
      • 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: nova21 would return 21, compute would return 1
    • Constructor Detail

      • ServiceFunctions

        public ServiceFunctions()