public class LogTailerTask extends Object implements IConversationStateListener
| Constructor and Description |
|---|
LogTailerTask(String logpath) |
| Modifier and Type | Method and Description |
|---|---|
void |
conversationAttached(ConversationContext cc) |
void |
conversationDestroyed(ConversationContext cc) |
void |
conversationDetached(ConversationContext cc) |
void |
conversationNew(ConversationContext cc) |
int |
getLastLine()
Return the file total lines count.
|
List<String> |
getLines(int first,
int last)
Get the specified #of lines from the set.
|
long |
getSize()
Return the file size.
|
void |
readFileDelta()
Read file for delta changes.
|
boolean |
start() |
public int getLastLine()
public long getSize()
public void readFileDelta()
throws IOException
IOExceptionpublic List<String> getLines(int first, int last) throws IOException
first - last - ExceptionIOExceptionpublic void conversationNew(@Nonnull ConversationContext cc) throws Exception
conversationNew in interface IConversationStateListenerExceptionpublic void conversationAttached(@Nonnull ConversationContext cc) throws Exception
conversationAttached in interface IConversationStateListenerExceptionpublic void conversationDetached(@Nonnull ConversationContext cc) throws Exception
conversationDetached in interface IConversationStateListenerExceptionpublic void conversationDestroyed(@Nonnull ConversationContext cc) throws Exception
conversationDestroyed in interface IConversationStateListenerExceptionCopyright © 2017 etc.to. All rights reserved.