本文整理匯總了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);
}