public abstract class AbstractRecordReader extends Object implements ReaderBase
| Constructor and Description |
|---|
AbstractRecordReader() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
handleEvent(AbstractTaskEvent evt) |
boolean |
hasReachedEndOfSuperstep() |
protected boolean |
incrementEndOfSuperstepEventAndCheck() |
void |
setIterative(int numEventsUntilEndOfSuperstep) |
void |
startNextSuperstep() |
void |
subscribeToEvent(EventListener eventListener,
Class<? extends AbstractTaskEvent> eventType)
Subscribes the listener object to receive events of the given type.
|
void |
unsubscribeFromEvent(EventListener eventListener,
Class<? extends AbstractTaskEvent> eventType)
Removes the subscription for events of the given type for the listener object.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisInputClosed, publishEventpublic void subscribeToEvent(EventListener eventListener, Class<? extends AbstractTaskEvent> eventType)
subscribeToEvent in interface ReaderBaseeventListener - the listener object to registereventType - the type of event to register the listener forpublic void unsubscribeFromEvent(EventListener eventListener, Class<? extends AbstractTaskEvent> eventType)
unsubscribeFromEvent in interface ReaderBaseeventListener - The listener object to cancel the subscription for.eventType - The type of the event to cancel the subscription for.protected void handleEvent(AbstractTaskEvent evt)
public void setIterative(int numEventsUntilEndOfSuperstep)
setIterative in interface ReaderBasepublic void startNextSuperstep()
startNextSuperstep in interface ReaderBasepublic boolean hasReachedEndOfSuperstep()
hasReachedEndOfSuperstep in interface ReaderBaseprotected boolean incrementEndOfSuperstepEventAndCheck()
Copyright © 2014 The Apache Software Foundation. All rights reserved.