public class LoggingBuffer extends Object
Constructor and Description |
---|
LoggingBuffer(int bufferSize) |
Modifier and Type | Method and Description |
---|---|
void |
addLogggingEvent(KettleLoggingEvent loggingEvent) |
void |
addLoggingEventListener(KettleLoggingEventListener listener) |
void |
clear() |
void |
close() |
void |
doAppend(KettleLoggingEvent event) |
String |
dump() |
StringBuffer |
getBuffer() |
StringBuffer |
getBuffer(String parentLogChannelId,
boolean includeGeneral) |
StringBuffer |
getBuffer(String parentLogChannelId,
boolean includeGeneral,
int startLineNr) |
StringBuffer |
getBuffer(String parentLogChannelId,
boolean includeGeneral,
int startLineNr,
int endLineNr) |
Iterator<BufferLine> |
getBufferIterator() |
List<BufferLine> |
getBufferLinesBefore(long minTimeBoundary) |
int |
getLastBufferLineNr() |
KettleLogLayout |
getLayout() |
List<KettleLoggingEvent> |
getLogBufferFromTo(List<String> channelId,
boolean includeGeneral,
int from,
int to) |
List<KettleLoggingEvent> |
getLogBufferFromTo(String parentLogChannelId,
boolean includeGeneral,
int from,
int to) |
int |
getMaxNrLines() |
String |
getName() |
int |
getNrLines() |
void |
removeBufferLines(List<BufferLine> linesToRemove) |
void |
removeChannelFromBuffer(String id)
Removes all rows for the channel with the specified id
|
void |
removeGeneralMessages() |
void |
removeLoggingEventListener(KettleLoggingEventListener listener) |
boolean |
requiresLayout() |
void |
setLayout(KettleLogLayout layout) |
void |
setMaxNrLines(int maxNrLines) |
void |
setName(String name) |
int |
size() |
public int getLastBufferLineNr()
public List<KettleLoggingEvent> getLogBufferFromTo(List<String> channelId, boolean includeGeneral, int from, int to)
channelId
- channel IDs to grabincludeGeneral
- include general log linesfrom
- to
- public List<KettleLoggingEvent> getLogBufferFromTo(String parentLogChannelId, boolean includeGeneral, int from, int to)
parentLogChannelId
- the parent log channel ID to grabincludeGeneral
- include general log linesfrom
- to
- public StringBuffer getBuffer(String parentLogChannelId, boolean includeGeneral, int startLineNr, int endLineNr)
public StringBuffer getBuffer(String parentLogChannelId, boolean includeGeneral)
public StringBuffer getBuffer(String parentLogChannelId, boolean includeGeneral, int startLineNr)
public StringBuffer getBuffer()
public void close()
public void doAppend(KettleLoggingEvent event)
public void setName(String name)
public String getName()
public void setLayout(KettleLogLayout layout)
public KettleLogLayout getLayout()
public boolean requiresLayout()
public void clear()
public int getMaxNrLines()
public void setMaxNrLines(int maxNrLines)
maxNrLines
- the maximum number of lines that this buffer should contain, 0 or lower means: no limitpublic int getNrLines()
public void removeChannelFromBuffer(String id)
id
- the id of the logging channel to removepublic int size()
public void removeGeneralMessages()
public Iterator<BufferLine> getBufferIterator()
public String dump()
public void removeBufferLines(List<BufferLine> linesToRemove)
public List<BufferLine> getBufferLinesBefore(long minTimeBoundary)
public void addLogggingEvent(KettleLoggingEvent loggingEvent)
public void addLoggingEventListener(KettleLoggingEventListener listener)
public void removeLoggingEventListener(KettleLoggingEventListener listener)