| Modifier and Type | Field and Description |
|---|---|
| private ExecutorService | |
| private long | |
| private final List | |
| pack-priv LogbackLock | |
| private LifeCycleManager | |
| private String | |
| pack-priv Map | |
| pack-priv Map | |
| private ScheduledExecutorService | |
| protected List | |
| private SequenceNumberGenerator | |
| private StatusManager | |
| private boolean | |
| private ThreadPoolExecutor |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addConfigurationEventListener(ConfigurationEventListener listener)
Implements ch. ConfigurationEventListener to this context.
|
| public void | addScheduledFuture(ScheduledFuture<?> scheduledFuture)
Implements ch. |
| public void | addSubstitutionProperty(String key, String value)
Implements ch. |
| public void | fireConfigurationEvent(ConfigurationEvent configurationEvent)
Implements ch. ConfigurationEvent by invoking registered listeners.
|
| public synchronized ExecutorService | getAlternateExecutorService()
Overrides default ch. ExecutorService used for one task per thread execution.
|
| public long | getBirthTime()
Implements ch. |
| public Object | getConfigurationLock()
Implements ch. |
| public Map | getCopyOfPropertyMap()
Implements ch. |
| public List | |
| public synchronized ExecutorService | getExecutorService()
Implements ch. |
| pack-priv synchronized LifeCycleManager | |
| public String | |
| public Object | getObject(String key)
Implements ch. |
| public String | getProperty(String key)
Implements ch. |
| public synchronized ScheduledExecutorService | getScheduledExecutorService()
Implements ch. |
| public List | |
| public SequenceNumberGenerator | |
| public StatusManager | getStatusManager()
Implements ch. |
| protected void | |
| public boolean | |
| private String | |
| private void | |
| public void | putObject(String key, Object value)
Implements ch. |
| public void | putProperty(String key, String val)
Implements ch. |
| public void | register(LifeCycle
the subject component component)Implements ch. |
| public void | |
| private void | |
| public void | |
| public void | setName(String name)
Implements ch. |
| public void | setSequenceNumberGenerator(SequenceNumberGenerator sequenceNumberGenerator)
Implements ch. |
| public void | setStatusManager(StatusManager
the new status manager statusManager)Set the |
| public void | |
| public void | |
| private synchronized void | |
| public String |
| alternateExecutorService | back to summary |
|---|---|
| private ExecutorService alternateExecutorService | |
| birthTime | back to summary |
|---|---|
| private long birthTime | |
| configurationEventListenerList | back to summary |
|---|---|
| private final List<ConfigurationEventListener> configurationEventListenerList | |
| configurationLock | back to summary |
|---|---|
| pack-priv LogbackLock configurationLock | |
| lifeCycleManager | back to summary |
|---|---|
| private LifeCycleManager lifeCycleManager | |
| name | back to summary |
|---|---|
| private String name | |
| objectMap | back to summary |
|---|---|
| pack-priv Map<String, Object> objectMap | |
| propertyMap | back to summary |
|---|---|
| pack-priv Map<String, String> propertyMap | |
| scheduledExecutorService | back to summary |
|---|---|
| private ScheduledExecutorService scheduledExecutorService | |
| scheduledFutures | back to summary |
|---|---|
| protected List<ScheduledFuture<?>> scheduledFutures | |
| sequenceNumberGenerator | back to summary |
|---|---|
| private SequenceNumberGenerator sequenceNumberGenerator | |
| sm | back to summary |
|---|---|
| private StatusManager sm | |
| started | back to summary |
|---|---|
| private boolean started | |
| threadPoolExecutor | back to summary |
|---|---|
| private ThreadPoolExecutor threadPoolExecutor | |
| ContextBase | back to summary |
|---|---|
| public ContextBase() | |
| addConfigurationEventListener | back to summary |
|---|---|
| public void addConfigurationEventListener(ConfigurationEventListener listener) Implements ch. Doc from ch. Add a Configuration events are supposed to be rare and listeners to such events rarer still. The propagation of
| |
| addScheduledFuture | back to summary |
|---|---|
| public void addScheduledFuture(ScheduledFuture<?> scheduledFuture) Implements ch. Doc from ch. Add scheduledFuture parameter to the list of known futures.
| |
| addSubstitutionProperty | back to summary |
|---|---|
| public void addSubstitutionProperty(String key, String value) Implements ch.
| |
| fireConfigurationEvent | back to summary |
|---|---|
| public void fireConfigurationEvent(ConfigurationEvent configurationEvent) Implements ch. Doc from ch. Fire Note that it is the role of configurators to invoke this method as a context does not necessarily know when it is being configured.
| |
| getAlternateExecutorService | back to summary |
|---|---|
| public synchronized ExecutorService getAlternateExecutorService() Overrides default ch. Doc from ch. Return an alternate
| |
| getBirthTime | back to summary |
|---|---|
| public long getBirthTime() Implements ch. Doc from ch. The time at which this context was created, expressed in millisecond elapsed since the epoch (1.1.1970).
| |
| getConfigurationLock | back to summary |
|---|---|
| public Object getConfigurationLock() Implements ch. Doc from ch. Object used for synchronization purposes. INTENDED FOR INTERNAL USAGE. | |
| getCopyOfPropertyMap | back to summary |
|---|---|
| public Map Implements ch. Doc from ch. Get a copy of the property map | |
| getCopyOfScheduledFutures | back to summary |
|---|---|
| public List | |
| getExecutorService | back to summary |
|---|---|
| public synchronized ExecutorService getExecutorService() Implements ch. Doc from ch. Every context has an ExecutorService which be invoked to execute certain tasks in a separate thread.
| |
| getLifeCycleManager | back to summary |
|---|---|
| pack-priv synchronized LifeCycleManager getLifeCycleManager() Gets the life cycle manager for this context.
The default implementation lazily initializes an instance of
This is exposed primarily to support instrumentation for unit testing.
| |
| getName | back to summary |
|---|---|
| public String getName() Implements ch. Doc from ch. Contexts are named objects.
| |
| getObject | back to summary |
|---|---|
| public Object getObject(String key) Implements ch. Doc from ch. A Context can act as a store for various objects used by LOGBack components.
| |
| getProperty | back to summary |
|---|---|
| public String getProperty(String key) Implements ch. Given a key, return the corresponding property value. If invoked with the special key "CONTEXT_NAME", the name of the context is returned. | |
| getScheduledExecutorService | back to summary |
|---|---|
| public synchronized ScheduledExecutorService getScheduledExecutorService() Implements ch. Doc from ch. Returns the ScheduledExecutorService for this context.
| |
| getScheduledFutures | back to summary |
|---|---|
| public List Deprecated replaced by getCopyOfScheduledFutures
| |
| getSequenceNumberGenerator | back to summary |
|---|---|
| public SequenceNumberGenerator getSequenceNumberGenerator() Implements ch. | |
| getStatusManager | back to summary |
|---|---|
| public StatusManager getStatusManager() Implements ch. Doc from ch. Return the StatusManager instance in use.
| |
| initCollisionMaps | back to summary |
|---|---|
| protected void initCollisionMaps() | |
| isStarted | back to summary |
|---|---|
| public boolean isStarted() Implements ch. | |
| lazyGetHostname | back to summary |
|---|---|
| private String lazyGetHostname() | |
| putHostnameProperty | back to summary |
|---|---|
| private void putHostnameProperty(String hostname) | |
| putObject | back to summary |
|---|---|
| public void putObject(String key, Object value) Implements ch. Doc from ch. Store an object under 'key'. If no object can be found, null is returned. | |
| putProperty | back to summary |
|---|---|
| public void putProperty(String key, String val) Implements ch. Doc from ch. Set a property of this context. | |
| register | back to summary |
|---|---|
| public void register(LifeCycle component) Implements ch. Doc from ch. Register a component that participates in the context's life cycle. All components registered via this method will be stopped and removed from the context when the context is reset.
| |
| removeObject | back to summary |
|---|---|
| public void removeObject(String key) | |
| removeShutdownHook | back to summary |
|---|---|
| private void removeShutdownHook() | |
| reset | back to summary |
|---|---|
| public void reset() Clear the internal objectMap and all properties. Removes any registered shutdown hook. | |
| setName | back to summary |
|---|---|
| public void setName(String name) throws IllegalStateException Implements ch. The context name can be set only if it is not already set, or if the current name is the default context name, namely "default", or if the current name and the old name are the same.
| |
| setSequenceNumberGenerator | back to summary |
|---|---|
| public void setSequenceNumberGenerator(SequenceNumberGenerator sequenceNumberGenerator) Implements ch. | |
| setStatusManager | back to summary |
|---|---|
| public void setStatusManager(StatusManager statusManager) Set the A malicious attacker can set the status manager to a dummy instance, disabling internal error reporting.
| |
| start | back to summary |
|---|---|
| public void start() Implements ch.
| |
| stop | back to summary |
|---|---|
| public void stop() Implements ch. | |
| stopExecutorServices | back to summary |
|---|---|
| private synchronized void stopExecutorServices() | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |