org.gcube.datatransfer.common.messaging.producer
Class Producer

java.lang.Object
  extended by org.gcube.datatransfer.common.messaging.producer.Producer
All Implemented Interfaces:
Runnable

public class Producer
extends Object
implements Runnable

JMS Client that sends message to ActiveMQ Broker

Author:
Andrea Manzi( CERN)

Method Summary
static Producer getSingleton()
           
 void run()
           
 void sendMessageToQueue(org.gcube.common.core.monitoring.GCUBEMessage message)
          Sends message to a QUEUE destination
 void setSingleton(Producer singleton)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

sendMessageToQueue

public void sendMessageToQueue(org.gcube.common.core.monitoring.GCUBEMessage message)
Sends message to a QUEUE destination

Parameters:
message - the GCUBEMessage to send

getSingleton

public static Producer getSingleton()

setSingleton

public void setSingleton(Producer singleton)

run

public void run()
Specified by:
run in interface Runnable


Copyright © 2014. All Rights Reserved.