Package com.dp.nebula.wormhole.common.interfaces

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


    }
    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

      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

Related Classes of com.dp.nebula.wormhole.common.interfaces.IWriterPeriphery

Copyright © 2018 www.massapicom. 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.