當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。