当前位置: 首页>>代码示例>>Java>>正文


Java ProcessHelper类代码示例

本文整理汇总了Java中org.apache.falcon.entity.ProcessHelper的典型用法代码示例。如果您正苦于以下问题:Java ProcessHelper类的具体用法?Java ProcessHelper怎么用?Java ProcessHelper使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


ProcessHelper类属于org.apache.falcon.entity包,在下文中一共展示了ProcessHelper类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getProcessEntityWFProperties

import org.apache.falcon.entity.ProcessHelper; //导入依赖的package包/类
private static Map<String, String> getProcessEntityWFProperties(final Workflow workflow,
                                                                final String processName) {
    Map<String, String> wfProperties = new HashMap<>();
    wfProperties.put(WorkflowExecutionArgs.USER_WORKFLOW_NAME.getName(),
            ProcessHelper.getProcessWorkflowName(workflow.getName(), processName));
    wfProperties.put(WorkflowExecutionArgs.USER_WORKFLOW_VERSION.getName(),
            workflow.getVersion());
    wfProperties.put(WorkflowExecutionArgs.USER_WORKFLOW_ENGINE.getName(),
            workflow.getEngine().value());

    return wfProperties;
}
 
开发者ID:apache,项目名称:incubator-atlas,代码行数:13,代码来源:FalconBridge.java

示例2: newWorkflowSchedule

import org.apache.falcon.entity.ProcessHelper; //导入依赖的package包/类
@Override
public Map<String, Properties> newWorkflowSchedule(Process process, List<String> clusters) throws FalconException {
    Map<String, Properties> propertiesMap = new HashMap<String, Properties>();

    for (String clusterName : clusters) {
        org.apache.falcon.entity.v0.process.Cluster processCluster = ProcessHelper.getCluster(process, clusterName);
        Properties properties = newWorkflowSchedule(process, processCluster.getValidity().getStart(), clusterName,
                CurrentUser.getUser());
        if (properties != null) {
            propertiesMap.put(clusterName, properties);
        }
    }
    return propertiesMap;
}
 
开发者ID:shaikidris,项目名称:incubator-falcon,代码行数:15,代码来源:OozieProcessWorkflowBuilder.java

示例3: getNextStartTime

import org.apache.falcon.entity.ProcessHelper; //导入依赖的package包/类
@Override
public Date getNextStartTime(Process process, String cluster, Date now) throws FalconException {
    org.apache.falcon.entity.v0.process.Cluster processCluster = ProcessHelper.getCluster(process, cluster);
    return EntityUtil.getNextStartTime(processCluster.getValidity().getStart(),
            process.getFrequency(), process.getTimezone(), now);
}
 
开发者ID:shaikidris,项目名称:incubator-falcon,代码行数:7,代码来源:OozieProcessWorkflowBuilder.java


注:本文中的org.apache.falcon.entity.ProcessHelper类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。