Package adams.flow.transformer
Class FileTailer.Listener
- java.lang.Object
-
- org.apache.commons.io.input.TailerListenerAdapter
-
- adams.flow.transformer.FileTailer.Listener
-
- All Implemented Interfaces:
org.apache.commons.io.input.TailerListener
- Enclosing class:
- FileTailer
public static class FileTailer.Listener extends org.apache.commons.io.input.TailerListenerAdapter
-
-
Field Summary
Fields Modifier and Type Field Description protected String
m_File
the monitored file.protected FileTailer
m_Owner
the owner.
-
Constructor Summary
Constructors Constructor Description Listener(FileTailer owner, String file)
Initializes the owner.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
handle(Exception ex)
Handles an Exception .void
handle(String line)
Handles a line from a Tailer.
-
-
-
Field Detail
-
m_Owner
protected FileTailer m_Owner
the owner.
-
m_File
protected String m_File
the monitored file.
-
-
Constructor Detail
-
Listener
public Listener(FileTailer owner, String file)
Initializes the owner.- Parameters:
owner
- the owning actor
-
-
Method Detail
-
handle
public void handle(String line)
Handles a line from a Tailer.- Specified by:
handle
in interfaceorg.apache.commons.io.input.TailerListener
- Overrides:
handle
in classorg.apache.commons.io.input.TailerListenerAdapter
- Parameters:
line
- the line.
-
handle
public void handle(Exception ex)
Handles an Exception .- Specified by:
handle
in interfaceorg.apache.commons.io.input.TailerListener
- Overrides:
handle
in classorg.apache.commons.io.input.TailerListenerAdapter
- Parameters:
ex
- the exception.
-
-