本文整理汇总了Java中com.arjuna.databroker.data.connector.ObserverDataConsumer.consume方法的典型用法代码示例。如果您正苦于以下问题:Java ObserverDataConsumer.consume方法的具体用法?Java ObserverDataConsumer.consume怎么用?Java ObserverDataConsumer.consume使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.arjuna.databroker.data.connector.ObserverDataConsumer
的用法示例。
在下文中一共展示了ObserverDataConsumer.consume方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: startupJob
import com.arjuna.databroker.data.connector.ObserverDataConsumer; //导入方法依赖的package包/类
@PostConstruct
public void startupJob()
{
logger.log(Level.INFO, "StartupJob.startupJob");
String name = "Test Job";
Map<String, String> properties = new HashMap<String, String>();
properties.put(BatchDataProcessor.JOBID_PROPERTYNAME, "testJob");
BatchDataProcessor batchDataProcessor = new BatchDataProcessor(name, properties);
ObserverDataConsumer<Object> dataConsumer = (ObserverDataConsumer<Object>) batchDataProcessor.getDataConsumer(Object.class);
dataConsumer.consume(null, "Test Data");
}
示例2: produce
import com.arjuna.databroker.data.connector.ObserverDataConsumer; //导入方法依赖的package包/类
@Override
public void produce(Object data)
{
logger.log(Level.FINE, "BatchDataProvider.produce");
for (ObserverDataConsumer<Object> dataConsumer: _dataConsumers)
dataConsumer.consume(this, data);
}
示例3: simplestConversion
import com.arjuna.databroker.data.connector.ObserverDataConsumer; //导入方法依赖的package包/类
@Test
@Ignore
public void simplestConversion()
{
ShapeFile2CSVConverterDataProcessor shapeFileDataProcessor = new ShapeFile2CSVConverterDataProcessor("ShapeFile Converter Data Processor", Collections.<String, String>emptyMap());
ObserverDataConsumer<File> dataConsumer = (ObserverDataConsumer<File>) shapeFileDataProcessor.getDataConsumer(File.class);
File testFile = new File("/tmp/test.shp");
dataConsumer.consume(null, testFile);
}
示例4: produce
import com.arjuna.databroker.data.connector.ObserverDataConsumer; //导入方法依赖的package包/类
@Override
public void produce(T data)
{
for (ObserverDataConsumer<T> dataConsumer: _dataConsumers)
dataConsumer.consume(this, data);
}