Examples of IWriterPeriphery


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

          .getPluginName());
      jobParams.putValue(AbstractPlugin.PLUGINID, writerID);
      String writerPath = pluginParams.getValue(PluginConfParamKey.PATH);
      String writerPeripheryClassName = pluginParams
          .getValue(PluginConfParamKey.PERIPHERY_CLASS_NAME);
      IWriterPeriphery writerPeriphery = null;
      if (StringUtils.isEmpty(writerPeripheryClassName)) {
        writerPeriphery = new DefaultWriterPeriphery();
      } else {
        writerPeriphery = ReflectionUtil
            .createInstanceByDefaultConstructor(
View Full Code Here

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

    }
    return result;
  }

  private void terminate(String writerID) {
    IWriterPeriphery writerPeriphery = writerPeripheryMap.get(writerID);
    if (writerPeriphery == null) {
      s_logger.error("can not find any writer periphery for " + writerID);
      return;
    }
    IParam jobParams = writerToJobParamsMap.get(writerID);
    if (jobParams == null) {
      s_logger.error("can not find any job parameters for " + writerID);
      return;
    }

    writerPeriphery.doPost(jobParams, monitorManager);
  }
View Full Code Here

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

      rollback(writerID);
    }
  }

  public void rollback(String writerID) {
    IWriterPeriphery writerPeriphery = writerPeripheryMap.get(writerID);
    if (writerPeriphery == null) {
      s_logger.error("can not find any writer periphery for " + writerID);
      return;
    }
    IParam jobParams = writerToJobParamsMap.get(writerID);
    if (jobParams == null) {
      s_logger.error("can not find any job parameters for " + writerID);
      return;
    }

    writerPeriphery.rollback(jobParams);
  }
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.