Constructor and Description |
---|
ServerLogReader(String name,
InputStream inputStream)
Initialize the reader with reader name and stream to read.
|
Modifier and Type | Method and Description |
---|---|
void |
addLeecher(LogLeecher leecher)
Add a Leecher to this log reader.
|
void |
removeAllLeechers()
Removes all added log leechers from this instance.
|
void |
run()
This will get executed when log reading is started.
|
void |
start()
Start reading the stream.
|
void |
stop()
Stop reading the stream.
|
public ServerLogReader(String name, InputStream inputStream)
name
- The name of the readerinputStream
- The input stream to readpublic void start()
public void stop()
public void addLeecher(LogLeecher leecher)
leecher
- The Leecher instance that is going to listen to each log line for expected textpublic void removeAllLeechers()
Copyright © 2018 WSO2. All rights reserved.