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