public final class MdcUtil extends Object
Modifier and Type | Method and Description |
---|---|
static void |
setCollectorId(String collectorId)
Sets two representations of the supplied collector ID in the MDC:
|
static void |
setCrawlerId(String crawlerId)
Sets two representations of the supplied crawler ID in the MDC:
|
public static void setCrawlerId(String crawlerId)
Sets two representations of the supplied crawler ID in the MDC:
crawler.id
→ the crawler id, as supplied.
crawler.id.safe
→ the crawler id encoded
to be safe to use as a file name on any file system, as
per FileUtil
.
crawlerId
- crawler idpublic static void setCollectorId(String collectorId)
Sets two representations of the supplied collector ID in the MDC:
collector.id
→ the collector id, as supplied.
collector.id.safe
→ the collector id encoded to be
safe to use as a file name on any file system, as
per FileUtil
.
collectorId
- collector idCopyright © 2014–2023 Norconex Inc.. All rights reserved.