本文整理汇总了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;
}
示例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;
}
示例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);
}