Package ai.platon.pulsar.common
Miscellaneous utility classes.
See: Description
-
Class Summary Class Description Histogram Histogram class. FSUtils Utility methods for common filesystem operations. PulsarParams Created by vincent on 16-9-24. DomUtil DomUtil class. ScoreEntry Created by vincent on 17-4-20. LocalFSUtils Utility methods for common filesystem operations. DateTimeDetector Detect a date time in a text. ScoreVector Created by vincent on 17-4-20. NetUtil NetUtil class. NodeWalker A utility class that allows the walking of any DOM tree using a stack instead of recursion. ReflectionUtils Created by vincent on 17-3-2. TrieStringMatcher TrieStringMatcher is a base class for simple tree-based string matching. PrefixStringMatcher A class for efficiently matching Strings against a set of prefixes.Strings RegexExtractor Created by vincent on 17-8-3. IntegerRanges A class that represents a set of positive integer ranges. SParser A common string parser SuffixStringMatcher A class for efficiently matching Strings against a set of suffixes.NamedColor Cookie JvmTimedValue NoSuchCriticalObjectException NotSupportedException IllegalApplicationStateException Frequency Maintains a frequency distribution. FrequencyManager A set of term counters JarTool CheckState Both 0 and 200 are good states DescriptiveResult A result with a message StartStopRunner PrioriClosable MessageWriter A simple log system MultiSinkWriter Created by vincent on 16-10-12. ObjectCache Object cache, used to cache objects that are expensive to create. OpenMapAnyTableFormatter Metadata Column Cell Row OpenMapTable A simple excel like table, every column, every row and every cell can hold metadata and variables TableAttribute ColumnAttribute RowAttribute CellAttribute PreemptChannelSupport The preemptive channel concurrency pattern, there are two channels: preemptive channel and normal channelTODO: compare with ReadWriteLock both channel allows multiple threads
new workers have to wait until there is no ready preemptive tasks nor running preemptive tasks
a preemptive task locks the working channel immediately, but have to wait to run util all workers are finished
|------ waiting ------------|- ready -|-------------- critical -------------------|---finished----
The entrance gate The exit gate
ResourceWalker UrlExtractor Wildchar ColorsKt HtmlsKt DateTimesKt ExceptionsKt LangKt LogsKt PingKt StringsKt -
Interface Summary Interface Description HttpHeaders A collection of HTTP header names. DublinCore A collection of Dublin Core metadata names. Reportable Reportable interface. StartStopRunnable PulsarJobBase Hadoop's MapReduce support ClassFactory The utility methods will try to use the provided class factories to convert binary name of class to Class object. -
Enum Summary Enum Description TraditionalBinaryPrefix The traditional binary prefixes, kilo, mega, ..., exa, which can be represented by a 64-bit integer. State HtmlIntegrity FlowState Priority5 Smaller value indicates higher priority, keep consistent with PriorityQueueNotice: can not use Int.MIN_VALUE as the highest priority value nor Int. Priority13 Smaller value indicates higher priority, keep consistent with PriorityQueueNotice: can not use Int.MIN_VALUE as the highest priority value nor Int. Priority21 Smaller value indicates higher priority, keep consistent with PriorityQueueNotice: can not use Int.MIN_VALUE as the highest priority value nor Int. -
Object Summary Object Description AppContext AppFiles AppPaths Created by vincent on 18-3-23. ColorFamily Named colors, see https://stackoverflow.com/questions/4126029/convert-rgb-values-to-color-name Popular color family, see http://www.ip138.com/yanse/common. DateTimes FileCommand Companion HtmlUtils Companion ObjectConverter LinkExtractors Companion Companion Companion Ping ClassReflect MethodReflect ResourceLoader The ResourceLoader class is a utility class to load resources from the classpath. ResourceStatus Keep consistent with standard http status Companion Runtimes Runtime utility ProcessLauncher The process launcher Sockets Simple utility methods for working with network sockets for example, for finding available ports on localhost.Systems Companion -
Annotation Summary Annotation Description RequiredFile RequiredDirectory ExperimentalApi This annotation marks the API that is considered experimental.