org.gcube.datatransfer.agent.impl.streams
Class Counter

java.lang.Object
  extended by org.gcube.datatransfer.agent.impl.streams.Counter
All Implemented Interfaces:
org.gcube.data.streams.generators.Generator<org.gcube.data.trees.data.Tree,org.gcube.data.trees.data.Tree>

public class Counter
extends Object
implements org.gcube.data.streams.generators.Generator<org.gcube.data.trees.data.Tree,org.gcube.data.trees.data.Tree>

Author:
Nikolaos Drakopoulos(CERN)

Field Summary
protected  org.gcube.common.core.utils.logging.GCUBELog logger
           
 int total
           
 
Fields inherited from interface org.gcube.data.streams.generators.Generator
iteration
 
Constructor Summary
Counter()
           
 
Method Summary
 org.gcube.data.trees.data.Tree yield(org.gcube.data.trees.data.Tree element)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

total

public int total

logger

protected org.gcube.common.core.utils.logging.GCUBELog logger
Constructor Detail

Counter

public Counter()
Method Detail

yield

public org.gcube.data.trees.data.Tree yield(org.gcube.data.trees.data.Tree element)
                                     throws org.gcube.data.streams.exceptions.StreamSkipSignal,
                                            org.gcube.data.streams.exceptions.StreamStopSignal
Specified by:
yield in interface org.gcube.data.streams.generators.Generator<org.gcube.data.trees.data.Tree,org.gcube.data.trees.data.Tree>
Throws:
org.gcube.data.streams.exceptions.StreamSkipSignal
org.gcube.data.streams.exceptions.StreamStopSignal


Copyright © 2013. All Rights Reserved.