org.gcube.accounting.messaging.producer
Class Producer

java.lang.Object
  extended by org.gcube.accounting.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), Ermanno Travaglino (E-IIS)

Method Summary
static Producer getSingleton()
           
 void run()
           
 void sendMessageToQueue(org.gcube.accounting.datamodel.RawUsageRecord message)
          Sends message to a QUEUE destination
 
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.accounting.datamodel.RawUsageRecord message)
Sends message to a QUEUE destination

Parameters:
message - the RawUsageRecord to send

getSingleton

public static Producer getSingleton()

run

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


Copyright © 2014. All Rights Reserved.