All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.groupbyinc.flux.gateway.MetaDataStateFormat.class Maven / Gradle / Ivy

There is a newer version: 198
Show newest version
????4?/com/groupbyinc/flux/gateway/MetaDataStateFormat(Ljava/lang/Object;java/lang/ObjectMetaDataStateFormat.java>com/groupbyinc/flux/gateway/MetaDataStateFormat$PathAndStateIdPathAndStateId1com/groupbyinc/flux/gateway/MetaDataStateFormat$1
$java/nio/file/DirectoryStream$Filterjava/nio/file/DirectoryStreamFilter%java/lang/invoke/MethodHandles$Lookupjava/lang/invoke/MethodHandlesLookupFORMAT2Lcom/groupbyinc/flux/common/xcontent/XContentType;STATE_DIR_NAMELjava/lang/String;_stateSTATE_FILE_EXTENSION.stSTATE_FILE_CODECstate !MIN_COMPATIBLE_STATE_FILE_VERSIONISTATE_FILE_VERSIONBUFFER_SIZEprefixstateFilePatternLjava/util/regex/Pattern;logger!Lorg/apache/logging/log4j/Logger;$assertionsDisabledZ(Ljava/lang/String;)V()V/1
2(	4java/lang/StringBuilder6
72java/util/regex/Pattern9quote&(Ljava/lang/String;)Ljava/lang/String;;<
:=append-(Ljava/lang/String;)Ljava/lang/StringBuilder;?@
7A(\d+)(C)?EtoString()Ljava/lang/String;GH
7Icompile-(Ljava/lang/String;)Ljava/util/regex/Pattern;KL
:M)*	Othis6Lcom/groupbyinc/flux/gateway/MetaDataStateFormat;1Lcom/groupbyinc/flux/gateway/MetaDataStateFormat;write*(Ljava/lang/Object;[Ljava/nio/file/Path;)Vjava/io/IOExceptionVjava/lang/ThrowableX"java/lang/IllegalArgumentExceptionZLocations must not be null\/0
[^One or more locations required`findMaxStateId*(Ljava/lang/String;[Ljava/nio/file/Path;)Jbc
d-.	fjava/lang/AssertionErrorh&maxStateId must be positive but was: [j(J)Ljava/lang/StringBuilder;?l
7m]o(Ljava/lang/Object;)V/q
irjava/nio/file/Pathtresolve((Ljava/lang/String;)Ljava/nio/file/Path;vwux%java/nio/file/attribute/FileAttributezjava/nio/file/Files|createDirectoriesR(Ljava/nio/file/Path;[Ljava/nio/file/attribute/FileAttribute;)Ljava/nio/file/Path;~
}?.tmp? MetaDataStateFormat.write(path="?-(Ljava/lang/Object;)Ljava/lang/StringBuilder;??
7?")?Fcom/groupbyinc/flux/common/apache/lucene/store/OutputStreamIndexOutput?java/nio/file/OpenOption?newOutputStreamG(Ljava/nio/file/Path;[Ljava/nio/file/OpenOption;)Ljava/io/OutputStream;??
}?>(Ljava/lang/String;Ljava/lang/String;Ljava/io/OutputStream;I)V/?
??9com/groupbyinc/flux/common/apache/lucene/codecs/CodecUtil?writeHeaderQ(Lcom/groupbyinc/flux/common/apache/lucene/store/DataOutput;Ljava/lang/String;I)V??
??	?0com/groupbyinc/flux/common/xcontent/XContentType?index()I??
??writeInt(I)V??
??p(Lcom/groupbyinc/flux/gateway/MetaDataStateFormat;Lcom/groupbyinc/flux/common/apache/lucene/store/IndexOutput;)V/?
?newXContentBuilder(Lcom/groupbyinc/flux/common/xcontent/XContentType;Ljava/io/OutputStream;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;??
?3com/groupbyinc/flux/common/xcontent/XContentBuilder?startObject7()Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;??
??
toXContentJ(Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;Ljava/lang/Object;)V??
?	endObject??
??$closeResource1(Ljava/lang/Throwable;Ljava/lang/AutoCloseable;)V??
?[Ljava/nio/file/Path;?java/lang/String?writeFooter?(Lcom/groupbyinc/flux/common/apache/lucene/store/IndexOutput;)V??
??,com/groupbyinc/flux/core/internal/io/IOUtils?fsync(Ljava/nio/file/Path;Z)V??
??java/nio/file/CopyOption? java/nio/file/StandardCopyOption?ATOMIC_MOVE"Ljava/nio/file/StandardCopyOption;??	??moveY(Ljava/nio/file/Path;Ljava/nio/file/Path;[Ljava/nio/file/CopyOption;)Ljava/nio/file/Path;??
}?+,	?written state to {}?org/apache/logging/log4j/Logger?trace'(Ljava/lang/String;Ljava/lang/Object;)V????copy??
}?copied state to {}?deleteIfExists(Ljava/nio/file/Path;)Z??
}?
cleaned up {}?cleanupOldFiles<(Ljava/lang/String;Ljava/lang/String;[Ljava/nio/file/Path;)V??
?builder5Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;outHLcom/groupbyinc/flux/common/apache/lucene/store/OutputStreamIndexOutput;tmpPathLjava/nio/file/Path;	finalPathiresourceDescTT;Ljava/lang/Object;	locations
maxStateIdJfileName
stateLocationtmpStatePathfinalStatePath3com/groupbyinc/flux/common/xcontent/XContentFactorycontentBuilder?
typestreamLjava/io/OutputStream;fromXContentH(Lcom/groupbyinc/flux/common/xcontent/XContentParser;)Ljava/lang/Object;readc(Lcom/groupbyinc/flux/common/xcontent/NamedXContentRegistry;Ljava/nio/file/Path;)Ljava/lang/Object;Dcom/groupbyinc/flux/common/apache/lucene/index/CorruptIndexExceptionIcom/groupbyinc/flux/common/apache/lucene/index/IndexFormatTooOldExceptionIcom/groupbyinc/flux/common/apache/lucene/index/IndexFormatTooNewException	getParent()Ljava/nio/file/Path;unewDirectoryP(Ljava/nio/file/Path;)Lcom/groupbyinc/flux/common/apache/lucene/store/Directory;
getFileNameu uI8com/groupbyinc/flux/common/apache/lucene/store/IOContext#DEFAULT:Lcom/groupbyinc/flux/common/apache/lucene/store/IOContext;%&	$'8com/groupbyinc/flux/common/apache/lucene/store/Directory)	openInput?(Ljava/lang/String;Lcom/groupbyinc/flux/common/apache/lucene/store/IOContext;)Lcom/groupbyinc/flux/common/apache/lucene/store/IndexInput;+,
*-checksumEntireFile>(Lcom/groupbyinc/flux/common/apache/lucene/store/IndexInput;)J/0
?1checkHeaderQ(Lcom/groupbyinc/flux/common/apache/lucene/store/DataInput;Ljava/lang/String;II)I34
?5values5()[Lcom/groupbyinc/flux/common/xcontent/XContentType;78
?99com/groupbyinc/flux/common/apache/lucene/store/IndexInput;readInt=?
<>java/lang/IllegalStateException@expected state in B to be D format but was F
A^9com/groupbyinc/flux/common/xcontent/NamedXContentRegistryIgetFilePointer()JKL
<MlengthOL
<PfooterLengthR?
?Sstate_xcontentUsliceQ(Ljava/lang/String;JJ)Lcom/groupbyinc/flux/common/apache/lucene/store/IndexInput;WX
<YxContentb(Lcom/groupbyinc/flux/common/xcontent/XContentType;)Lcom/groupbyinc/flux/common/xcontent/XContent;[\
]=com/groupbyinc/flux/common/xcontent/LoggingDeprecationHandler_INSTANCE?Lcom/groupbyinc/flux/common/xcontent/LoggingDeprecationHandler;ab	`c=com/groupbyinc/flux/common/lucene/store/InputStreamIndexInpute?(Lcom/groupbyinc/flux/common/apache/lucene/store/IndexInput;J)V/g
fh,com/groupbyinc/flux/common/xcontent/XContentjcreateParser?(Lcom/groupbyinc/flux/common/xcontent/NamedXContentRegistry;Lcom/groupbyinc/flux/common/xcontent/DeprecationHandler;Ljava/io/InputStream;)Lcom/groupbyinc/flux/common/xcontent/XContentParser;lmkn

p2com/groupbyinc/flux/common/xcontent/XContentParserr1com/groupbyinc/flux/gateway/CorruptStateExceptiont(Ljava/lang/Throwable;)V/v
uwparser4Lcom/groupbyinc/flux/common/xcontent/XContentParser;;Lcom/groupbyinc/flux/common/apache/lucene/store/IndexInput;xContentTypefilePointercontentSize
indexInputexLjava/io/IOException;dir:Lcom/groupbyinc/flux/common/apache/lucene/store/Directory;namedXContentRegistry;Lcom/groupbyinc/flux/common/xcontent/NamedXContentRegistry;file@com/groupbyinc/flux/common/apache/lucene/store/SimpleFSDirectory?(Ljava/nio/file/Path;)V/?
??"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;)Z?lambda$cleanupOldFiles$0;(Ljava/lang/String;Ljava/lang/String;Ljava/nio/file/Path;)Z??
???acceptL(Ljava/lang/String;Ljava/lang/String;)Ljava/nio/file/DirectoryStream$Filter;???cleanupOldFiles: cleaning up {}?newDirectoryStream[(Ljava/nio/file/Path;Ljava/nio/file/DirectoryStream$Filter;)Ljava/nio/file/DirectoryStream;??
}?iterator()Ljava/util/Iterator;???java/util/Iterator?hasNext()Z????next()Ljava/lang/Object;????cleanupOldFiles: cleaned up {}?	stateFile5Ljava/nio/file/DirectoryStream;Ljava/nio/file/DirectoryStream;dataLocationcurrentStateFilefilter;&Ljava/nio/file/DirectoryStream$Filter;????????java/nio/file/LinkOption?exists2(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z??
}?*?G(Ljava/nio/file/Path;Ljava/lang/String;)Ljava/nio/file/DirectoryStream;??
}?matcher3(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;??
:?java/util/regex/Matcher?matches??
??group(I)Ljava/lang/String;??
??java/lang/Long?	parseLong(Ljava/lang/String;)J??
??java/lang/Math?max(JJ)J??
??idLjava/util/regex/Matcher;maxIdloadLatestState?(Lorg/apache/logging/log4j/Logger;Lcom/groupbyinc/flux/common/xcontent/NamedXContentRegistry;[Ljava/nio/file/Path;)Ljava/lang/Object;!java/nio/file/NoSuchFileException?java/io/FileNotFoundException?java/lang/Exception?java/util/ArrayList?
?2java/util/List?5(Ljava/nio/file/Path;)Ljava/nio/file/DirectoryStream;??
}?K(Ljava/nio/file/Path;JLcom/groupbyinc/flux/gateway/MetaDataStateFormat$1;)V/?
?found state file: {}?add????()Ljava/util/stream/Stream;???lambda$loadLatestState$1D(JLcom/groupbyinc/flux/gateway/MetaDataStateFormat$PathAndStateId;)Z
C(Lcom/groupbyinc/flux/gateway/MetaDataStateFormat$PathAndStateId;)Ztest!(J)Ljava/util/function/Predicate;	
java/util/stream/Stream9(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;?
??()Ljava/util/ArrayList;get()Ljava/util/function/Supplier;java/util/stream/CollectorstoCollection;(Ljava/util/function/Supplier;)Ljava/util/stream/Collector;
collect0(Ljava/util/stream/Collector;)Ljava/lang/Object; 
!java/util/Collection#$???	&
(state id [{}] read from [{}]*?	,valueOf(J)Ljava/lang/Long;./
?09(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V?2?3failed to read 5
I*(Ljava/lang/String;Ljava/lang/Throwable;)V/8
W9,()Lorg/apache/logging/log4j/message/Message;;lambda$loadLatestState$2l(Lcom/groupbyinc/flux/gateway/MetaDataStateFormat$PathAndStateId;)Lorg/apache/logging/log4j/message/Message;=>
?@?(Lcom/groupbyinc/flux/gateway/MetaDataStateFormat;Lcom/groupbyinc/flux/gateway/MetaDataStateFormat$PathAndStateId;)Lorg/apache/logging/log4j/util/MessageSupplier;BCdebugG(Lorg/apache/logging/log4j/util/MessageSupplier;Ljava/lang/Throwable;)VEF?G$com/groupbyinc/flux/ExceptionsHelperImaybeThrowRuntimeAndSuppress(Ljava/util/List;)VKL
JMsizeO??P2Could not find a state file to recover from among RstateIdpav@Lcom/groupbyinc/flux/gateway/MetaDataStateFormat$PathAndStateId;pathsstateDireLjava/lang/Exception;pathAndStateId
dataLocationsfilesRLjava/util/List;Ljava/util/List;finalMaxStateIdpathAndStateIdsXLjava/util/Collection;Ljava/util/Collection;
exceptions'Ljava/util/List;deleteMetaState([Ljava/nio/file/Path;)Vrmhg
?istateDirectories5org/apache/logging/log4j/message/ParameterizedMessagel${}: failed to read [{}], ignoring...ntoAbsolutePathpuq/2
ms
isRegularFileu?
}v
startsWith(Ljava/lang/String;)Zxy
?zequals|?
?}entry
entryFileNamejava/lang/AutoCloseable?close?1??
addSuppressed?v
Y?x0Ljava/lang/Throwable;x1Ljava/lang/AutoCloseable;java/lang/Class?desiredAssertionStatus??
??SMILE?	??*com/groupbyinc/flux/common/logging/Loggers?	getLogger4(Ljava/lang/Class;)Lorg/apache/logging/log4j/Logger;??
??
ConstantValueCodeLocalVariableTableLocalVariableTypeTableLineNumberTable
StackMapTable
Exceptions	Signature(TT;[Ljava/nio/file/Path;)V;(Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;TT;)V9(Lcom/groupbyinc/flux/common/xcontent/XContentParser;)TT;T(Lcom/groupbyinc/flux/common/xcontent/NamedXContentRegistry;Ljava/nio/file/Path;)TT;v(Lorg/apache/logging/log4j/Logger;Lcom/groupbyinc/flux/common/xcontent/NamedXContentRegistry;[Ljava/nio/file/Path;)TT;BootstrapMethods
SourceFileInnerClasses!???!"#?$%#?$&#?'()*+,-./0??1*?3*+?5*?7Y?8+?>?BD?B?BF?B?J?N?P??1QS1(?1QR?QR	S0U?TU?,?,?
?[Y]?_?,??
?[Ya?_?**?5,?e
aB?g?)!	??#?iY?7Y?8k?B!?np?B?J?s??7Y?8*?5?B!?n?B?J:,2?y:?{??W?7Y?8?B??B?J?y:?y:?7Y?8??B????B?J:	??Y	??????:
:
!??
??????*???Y*
????::
??W*+????W?'
???::
?:?

???
??
???::?:
???????Y??S??W?Ͳ????6

,???,
2?y:?{??W?7Y?8?B??B?J?y:?y:?ϸ?W????Y??S??W?Ͳ??????W??????:??W???????
??U??W??????:??W??????**?5,??
"1Y":1<:?PZY?PcZec?--/-?J__a_?????????
?m???b?????#
???	?QS? ????)Y?q}?????????QR? ???9bcefh)iUjqk}l?m?n?p?q?r?q?s?t?u|~?"?1u:?K?P?Zqc?o?u?????????????????????????*?-?5?A?D?J?P?\?_?g?s?v??????7??
??uuu??Y?YYHY?
Y???uuu??YNYHY??,????uuu?uuY??TY?W?????V+,?	?? QS
?QR???W???W??
?W????l*,??N:-,?!?"?(?.::?2X!?6W?:??2:???6?AY?7Y?8C?B,??E?B????G?B???J?H??N7?Q?T?ee7
V
?Z::
???^+?d?fY
?i?o::*?q:?
???

???
??-?	-???::?:?
???::
?:?

???::?:?
???:?uY?x?::?:-?	-??????Y?????Y?Y???%?.Y?..Y%?7?97?H?H?H?HH?HH?HH?TY?TTY?]?_]?p?Vyz??W{@?|??}??~
"&{J
??a??lQSl??l???lQR?r??%?+?5?@?H?{????????????????????????????.?7?J?T?]????{Ju*Y<Y??YJu*Y<Y?<YsY	?Ju*Y<Y?<YsYYHY?
Y?Ju*Y<Y?<YYHY?
Ju*Y<Y?<YY?Ju*Y<YYHY?
Ju*Y<YY?Ju*YWKYHY?Ju*YY?W???O	??Y+????	QS	???	QR???W????+,??:-:?66??2:??????y??:	:
	??:???%???u:??W????????	?'
	???::
?:
	?

	??
????q?Bw?YBw?????Ra???a?	"~???QS?(?????	???? ?a?	?QR	????6
?	?"?/?B?a?g?t?w??????????u????
??6???
?uY??+NYHY?
Y????
???W?bc?\??B,:?66??2:?y:		???ę?	?7Y?8+?BƶB?J??:
:
??:???A???u:
*?P
?!?"??:?ҙ?ָ?7!??B???
?'
???::?:
?

??????@!?R??YR??????f
?????q/??
O}?
(?v?	????QS?(??????O}?
?QR?B???(?4?R?q?????????????????????	?????K???uuY??D?NYHY?
???uuYY??????W?????ѻ?Y??:?7-??-:?66		??	2:

?y:??::
??:???f???u:*?P?!?"??:?ҙ:?ָ?7??7?Y??:+?????W????'
???::
?:?

????:?	??67??????"?$:	??Y??:
	?%:???w???:*,?'?):
++?-?1?'?!?4
?:

?WY?7Y?86?B?7?B?J
?:??W+*?D
?H???
?N?Q? ?AY?7Y?8S?B???J?H??@??Y@?????6???6???;de????,T?UVt???_T??=?W?6?X?+???
G ?
g9YZ
;e[V?QS?+,????\?	?]_????`?ac	?d_
?>=?W?G ?
?QR	?]^?ab	?de
??'	+6@_
t|??????????????? !#$;&G'b(e)g*?+?.?0?1?3?5??	?J????+?J???uuY??i?NYHY?
?J???uuYY??J???uuBW???:
?J??$?????J??$????=+?W???fg??&*??uL=*??+*2?yS????+?j?? ?#&\? k??OPQP!S%T?????W=>?f?mYo+?'?r*?5?t??QS[V?QR?+,+
?N,?-?????`[V? ?
@
????-,?!?"N,???w?-*?{?+-?~????*-(-?-?!?????!?,??
?+?@?W
???g*?+???M*,???	+???

Y????????MY?1?J?????g???????۱?@AL?@?*????????<A<???"	

	




© 2015 - 2024 Weber Informatics LLC | Privacy Policy