- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中org.apache.helix.task.WorkflowConfig.getStartTime()
方法的一些代码示例,展示了WorkflowConfig.getStartTime()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WorkflowConfig.getStartTime()
方法的具体详情如下:
包路径:org.apache.helix.task.WorkflowConfig
类名称:WorkflowConfig
方法名:getStartTime
[英]Get the scheduled start time of the workflow.
[中]获取工作流的计划开始时间。
代码示例来源:origin: apache/helix
/**
* Check if a workflow is ready to schedule.
* @param workflowCfg the workflow to check
* @return true if the workflow is ready for schedule, false if not ready
*/
protected boolean isWorkflowReadyForSchedule(WorkflowConfig workflowCfg) {
Date startTime = workflowCfg.getStartTime();
// Workflow with non-scheduled config or passed start time is ready to schedule.
return (startTime == null || startTime.getTime() <= System.currentTimeMillis());
}
}
代码示例来源:origin: org.apache.helix/helix-core
/**
* Check if a workflow is ready to schedule.
* @param workflowCfg the workflow to check
* @return true if the workflow is ready for schedule, false if not ready
*/
protected boolean isWorkflowReadyForSchedule(WorkflowConfig workflowCfg) {
Date startTime = workflowCfg.getStartTime();
// Workflow with non-scheduled config or passed start time is ready to schedule.
return (startTime == null || startTime.getTime() <= System.currentTimeMillis());
}
代码示例来源:origin: apache/helix
public void assignWorkflow(String workflow, WorkflowConfig workflowCfg,
WorkflowContext workflowCtx) {
// Fetch workflow configuration and context
if (workflowCfg == null) {
// Already logged in status update.
return;
}
if (!isWorkflowReadyForSchedule(workflowCfg)) {
LOG.info("Workflow " + workflow + " is not ready to schedule");
// set the timer to trigger future schedule
_rebalanceScheduler.scheduleRebalance(_manager, workflow,
workflowCfg.getStartTime().getTime());
return;
}
// Check for readiness, and stop processing if it's not ready
boolean isReady = scheduleWorkflowIfReady(workflow, workflowCfg, workflowCtx, _taskDataCache);
if (isReady) {
// Schedule jobs from this workflow.
scheduleJobs(workflow, workflowCfg, workflowCtx, _taskDataCache.getJobConfigMap(), _taskDataCache);
} else {
LOG.debug("Workflow " + workflow + " is not ready to be scheduled.");
}
_taskDataCache.updateWorkflowContext(workflow, workflowCtx);
}
代码示例来源:origin: apache/helix
configStartTime.setTime(wCfg.getStartTime());
代码示例来源:origin: apache/helix
configStartTime.setTime(wCfg.getStartTime());
代码示例来源:origin: org.apache.helix/helix-core
workflowCfg.getStartTime().getTime());
return buildEmptyAssignment(workflow, currStateOutput);
本文整理了Java中org.apache.helix.task.WorkflowConfig.getTargetState()方法的一些代码示例,展示了WorkflowConfig.getTarget
本文整理了Java中org.apache.helix.task.WorkflowConfig.isJobQueue()方法的一些代码示例,展示了WorkflowConfig.isJobQueue()的
本文整理了Java中org.apache.helix.task.WorkflowConfig.getStartTime()方法的一些代码示例,展示了WorkflowConfig.getStartTim
本文整理了Java中org.apache.helix.task.WorkflowConfig.getParallelJobs()方法的一些代码示例,展示了WorkflowConfig.getParal
本文整理了Java中org.apache.helix.task.WorkflowConfig.getRecord()方法的一些代码示例,展示了WorkflowConfig.getRecord()的具体
本文整理了Java中org.apache.helix.task.WorkflowConfig.getWorkflowType()方法的一些代码示例,展示了WorkflowConfig.getWorkf
本文整理了Java中org.apache.helix.task.WorkflowConfig.isTerminable()方法的一些代码示例,展示了WorkflowConfig.isTerminabl
本文整理了Java中org.apache.helix.task.WorkflowConfig.getJobDag()方法的一些代码示例,展示了WorkflowConfig.getJobDag()的具体
本文整理了Java中org.apache.helix.task.WorkflowConfig.getScheduleConfig()方法的一些代码示例,展示了WorkflowConfig.getSch
本文整理了Java中org.apache.helix.task.WorkflowConfig.getResourceConfigMap()方法的一些代码示例,展示了WorkflowConfig.get
我是一名优秀的程序员,十分优秀!