org.apache.falcon.rerun.queue
Class ActiveMQueue<T extends RerunEvent>

java.lang.Object
  extended by org.apache.falcon.rerun.queue.DelayedQueue<T>
      extended by org.apache.falcon.rerun.queue.ActiveMQueue<T>
Type Parameters:
T -

public class ActiveMQueue<T extends RerunEvent>
extends DelayedQueue<T>

An ActiveMQ implementation for DelayedQueue.


Field Summary
 
Fields inherited from class org.apache.falcon.rerun.queue.DelayedQueue
LOG
 
Constructor Summary
ActiveMQueue(String brokerUrl, String destinationName)
           
 
Method Summary
 void init()
           
 boolean offer(T event)
           
 void populateQueue(List<T> events)
           
 void reconnect()
           
 T take()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActiveMQueue

public ActiveMQueue(String brokerUrl,
                    String destinationName)
Method Detail

offer

public boolean offer(T event)
              throws FalconException
Specified by:
offer in class DelayedQueue<T extends RerunEvent>
Throws:
FalconException

take

public T take()
                          throws FalconException
Specified by:
take in class DelayedQueue<T extends RerunEvent>
Throws:
FalconException

populateQueue

public void populateQueue(List<T> events)
Specified by:
populateQueue in class DelayedQueue<T extends RerunEvent>

init

public void init()
Specified by:
init in class DelayedQueue<T extends RerunEvent>

reconnect

public void reconnect()
               throws FalconException
Specified by:
reconnect in class DelayedQueue<T extends RerunEvent>
Throws:
FalconException


Copyright © 2013-2014 Apache Software Foundation. All Rights Reserved.