|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.oozie.event.MemoryEventQueue
public class MemoryEventQueue
An implementation of the EventQueue, defining a memory-based data structure holding the events
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.apache.oozie.event.EventQueue |
---|
EventQueue.EventQueueElement |
Constructor Summary | |
---|---|
MemoryEventQueue()
|
Method Summary | |
---|---|
void |
add(org.apache.oozie.client.event.Event e)
Add event to queue |
void |
clear()
Clear the events queue |
int |
getBatchSize()
Get the batch size used during polling events |
void |
init(org.apache.hadoop.conf.Configuration conf)
Initialize the event queue |
boolean |
isEmpty()
Find out if queue is empty |
org.apache.oozie.client.event.Event |
peek()
Read topmost event from queue but do not pop from it |
org.apache.oozie.client.event.Event |
poll()
Fetch single event from queue |
List<org.apache.oozie.client.event.Event> |
pollBatch()
Fetch events from queue in batch |
int |
size()
Get current queue size |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MemoryEventQueue()
Method Detail |
---|
public void init(org.apache.hadoop.conf.Configuration conf)
EventQueue
init
in interface EventQueue
public int getBatchSize()
EventQueue
getBatchSize
in interface EventQueue
public void add(org.apache.oozie.client.event.Event e)
EventQueue
add
in interface EventQueue
public List<org.apache.oozie.client.event.Event> pollBatch()
EventQueue
pollBatch
in interface EventQueue
public org.apache.oozie.client.event.Event poll()
EventQueue
poll
in interface EventQueue
public boolean isEmpty()
EventQueue
isEmpty
in interface EventQueue
public int size()
EventQueue
size
in interface EventQueue
public org.apache.oozie.client.event.Event peek()
EventQueue
peek
in interface EventQueue
public void clear()
EventQueue
clear
in interface EventQueue
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |