public final class Announcer extends Object
Announcements can be turned off by setting the system property and provide other information elements. "chronicle.announcer.disable=true" prior to making any announcements.
| Modifier and Type | Method and Description |
|---|---|
static void |
announce(@NotNull String groupId,
@NotNull String artifactId)
Announces the given artifact whereby useful information is printed pertaining
to the artifact in particular and the JVM i general.
|
static void |
announce(@NotNull String groupId,
@NotNull String artifactId,
@NotNull Map<String,String> properties)
Announces the given artifact whereby useful information is printed pertaining
to the artifact in particular and the JVM in general accompanied by the provided
properties. |
public static final String LOGO
public static void announce(@NotNull
@NotNull String groupId,
@NotNull
@NotNull String artifactId)
A distinct artifact is only announced once per classloader and general JVM information is only printed once per classloader.
Example: net.openhtf:chronicle-queue, net.openhft:chronicle-map and net.openhtf:chronicle-queue (again) is announced. This will produce:
groupId - name of the group (e.g. net.openhft)artifactId - name of the library (e.g. chronicle-queue)public static void announce(@NotNull
@NotNull String groupId,
@NotNull
@NotNull String artifactId,
@NotNull
@NotNull Map<String,String> properties)
properties.
The artifact will be announced on each invocation provided that the
given properties is (A) not empty or (B) only contains a key "logo", for which
only one announcement per class loader is made.
groupId - name of the group (e.g. net.openhft)artifactId - name of the library (e.g. chronicle-queue)properties - to printLOGOCopyright © 2024. All rights reserved.