org.ow2.petals.tools.webadmin.cewolf.dataproducers
Class MsgRepartitionDataProd

java.lang.Object
  extended by org.ow2.petals.tools.webadmin.cewolf.dataproducers.MsgRepartitionDataProd
All Implemented Interfaces:
de.laures.cewolf.DatasetProducer, java.io.Serializable

public final class MsgRepartitionDataProd
extends java.lang.Object
implements de.laures.cewolf.DatasetProducer

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface de.laures.cewolf.DatasetProducer
PRODUCER_ATTRIBUTE_NAME
 
Constructor Summary
MsgRepartitionDataProd()
           
 
Method Summary
 java.lang.String getProducerId()
          Returns the id of the producer
 boolean hasExpired(java.util.Map params, java.util.Date since)
          Indicates if dataset produced has expired. method is called by the Cewolf framework to check if a formerly produced data can be reused.
 java.lang.Object produceDataset(java.util.Map params)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MsgRepartitionDataProd

public MsgRepartitionDataProd()
Method Detail

getProducerId

public java.lang.String getProducerId()
Returns the id of the producer

Specified by:
getProducerId in interface de.laures.cewolf.DatasetProducer
Returns:
an id as a String

hasExpired

public boolean hasExpired(java.util.Map params,
                          java.util.Date since)
Indicates if dataset produced has expired. method is called by the Cewolf framework to check if a formerly produced data can be reused. As datas are evolving and retrieved in an MBean, method always returns true to force reloading datas.

Specified by:
hasExpired in interface de.laures.cewolf.DatasetProducer
Returns:
true if the data which had been produced with the passed in parameters has expired since its creation, false otherwise

produceDataset

public java.lang.Object produceDataset(java.util.Map params)
                                throws de.laures.cewolf.DatasetProduceException
Specified by:
produceDataset in interface de.laures.cewolf.DatasetProducer
Throws:
de.laures.cewolf.DatasetProduceException


Copyright © 2005-2008 OW2 Consortium. All Rights Reserved.