com.groupbyinc.flux.cli.EnvironmentAwareCommand.class Maven / Gradle / Ivy
???? 4 ? /com/groupbyinc/flux/cli/EnvironmentAwareCommand com/groupbyinc/flux/cli/Command EnvironmentAwareCommand.java
settingOption Ljoptsimple/OptionSpec; 7Ljoptsimple/OptionSpec; (Ljava/lang/String;)V
parser Ljoptsimple/OptionParser;
E Configure a setting joptsimple/OptionParser accepts D(Ljava/lang/String;Ljava/lang/String;)Ljoptsimple/OptionSpecBuilder;
joptsimple/OptionSpecBuilder withRequiredArg *()Ljoptsimple/ArgumentAcceptingOptionSpec;
joptsimple/util/KeyValuePair ! &joptsimple/ArgumentAcceptingOptionSpec # ofType ;(Ljava/lang/Class;)Ljoptsimple/ArgumentAcceptingOptionSpec; % &
$ ' ) this 1Lcom/groupbyinc/flux/cli/EnvironmentAwareCommand; description Ljava/lang/String; execute ;(Lcom/groupbyinc/flux/cli/Terminal;Ljoptsimple/OptionSet;)V java/lang/Exception 1 java/util/HashMap 3 ()V 5
4 6 joptsimple/OptionSpec 8 values ((Ljoptsimple/OptionSet;)Ljava/util/List; : ; 9 < java/util/List > iterator ()Ljava/util/Iterator; @ A ? B
java/util/Map D java/util/Iterator F hasNext ()Z H I G J next ()Ljava/lang/Object; L M G N value P . " Q java/lang/String S isEmpty U I
T V %com/groupbyinc/flux/cli/UserException X java/lang/StringBuilder Z
[ 6 setting [ ] append -(Ljava/lang/String;)Ljava/lang/StringBuilder; _ `
[ a key c . " d ] must not be empty f toString ()Ljava/lang/String; h i
[ j (ILjava/lang/String;)V l
Y m containsKey (Ljava/lang/Object;)Z o p E q java/util/Locale s ROOT Ljava/util/Locale; u v t w +setting [%s] already set, saw [%s] and [%s] y java/lang/Object { get &(Ljava/lang/Object;)Ljava/lang/Object; } ~ E format K(Ljava/util/Locale;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String; ? ?
T ? put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; ? ? E ? path.data ? es.path.data ? #putSystemPropertyIfSettingIsMissing 6(Ljava/util/Map;Ljava/lang/String;Ljava/lang/String;)V ? ?
? path.home ? es.path.home ? path.logs ? es.path.logs ? createEnv X(Lcom/groupbyinc/flux/cli/Terminal;Ljava/util/Map;)Lcom/groupbyinc/flux/env/Environment; ? ?
? `(Lcom/groupbyinc/flux/cli/Terminal;Ljoptsimple/OptionSet;Lcom/groupbyinc/flux/env/Environment;)V / ?
? message kvp Ljoptsimple/util/KeyValuePair; terminal "Lcom/groupbyinc/flux/cli/Terminal; options Ljoptsimple/OptionSet; settings 5Ljava/util/Map; Ljava/util/Map; es.path.conf ? java/lang/System ? getProperty &(Ljava/lang/String;)Ljava/lang/String; ? ?
? ? .the system property [es.path.conf] must be set ? ,com/groupbyinc/flux/common/settings/Settings ? EMPTY .Lcom/groupbyinc/flux/common/settings/Settings; ? ? ? ?
getConfigPath ((Ljava/lang/String;)Ljava/nio/file/Path; ? ?
? 1com/groupbyinc/flux/node/InternalSettingsPreparer ? prepareEnvironment ?(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/cli/Terminal;Ljava/util/Map;Ljava/nio/file/Path;)Lcom/groupbyinc/flux/env/Environment; ? ?
? ?
esPathConf .Lcom/groupbyinc/flux/common/SuppressForbidden; reason "need path to construct environment java/nio/file/Paths ? ;(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path; } ?
? ? pathConf Kduplicate setting [%s] found via command-line [%s] and system property [%s] ? "java/lang/IllegalArgumentException ?
? setting Signature Code LocalVariableTable LineNumberTable LocalVariableTypeTable
StackMapTable
Exceptions ~(Lcom/groupbyinc/flux/cli/Terminal;Ljava/util/Map;)Lcom/groupbyinc/flux/env/Environment; RuntimeInvisibleAnnotations \(Ljava/util/Map;Ljava/lang/String;Ljava/lang/String;)V
SourceFile! ?
? Y *+? **? ? ? "? (? *? ? + , - . ? * + , / 0 ? ? 4Y? 7N*? *,? = ? C :? K ? ?? O ? ":? R? W? )? YY@? [Y? \^? b? e? bg? b? k? n?-? e? r ? ;? xz? |Y? eSY-? e? ? SY? RS? ?:? YY@? n?-? e? R? ? W??b-??? ?-??? ?-??? ?*+,*+-? ?? ?? ? > ? ? . / ? ? ? ? + , ? ? ? ? ? ? ? ? ? ? ? ? ? ? B 0 1 / 2 : 3 ` 5 n 6 ? : ? 6 ? <