Examples of IPluginMonitor


Examples of com.dp.nebula.wormhole.common.interfaces.IPluginMonitor

    String readerClassName = pluginParams
        .getValue(PluginConfParamKey.PLUGIN_CLASS_NAME);
    readerPool = createThreadPool(concurrency);

    for (IParam p : splittedParam) {
      IPluginMonitor pm = monitorManager.newReaderMonitor();
      ReaderThread rt = ReaderThread.getInstance(LineExchangerFactory
          .createNewLineSender(null, storageManager
              .getStorageForReader()), p, readerClassName,
          readerPath, pm);
View Full Code Here

Examples of com.dp.nebula.wormhole.common.interfaces.IPluginMonitor

    }
    targetLinesMap.put(name, Long.valueOf(lines));
  }
 
  public IPluginMonitor newReaderMonitor(){
    IPluginMonitor m = new DefaultPluginMonitor();
    readerMonitorPool.add(m);
    return m;
  }
View Full Code Here

Examples of com.dp.nebula.wormhole.common.interfaces.IPluginMonitor

    readerMonitorPool.add(m);
    return m;
  }
 
  public IPluginMonitor newWriterMonitor(String name){
    IPluginMonitor m = new DefaultPluginMonitor();
    addWrtierMonitor(name, m);
    return m;
  }
View Full Code Here

Examples of com.dp.nebula.wormhole.common.interfaces.IPluginMonitor

    params.put(ParamKey.sql, "SELECT str_col, num_col FROM sample_table WHERE num_col < 250");
    IParam iParam = new DefaultParam(params);
    hiveReader.setParam(iParam);
    BufferedLineExchanger bufLineExchanger = HiveReaderTest.getBufferedLineExchangerInstance();
   
    IPluginMonitor pluginMonitor = mock(IPluginMonitor.class);
    hiveReader.setMonitor(pluginMonitor);
   
    hiveReader.init();
    hiveReader.connection();
    hiveReader.read(bufLineExchanger);
View Full Code Here

Examples of com.dp.nebula.wormhole.common.interfaces.IPluginMonitor

    splitter.split();

    reader.setParam(iParam);
    BufferedLineExchanger bufLineExchanger = BufferedLineExchangerTest.getLineExchanger();
   
    IPluginMonitor pluginMonitor = mock(IPluginMonitor.class);
    reader.setMonitor(pluginMonitor);
   
    reader.init();
    reader.connection();
    reader.read(bufLineExchanger);
View Full Code Here

Examples of com.dp.nebula.wormhole.common.interfaces.IPluginMonitor

   
    gpPeriphery.prepare(iParam,null);
    gpReader.setParam(iParam);
    BufferedLineExchanger bufLineExchanger = getLineExchanger();
   
    IPluginMonitor pluginMonitor = mock(IPluginMonitor.class);
    gpReader.setMonitor(pluginMonitor);
   
    gpReader.init();
    gpReader.connection();
    ReadRunnable t = new ReadRunnable();
View Full Code Here

Examples of com.dp.nebula.wormhole.common.interfaces.IPluginMonitor

    params.put(ParamKey.inputFields, "{ msg : 1 }");
    IParam iParam = new DefaultParam(params);
    mongoReader.setParam(iParam);
    BufferedLineExchanger bufLineExchanger = HiveReaderTest.getBufferedLineExchangerInstance();
   
    IPluginMonitor pluginMonitor = mock(IPluginMonitor.class);
    mongoReader.setMonitor(pluginMonitor);
   
    mongoReader.init();
    mongoReader.connection();
    mongoReader.read(bufLineExchanger);
View Full Code Here

Examples of com.dp.nebula.wormhole.common.interfaces.IPluginMonitor

      ExecutorService writerPool = createThreadPool(concurrency);
      writerPoolMap.put(writerID, writerPool);

      List<Future<Integer>> resultList = new ArrayList<Future<Integer>>();
      for (IParam p : splittedParam) {
        IPluginMonitor pm = monitorManager.newWriterMonitor(writerID);
        WriterThread rt = WriterThread.getInstance(LineExchangerFactory
            .createNewLineReceiver(
                storageManager.getStorageForWriter(writerID),
                null), p, writeClassName, writerPath, pm);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.