|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 EventQueuepublic int getBatchSize()
EventQueue
getBatchSize in interface EventQueuepublic void add(org.apache.oozie.client.event.Event e)
EventQueue
add in interface EventQueuepublic List<org.apache.oozie.client.event.Event> pollBatch()
EventQueue
pollBatch in interface EventQueuepublic org.apache.oozie.client.event.Event poll()
EventQueue
poll in interface EventQueuepublic boolean isEmpty()
EventQueue
isEmpty in interface EventQueuepublic int size()
EventQueue
size in interface EventQueuepublic org.apache.oozie.client.event.Event peek()
EventQueue
peek in interface EventQueuepublic void clear()
EventQueue
clear in interface EventQueue
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||