| Modifier and Type | Field and Description |
|---|---|
| private final LogEvent[] | |
| private int | |
| private boolean | |
| private LogTarget | |
| private Priority | |
| private int |
| Access | Constructor and Description |
|---|---|
| public | MemoryTarget(final LogTarget
the target to push LogEvents to target, final int the event buffer size size, final Priority the priority at which to push LogEvents to next LogTarget threshold)Creation of a new instance of the memory target. |
| Modifier and Type | Method and Description |
|---|---|
| protected synchronized void | doProcessEvent(final LogEvent
the log event event)Implements abstract org. |
| public final synchronized boolean | |
| public synchronized void | |
| protected synchronized void | setOverwrite(final boolean
true if buffer should overwrite logevents in buffer, false otherwise overwrite)Set flag indicating whether it is valid to overwrite memory buffer. |
| protected synchronized boolean | Returns: true if should push, false otherwisethe incoming LogEvent event)Determine if LogEvent should initiate a push to target. |
| m_buffer | back to summary |
|---|---|
| private final LogEvent[] m_buffer | |
| m_index | back to summary |
|---|---|
| private int m_index | |
| m_overwrite | back to summary |
|---|---|
| private boolean m_overwrite | |
| m_target | back to summary |
|---|---|
| private LogTarget m_target | |
| m_threshold | back to summary |
|---|---|
| private Priority m_threshold | |
| m_used | back to summary |
|---|---|
| private int m_used | |
| MemoryTarget | back to summary |
|---|---|
| public MemoryTarget(final LogTarget target, final int size, final Priority threshold) Creation of a new instance of the memory target. | |
| doProcessEvent | back to summary |
|---|---|
| protected synchronized void doProcessEvent(final LogEvent event) Implements abstract org. Process a log event, via formatting and outputting it.
| |
| isFull | back to summary |
|---|---|
| public final synchronized boolean isFull() Check if memory buffer is full.
| |
| push | back to summary |
|---|---|
| public synchronized void push() Push log events to target. | |
| setOverwrite | back to summary |
|---|---|
| protected synchronized void setOverwrite(final boolean overwrite) Set flag indicating whether it is valid to overwrite memory buffer.
| |
| shouldPush | back to summary |
|---|---|
| protected synchronized boolean shouldPush(final LogEvent event) Determine if LogEvent should initiate a push to target. Subclasses can overide this method to change the conditions under which a push occurs.
| |