public class LoggingBuffer extends Object
Constructor and Description |
---|
LoggingBuffer(int bufferSize) |
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()
@Deprecated public Iterator<BufferLine> getBufferIterator()
@Deprecated public String dump()
@Deprecated public void removeBufferLines(List<BufferLine> linesToRemove)
removeBufferLinesBefore(long)
.getBufferLinesBefore(long)
.@Deprecated public List<BufferLine> getBufferLinesBefore(long minTimeBoundary)
removeBufferLinesBefore(long)
.removeBufferLines(List)
.public void removeBufferLinesBefore(long minTimeBoundary)
public void addLogggingEvent(KettleLoggingEvent loggingEvent)
public void addLoggingEventListener(KettleLoggingEventListener listener)
public void removeLoggingEventListener(KettleLoggingEventListener listener)
Copyright © 2019 Hitachi Vantara. All rights reserved.