eu.xtreemos.xosd.utilities.logger.filters
Class TimeMachine

java.lang.Object
  extended by eu.xtreemos.xosd.utilities.logger.filters.NonBlockingTokenFilter
      extended by eu.xtreemos.xosd.utilities.logger.filters.BlockingTokenFilter
          extended by eu.xtreemos.xosd.utilities.logger.filters.TimeMachine
All Implemented Interfaces:
ITokenFilter

public class TimeMachine
extends BlockingTokenFilter

handles all tokens with time descriptors sort them from the earliest one to the most current one. it is expected, that the time object is gregorian calendar or its extension. requires

Author:
uros

Field Summary
 
Fields inherited from class eu.xtreemos.xosd.utilities.logger.filters.BlockingTokenFilter
isFinished
 
Fields inherited from class eu.xtreemos.xosd.utilities.logger.filters.NonBlockingTokenFilter
scatter, tokens
 
Constructor Summary
TimeMachine()
           
 
Method Summary
protected  boolean checkToken(IToken token)
          check if time property exists and if the type of it is gregorian calendar
protected  void insert(IToken token)
          sort the tokens in the array from earliest to latest, the token must be with proper attributes
 
Methods inherited from class eu.xtreemos.xosd.utilities.logger.filters.BlockingTokenFilter
add, markLastToken, topToken
 
Methods inherited from class eu.xtreemos.xosd.utilities.logger.filters.NonBlockingTokenFilter
clearPipe, filters, isFinal, numTokens
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimeMachine

public TimeMachine()
Method Detail

insert

protected void insert(IToken token)
sort the tokens in the array from earliest to latest, the token must be with proper attributes

Specified by:
insert in class BlockingTokenFilter

checkToken

protected boolean checkToken(IToken token)
check if time property exists and if the type of it is gregorian calendar

Specified by:
checkToken in class NonBlockingTokenFilter
Parameters:
token - TODO