com.groupbyinc.flux.common.PidFile.class Maven / Gradle / Ivy
???? 4 ? "com/groupbyinc/flux/common/PidFile java/lang/Object PidFile.java $com/groupbyinc/flux/common/PidFile$1 pid J path Ljava/nio/file/Path; deleteOnExit Z (Ljava/nio/file/Path;ZJ)V java/io/IOException ()V
this $Lcom/groupbyinc/flux/common/PidFile; create ;(Ljava/nio/file/Path;Z)Lcom/groupbyinc/flux/common/PidFile; 'com/groupbyinc/flux/monitor/jvm/JvmInfo jvmInfo +()Lcom/groupbyinc/flux/monitor/jvm/JvmInfo; ! "
# ()J %
& <(Ljava/nio/file/Path;ZJ)Lcom/groupbyinc/flux/common/PidFile; (
) java/lang/Throwable + java/nio/file/Path - getParent ()Ljava/nio/file/Path; / 0 . 1 java/nio/file/LinkOption 3 java/nio/file/Files 5 exists 2(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z 7 8
6 9 isDirectory ; 8
6 < "java/lang/IllegalArgumentException > java/lang/StringBuilder @
A append -(Ljava/lang/Object;)Ljava/lang/StringBuilder; C D
A E exists but is not a directory G -(Ljava/lang/String;)Ljava/lang/StringBuilder; C I
A J toString ()Ljava/lang/String; L M
A N (Ljava/lang/String;)V P
? Q %java/nio/file/attribute/FileAttribute S createDirectories R(Ljava/nio/file/Path;[Ljava/nio/file/attribute/FileAttribute;)Ljava/nio/file/Path; U V
6 W
isRegularFile Y 8
6 Z ! exists but is not a regular file \ java/nio/file/OpenOption ^ java/nio/file/StandardOpenOption ` CREATE "Ljava/nio/file/StandardOpenOption; b c a d TRUNCATE_EXISTING f c a g newOutputStream G(Ljava/nio/file/Path;[Ljava/nio/file/OpenOption;)Ljava/io/OutputStream; i j
6 k java/lang/Long m (J)Ljava/lang/String; L o
n p !java/nio/charset/StandardCharsets r UTF_8 Ljava/nio/charset/Charset; t u s v java/lang/String x getBytes (Ljava/nio/charset/Charset;)[B z {
y | java/io/OutputStream ~ write ([B)V ? ?
? close ?
?
addSuppressed (Ljava/lang/Throwable;)V ? ?
, ? addShutdownHook (Ljava/nio/file/Path;)V ? ?
?
? stream Ljava/io/OutputStream; parent getPid getPath isDeleteOnExit ()Z java/lang/Runtime ?
getRuntime ()Ljava/lang/Runtime; ? ?
? ? ?
? (Ljava/lang/Thread;)V ? ?
? ? Code LocalVariableTable LineNumberTable
Exceptions
StackMapTable
SourceFile InnerClasses 1
? l *? *+? *? *!? ? ? *
? ) * + , - ? ? @ *? $? '? *? ?
? 7 ? ( ? /
*? 2 :? M? 4? :? +? 4? =? ? ?Y? AY? B? FH? K? O? R?? 4? :?
? T? XW*? 4? :? )*? 4? [? ? ?Y? AY? B*? F]? K? O? R?*? _Y? eSY? hS? l:: ? q? w? }? ?? U? ? ?? H:? ?? <? ?? 4::?:? !? ? ?? : ? ?? ? ??? *? ?? Y* ? ?? ? ? ? , ? ? ? , ? ? ? ? ? ? , ? ? ? ? 4 ? i ? ?
? ? B ; <