public short getShort(String k) {
    if (containsKey(k))
      return Short.parseShort(get(k));
    else
      throw new ConfigException("Missing key " + k + ".");
  }
Store and retrieve named, typed values as configuration for classes implementing this interface.
samza-api/src/main/java/org/apache/samza/config/Config.java