|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Thread
com.mindtree.techworks.insight.receiver.AbstractReceiver
com.mindtree.techworks.insight.receiver.FileStreamReceiver
public class FileStreamReceiver
The FileStreamReceiver class is a concrete implementation of the
AbstractReceiver class. It supports receiving and building events from
files.
AbstractReceiver| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
| Field Summary |
|---|
| Fields inherited from class com.mindtree.techworks.insight.receiver.AbstractReceiver |
|---|
interpretedEventCount |
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Fields inherited from interface com.mindtree.techworks.insight.receiver.ReceiverInterpreter |
|---|
FAILURE, SUCCESS |
| Fields inherited from interface com.mindtree.techworks.insight.model.ILogEventModelMutator |
|---|
FAILURE, NON_TAILING_MUTATOR, SUCCESS, TAILING_MUTATOR |
| Constructor Summary | |
|---|---|
FileStreamReceiver(LogNamespace namespace,
boolean isTailing)
Constructor for this class. |
|
| Method Summary | |
|---|---|
protected void |
deInitialize()
Overriden superclass method |
LogNamespace[] |
getNamespaces()
Overriden superclass method |
protected LogEvent[] |
getNextEvents()
Overriden superclass method |
protected boolean |
hasMoreEvents()
Overriden superclass method |
protected void |
initialize(LogNamespace namespace,
boolean isTailingReceiver)
Overriden superclass method |
boolean |
isTailing()
Overriden superclass method |
| Methods inherited from class com.mindtree.techworks.insight.receiver.AbstractReceiver |
|---|
addAppender, addMutatorListener, addReceiverListener, removeAppender, removeMutatorListener, removeReceiverListener, run, shutdown, startup |
| Methods inherited from class java.lang.Thread |
|---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FileStreamReceiver(LogNamespace namespace,
boolean isTailing)
throws ReceiverInitializationException
namespace - the LogNamespace that contains the file information to read events fromisTailing - true if the receiver must be a tailing receiver
ReceiverInitializationException - if the receiver is not able to initialize.| Method Detail |
|---|
public LogNamespace[] getNamespaces()
getNamespaces in class AbstractReceiverAbstractReceiver.getNamespaces()public boolean isTailing()
isTailing in class AbstractReceiverAbstractReceiver.isTailing()
protected void initialize(LogNamespace namespace,
boolean isTailingReceiver)
throws ReceiverInitializationException
initialize in class AbstractReceivernamespace - the LogNamespace that this AbstractReceiver will process events fromisTailingReceiver - determines if this AbstractReceiver tails the specified LogNamespace
ReceiverInitializationException - if any problems occurs during the initialization of receiver.AbstractReceiver.initialize(com.mindtree.techworks.insight.spi.LogNamespace, boolean)protected void deInitialize()
deInitialize in class AbstractReceiverAbstractReceiver.deInitialize()protected LogEvent[] getNextEvents()
getNextEvents in class AbstractReceiverAbstractReceiver.getNextEvents()protected boolean hasMoreEvents()
hasMoreEvents in class AbstractReceiverAbstractReceiver.hasMoreEvents()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||