| Modifier and Type | Class and Description |
|---|---|
| pack-priv class | |
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private Abbreviator | |
| private final NamedConverter. | |
| private static final double | CACHE_MISSRATE_TRIGGER
When the cache miss rate is above 30%, the cache is deemed inefficient. |
| private volatile boolean | |
| private volatile int | |
| private static final String | |
| private static final int | |
| private static final double | |
| private static final int | MAX_ALLOWED_REMOVAL_THRESHOLD
We don't let the cache map size to go over MAX_ALLOWED_REMOVAL_THRESHOLD elements |
| private static final int | MIN_SAMPLE_SIZE
We should have a sample size of minimal length before computing the cache miss rate. |
| private static final double | |
| private volatile int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | convert(ILoggingEvent event)
Implements abstract ch. |
| private void | |
| public int | |
| public double | |
| protected abstract String | Returns: name, must not be null.The LoggingEvent to process, cannot not be null. event)Gets fully qualified name from event. |
| public void | start()
Overrides ch. Implements ch. |
| private synchronized String |
| abbreviator | back to summary |
|---|---|
| private Abbreviator abbreviator | |
| cache | back to summary |
|---|---|
| private final NamedConverter. | |
| CACHE_MISSRATE_TRIGGER | back to summary |
|---|---|
| private static final double CACHE_MISSRATE_TRIGGER When the cache miss rate is above 30%, the cache is deemed inefficient. | |
| cacheEnabled | back to summary |
|---|---|
| private volatile boolean cacheEnabled | |
| cacheMisses | back to summary |
|---|---|
| private volatile int cacheMisses | |
| DISABLE_CACHE_SYSTEM_PROPERTY | back to summary |
|---|---|
| private static final String DISABLE_CACHE_SYSTEM_PROPERTY | |
| INITIAL_CACHE_SIZE | back to summary |
|---|---|
| private static final int INITIAL_CACHE_SIZE | |
| LOAD_FACTOR | back to summary |
|---|---|
| private static final double LOAD_FACTOR | |
| MAX_ALLOWED_REMOVAL_THRESHOLD | back to summary |
|---|---|
| private static final int MAX_ALLOWED_REMOVAL_THRESHOLD We don't let the cache map size to go over MAX_ALLOWED_REMOVAL_THRESHOLD elements | |
| MIN_SAMPLE_SIZE | back to summary |
|---|---|
| private static final int MIN_SAMPLE_SIZE We should have a sample size of minimal length before computing the cache miss rate. | |
| NEGATIVE | back to summary |
|---|---|
| private static final double NEGATIVE | |
| totalCalls | back to summary |
|---|---|
| private volatile int totalCalls | |
| NamedConverter | back to summary |
|---|---|
| public NamedConverter() | |
| convert | back to summary |
|---|---|
| public String convert(ILoggingEvent event) Implements abstract ch. Doc from ch. The convert method is responsible for extracting data from the event and storing it for later use by the write method. | |
| disableCache | back to summary |
|---|---|
| private void disableCache() | |
| getCacheMisses | back to summary |
|---|---|
| public int getCacheMisses() | |
| getCacheMissRate | back to summary |
|---|---|
| public double getCacheMissRate() | |
| getFullyQualifiedName | back to summary |
|---|---|
| protected abstract String getFullyQualifiedName(final ILoggingEvent event) Gets fully qualified name from event.
| |
| start | back to summary |
|---|---|
| public void start() Overrides ch. Implements ch. Doc from ch. Components that depend on options passed during configuration can override this method in order to make appropriate use of those options. For simpler components, the trivial implementation found in this abstract class will be sufficient. | |
| viaCache | back to summary |
|---|---|
| private synchronized String viaCache(String fqn) This method is synchronized. It is the only place where the cache, a subclass of LinkedHashMap, is modified. The cache can be cleared via a call to disableCache(). However, the call to disableCache() is made indirectly from within viaCache(String). | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv int | |
| pack-priv int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv double | |
| pack-priv void |
| cacheMissesMilestone | back to summary |
|---|---|
| pack-priv int cacheMissesMilestone | |
| totalsMilestone | back to summary |
|---|---|
| pack-priv int totalsMilestone | |
| CacheMissCalculator | back to summary |
|---|---|
| pack-priv CacheMissCalculator() | |
| getCacheMissRate | back to summary |
|---|---|
| pack-priv double getCacheMissRate() | |
| updateMilestones | back to summary |
|---|---|
| pack-priv void updateMilestones() | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv NamedConverter. | |
| pack-priv int | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| protected boolean | removeEldestEntry(Map.
The least recently inserted entry in the map, or if
this is an access-ordered map, the least recently accessed
entry. This is the entry that will be removed if this
method returns entrytrue. If the map was empty prior
to the put or putAll invocation resulting
in this invocation, this will be the entry that was just
inserted; in other words, if the map contains a single
entry, the eldest entry is also the newest.Overrides java. |
| private boolean |
| cacheMissCalculator | back to summary |
|---|---|
| pack-priv NamedConverter. | |
| removalThreshold | back to summary |
|---|---|
| pack-priv int removalThreshold | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| NameCache | back to summary |
|---|---|
| pack-priv NameCache(int initialCapacity) | |
| removeEldestEntry | back to summary |
|---|---|
| protected boolean removeEldestEntry(Map. Overrides java. In the JDK tested, this method is called for every map insertion.
| |
| shouldDoubleRemovalThreshold | back to summary |
|---|---|
| private boolean shouldDoubleRemovalThreshold() | |