public class FileTailerListener
extends org.apache.commons.io.input.TailerListenerAdapter
| Constructor and Description |
|---|
FileTailerListener(String fileName) |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(String id,
org.wso2.carbon.event.input.adapter.core.InputEventAdapterListener inputListener) |
void |
fileNotFound() |
int |
getTenantId() |
void |
handle(Exception ex) |
void |
handle(String line) |
boolean |
hasNoSubscriber() |
boolean |
hasOneSubscriber() |
void |
init(org.apache.commons.io.input.Tailer tailer) |
void |
removeListener(String id) |
void |
setTenantId(int tenantId) |
public FileTailerListener(String fileName)
public void init(org.apache.commons.io.input.Tailer tailer)
init in interface org.apache.commons.io.input.TailerListenerinit in class org.apache.commons.io.input.TailerListenerAdapterpublic void handle(String line)
handle in interface org.apache.commons.io.input.TailerListenerhandle in class org.apache.commons.io.input.TailerListenerAdapterpublic void fileNotFound()
fileNotFound in interface org.apache.commons.io.input.TailerListenerfileNotFound in class org.apache.commons.io.input.TailerListenerAdapterpublic void handle(Exception ex)
handle in interface org.apache.commons.io.input.TailerListenerhandle in class org.apache.commons.io.input.TailerListenerAdapterpublic void addListener(String id, org.wso2.carbon.event.input.adapter.core.InputEventAdapterListener inputListener)
public void removeListener(String id)
public boolean hasOneSubscriber()
public boolean hasNoSubscriber()
public int getTenantId()
public void setTenantId(int tenantId)
Copyright © 2015 WSO2. All rights reserved.