|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteu.xtreemos.xosd.utilities.logger.filters.NonBlockingTokenFilter
eu.xtreemos.xosd.utilities.logger.filters.BlockingTokenFilter
public abstract class BlockingTokenFilter
Field Summary | |
---|---|
protected boolean |
isFinished
|
Fields inherited from class eu.xtreemos.xosd.utilities.logger.filters.NonBlockingTokenFilter |
---|
scatter, tokens |
Constructor Summary | |
---|---|
BlockingTokenFilter()
|
Method Summary | |
---|---|
void |
add(IToken token)
processes the token and stores it in its proper place in the pipelane |
protected abstract void |
insert(IToken token)
must implement sorting algorithm if needed, otherwise just call super.insert(token) |
void |
markLastToken()
marks the flag, that the last token has been sent to the filter. this matters if the filter is a blocking filter, which needs all tokens before proceeding (blocking filters can be used for sorting elements). |
IToken |
topToken()
Returns first elemen of the pipe, but only if there are no filters registered to use them. this function works only for final filters. |
Methods inherited from class eu.xtreemos.xosd.utilities.logger.filters.NonBlockingTokenFilter |
---|
checkToken, clearPipe, filters, isFinal, numTokens |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected boolean isFinished
Constructor Detail |
---|
public BlockingTokenFilter()
Method Detail |
---|
protected abstract void insert(IToken token)
insert
in class NonBlockingTokenFilter
public void add(IToken token)
ITokenFilter
add
in interface ITokenFilter
add
in class NonBlockingTokenFilter
public void markLastToken()
ITokenFilter
markLastToken
in interface ITokenFilter
markLastToken
in class NonBlockingTokenFilter
public IToken topToken()
ITokenFilter
topToken
in interface ITokenFilter
topToken
in class NonBlockingTokenFilter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |