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


Java StepExecutionStatus.STATUS_RUNNING属性代码示例

本文整理汇总了Java中org.pentaho.di.trans.step.BaseStepData.StepExecutionStatus.STATUS_RUNNING属性的典型用法代码示例。如果您正苦于以下问题:Java StepExecutionStatus.STATUS_RUNNING属性的具体用法?Java StepExecutionStatus.STATUS_RUNNING怎么用?Java StepExecutionStatus.STATUS_RUNNING使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在org.pentaho.di.trans.step.BaseStepData.StepExecutionStatus的用法示例。


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

示例1: getStatus

public StepExecutionStatus getStatus()
 {
 	// Is this thread alive or not?
 	//
 	if (isRunning()) {
 		if (isStopped()) {
 			return StepExecutionStatus.STATUS_HALTING;
 		} else {
 			if (isPaused()) {
 				return StepExecutionStatus.STATUS_PAUSED;
 			} else {
 				return StepExecutionStatus.STATUS_RUNNING;
 			}
 		}
 	} 
 	else
 	{
 		// Step is not running... What are we doing?
 		//
// An init thread is running...
 		//
 		if (trans.isInitializing()) {
     		if (isInitialising()) {
     			return StepExecutionStatus.STATUS_INIT;
     		} else {
     			// Done initializing, but other threads are still busy.
     			// So this step is idle
     			//
     			return StepExecutionStatus.STATUS_IDLE;
     		}
 		}
 		else {
 			// It's not running, it's not initializing, so what is it doing?
 			//
     		if (isStopped()) {
     	    	return StepExecutionStatus.STATUS_STOPPED;
     		} else {
     			// To be sure (race conditions and all), get the rest in StepDataInterface object:
     			// 
     			StepDataInterface sdi = trans.getStepDataInterface(stepname, stepcopy);
     			if (sdi != null)
     			{
     				if (sdi.getStatus() == StepExecutionStatus.STATUS_DISPOSED) {
     					return StepExecutionStatus.STATUS_FINISHED;
     				} else {
     					return sdi.getStatus();
     				}
     			}
     			return StepExecutionStatus.STATUS_EMPTY;
     		}
 		}
 	}
 }
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:53,代码来源:BaseStep.java

示例2: getStatus

@Override
public StepExecutionStatus getStatus() {
  // Is this thread alive or not?
  //
  if ( isRunning() ) {
    if ( isStopped() ) {
      return StepExecutionStatus.STATUS_HALTING;
    } else {
      if ( isPaused() ) {
        return StepExecutionStatus.STATUS_PAUSED;
      } else {
        return StepExecutionStatus.STATUS_RUNNING;
      }
    }
  } else {
    // Step is not running... What are we doing?
    //
    // An init thread is running...
    //
    if ( trans.isInitializing() ) {
      if ( isInitialising() ) {
        return StepExecutionStatus.STATUS_INIT;
      } else {
        // Done initializing, but other threads are still busy.
        // So this step is idle
        //
        return StepExecutionStatus.STATUS_IDLE;
      }
    } else {
      // It's not running, it's not initializing, so what is it doing?
      //
      if ( isStopped() ) {
        return StepExecutionStatus.STATUS_STOPPED;
      } else {
        // To be sure (race conditions and all), get the rest in StepDataInterface object:
        //
        StepDataInterface sdi = trans.getStepDataInterface( stepname, stepcopy );
        if ( sdi != null ) {
          if ( sdi.getStatus() == StepExecutionStatus.STATUS_DISPOSED ) {
            return StepExecutionStatus.STATUS_FINISHED;
          } else {
            return sdi.getStatus();
          }
        }
        return StepExecutionStatus.STATUS_EMPTY;
      }
    }
  }
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:49,代码来源:BaseStep.java


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