com.groupbyinc.flux.bootstrap.Bootstrap.class Maven / Gradle / Ivy
???? 4s 'com/groupbyinc/flux/bootstrap/Bootstrap java/lang/Object Bootstrap.java )com/groupbyinc/flux/bootstrap/Bootstrap$5 )com/groupbyinc/flux/bootstrap/Bootstrap$4 )com/groupbyinc/flux/bootstrap/Bootstrap$3
)com/groupbyinc/flux/bootstrap/Bootstrap$2 )com/groupbyinc/flux/bootstrap/Bootstrap$1 4com/groupbyinc/flux/common/settings/Settings$Builder ,com/groupbyinc/flux/common/settings/Settings Builder )java/lang/Thread$UncaughtExceptionHandler java/lang/Thread UncaughtExceptionHandler %java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles Lookup INSTANCE )Lcom/groupbyinc/flux/bootstrap/Bootstrap; node Lcom/groupbyinc/flux/node/Node; keepAliveLatch %Ljava/util/concurrent/CountDownLatch; keepAliveThread Ljava/lang/Thread; spawner 'Lcom/groupbyinc/flux/bootstrap/Spawner; $assertionsDisabled Z ()V + ,
- #java/util/concurrent/CountDownLatch / (I)V + 1
0 2 # $ 4 %com/groupbyinc/flux/bootstrap/Spawner 6
7 - ' ( 9 ,(Lcom/groupbyinc/flux/bootstrap/Bootstrap;)V + ;
< java/lang/StringBuilder >
? - elasticsearch[keepAlive/ A append -(Ljava/lang/String;)Ljava/lang/StringBuilder; C D
? E com/groupbyinc/flux/Version G CURRENT Lcom/groupbyinc/flux/Version; I J H K -(Ljava/lang/Object;)Ljava/lang/StringBuilder; C M
? N ] P toString ()Ljava/lang/String; R S
? T )(Ljava/lang/Runnable;Ljava/lang/String;)V + V
W % & Y setDaemon (Z)V [ \
] java/lang/Runtime _
getRuntime ()Ljava/lang/Runtime; a b
` c
< addShutdownHook (Ljava/lang/Thread;)V f g
` h this initializeNatives (Ljava/nio/file/Path;ZZZ)V java/lang/Exception m *com/groupbyinc/flux/common/logging/Loggers o getLogger 4(Ljava/lang/Class;)Lorg/apache/logging/log4j/Logger; q r
p s %com/groupbyinc/flux/bootstrap/Natives u definitelyRunningAsRoot ()Z w x
v y java/lang/RuntimeException { !can not run elasticsearch as root } (Ljava/lang/String;)V +
| ? org/apache/logging/log4j/Logger ? tryInstallSystemCallFilter (Ljava/nio/file/Path;)V ? ?
v ? 7com/groupbyinc/flux/common/apache/lucene/util/Constants ? WINDOWS ? * ? ? tryVirtualLock ? ,
v ? tryMlockall ? ,
v ? $(Lorg/apache/logging/log4j/Logger;)V + ?
? addConsoleCtrlHandler 5(Lcom/groupbyinc/flux/bootstrap/ConsoleCtrlHandler;)V ? ?
v ? 0com/groupbyinc/flux/bootstrap/JNAKernel32Library ? getInstance 4()Lcom/groupbyinc/flux/bootstrap/JNAKernel32Library; ? ?
? ? trySetMaxNumberOfThreads ? ,
v ? trySetMaxSizeVirtualMemory ? ,
v ? trySetMaxFileSize ? ,
v ? :com/groupbyinc/flux/common/apache/lucene/util/StringHelper ? randomId ()[B ? ?
? ? tmpFile Ljava/nio/file/Path; mlockAll systemCallFilter ctrlHandler logger !Lorg/apache/logging/log4j/Logger; initializeProbes 0com/groupbyinc/flux/monitor/process/ProcessProbe ? 4()Lcom/groupbyinc/flux/monitor/process/ProcessProbe; ? ?
? ? &com/groupbyinc/flux/monitor/os/OsProbe ? *()Lcom/groupbyinc/flux/monitor/os/OsProbe; ? ?
? ? 'com/groupbyinc/flux/monitor/jvm/JvmInfo ? jvmInfo +()Lcom/groupbyinc/flux/monitor/jvm/JvmInfo; ? ?
? ? setup )(ZLcom/groupbyinc/flux/env/Environment;)V 0com/groupbyinc/flux/bootstrap/BootstrapException ? java/io/IOException ? java/net/URISyntaxException ? &java/security/NoSuchAlgorithmException ? #com/groupbyinc/flux/env/Environment ? settings 0()Lcom/groupbyinc/flux/common/settings/Settings; ? ?
? ? spawnNativeControllers ((Lcom/groupbyinc/flux/env/Environment;)V ? ?
7 ? (Ljava/lang/Exception;)V + ?
? ? ()Ljava/nio/file/Path; ? ?
? ? /com/groupbyinc/flux/bootstrap/BootstrapSettings ? MEMORY_LOCK_SETTING -Lcom/groupbyinc/flux/common/settings/Setting; ? ? ? ? +com/groupbyinc/flux/common/settings/Setting ? get B(Lcom/groupbyinc/flux/common/settings/Settings;)Ljava/lang/Object; ? ?
? ? java/lang/Boolean ? booleanValue ? x
? ? SYSTEM_CALL_FILTER_SETTING ? ? ? ? CTRLHANDLER_SETTING ? ? ? ? k l
? ? ,
?
< %com/groupbyinc/flux/bootstrap/JarHell ? 2com/groupbyinc/flux/common/logging/ESLoggerFactory ?
s java/util/Objects requireNonNull &(Ljava/lang/Object;)Ljava/lang/Object;
"java/lang/invoke/LambdaMetafactory metafactory ?(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
(Ljava/lang/Object;)V debug ? accept @(Lorg/apache/logging/log4j/Logger;)Ljava/util/function/Consumer; checkJarHell (Ljava/util/function/Consumer;)V
? +com/groupbyinc/flux/common/network/IfConfig logIfNecessary ,
! $SECURITY_FILTER_BAD_DEFAULTS_SETTING# ? ?$ &com/groupbyinc/flux/bootstrap/Security& configure )(Lcom/groupbyinc/flux/env/Environment;Z)V()
'* Q(Lcom/groupbyinc/flux/bootstrap/Bootstrap;Lcom/groupbyinc/flux/env/Environment;)V +,
- ! " / e Ljava/io/IOException; Ljava/lang/Exception; environment %Lcom/groupbyinc/flux/env/Environment; .Lcom/groupbyinc/flux/common/settings/Settings; loadSecureSettings [(Lcom/groupbyinc/flux/env/Environment;)Lcom/groupbyinc/flux/common/settings/SecureSettings;
configFile9 ?
?: 3com/groupbyinc/flux/common/settings/KeyStoreWrapper< load K(Ljava/nio/file/Path;)Lcom/groupbyinc/flux/common/settings/KeyStoreWrapper;>?
=@ create 7()Lcom/groupbyinc/flux/common/settings/KeyStoreWrapper;BC
=D save (Ljava/nio/file/Path;[C)VFG
=H decrypt ([C)VJK
=L upgrade N(Lcom/groupbyinc/flux/common/settings/KeyStoreWrapper;Ljava/nio/file/Path;[C)VNO
=P keystore 5Lcom/groupbyinc/flux/common/settings/KeyStoreWrapper; keyStoreWrapper
initialEnv createEnvironment ?(ZLjava/nio/file/Path;Lcom/groupbyinc/flux/common/settings/SecureSettings;Lcom/groupbyinc/flux/common/settings/Settings;Ljava/nio/file/Path;)Lcom/groupbyinc/flux/env/Environment; com/groupbyinc/flux/cli/TerminalX DEFAULT "Lcom/groupbyinc/flux/cli/Terminal;Z[ Y\ builder 8()Lcom/groupbyinc/flux/common/settings/Settings$Builder;^_
` PIDFILE_SETTINGb ? ?c getKeye S
?f put ^(Ljava/lang/String;Ljava/nio/file/Path;)Lcom/groupbyinc/flux/common/settings/Settings$Builder;hi
j f(Lcom/groupbyinc/flux/common/settings/Settings;)Lcom/groupbyinc/flux/common/settings/Settings$Builder;hl
m setSecureSettings l(Lcom/groupbyinc/flux/common/settings/SecureSettings;)Lcom/groupbyinc/flux/common/settings/Settings$Builder;op
q builds ?
t java/util/Collectionsv emptyMap ()Ljava/util/Map;xy
wz 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;~
}?
foreground pidFile secureSettings 4Lcom/groupbyinc/flux/common/settings/SecureSettings; initialSettings
configPath terminal 6Lcom/groupbyinc/flux/common/settings/Settings$Builder; start 0com/groupbyinc/flux/node/NodeValidationException? com/groupbyinc/flux/node/Node? !()Lcom/groupbyinc/flux/node/Node;??
??? ,
? stop java/io/Closeable? ? ,com/groupbyinc/flux/core/internal/io/IOUtils? close ([Ljava/io/Closeable;)V??
?? countDown? ,
0? java/lang/Throwable? init >(ZLjava/nio/file/Path;ZLcom/groupbyinc/flux/env/Environment;)V %com/groupbyinc/flux/cli/UserException? $java/io/UnsupportedEncodingException? +com/groupbyinc/flux/bootstrap/BootstrapInfo?? ,
??
-78
?VW
? 2com/groupbyinc/flux/common/logging/LogConfigurator?( ?
?? java/nio/file/Path? 2com/groupbyinc/flux/common/settings/SecureSettings?? ?
?? "com/groupbyinc/flux/common/PidFile? ;(Ljava/nio/file/Path;Z)Lcom/groupbyinc/flux/common/PidFile;B?
??
getRootLogger #()Lorg/apache/logging/log4j/Logger;??
? 6org/apache/logging/log4j/core/appender/ConsoleAppender? findAppender \(Lorg/apache/logging/log4j/Logger;Ljava/lang/Class;)Lorg/apache/logging/log4j/core/Appender;??
p? removeAppender L(Lorg/apache/logging/log4j/Logger;Lorg/apache/logging/log4j/core/Appender;)V??
p? &org/apache/logging/log4j/core/Appender? closeSystOut? ,
? checkLucene? ,
? Ccom/groupbyinc/flux/bootstrap/ElasticsearchUncaughtExceptionHandler? ()Ljava/lang/Object;?
lambda$init$0 9(Lcom/groupbyinc/flux/env/Environment;)Ljava/lang/String;??
?? S D(Lcom/groupbyinc/flux/env/Environment;)Ljava/util/function/Supplier; ?? ? (Ljava/util/function/Supplier;)V +?
?? "setDefaultUncaughtExceptionHandler .(Ljava/lang/Thread$UncaughtExceptionHandler;)V??
? ? ?
?
?
closeSysError? ,
? java/lang/String? NODE_NAME_SETTING? ? ??
? ? G(Ljava/lang/Class;[Ljava/lang/String;)Lorg/apache/logging/log4j/Logger; q?
p? 3com/groupbyinc/flux/common/inject/CreationException? java/io/ByteArrayOutputStream?
? - java/io/PrintStream UTF-8 ,(Ljava/io/OutputStream;ZLjava/lang/String;)V +
) * java/lang/AssertionError
-
addSuppressed (Ljava/lang/Throwable;)V
n .com/groupbyinc/flux/bootstrap/StartupException +
printStackTrace (Ljava/io/PrintStream;)V
flush ,
Guice Exception: {} &(Ljava/lang/String;)Ljava/lang/String; R
? error '(Ljava/lang/String;Ljava/lang/Object;)V ! ?" node validation exception
{}$
getMessage&