本文整理汇总了Java中org.pentaho.di.trans.step.BaseStepData.StepExecutionStatus.STATUS_FINISHED属性的典型用法代码示例。如果您正苦于以下问题:Java StepExecutionStatus.STATUS_FINISHED属性的具体用法?Java StepExecutionStatus.STATUS_FINISHED怎么用?Java StepExecutionStatus.STATUS_FINISHED使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类org.pentaho.di.trans.step.BaseStepData.StepExecutionStatus
的用法示例。
在下文中一共展示了StepExecutionStatus.STATUS_FINISHED属性的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getEnded
public int getEnded()
{
int nrEnded=0;
if (steps==null) return 0;
for (int i=0;i<steps.size();i++)
{
StepMetaDataCombi sid = steps.get(i);
StepDataInterface data = sid.data;
if ((sid.step!=null && !sid.step.isRunning()) || // Should normally not be needed anymore, status is kept in data.
data.getStatus()==StepExecutionStatus.STATUS_FINISHED || // Finished processing
data.getStatus()==StepExecutionStatus.STATUS_HALTED || // Not launching because of init error
data.getStatus()==StepExecutionStatus.STATUS_STOPPED // Stopped because of an error
)
{
nrEnded++;
}
}
return nrEnded;
}
示例2: nrActiveSteps
public int nrActiveSteps()
{
if (steps==null) return 0;
int nr = 0;
for (int i=0;i<steps.size();i++)
{
StepMetaDataCombi sid = steps.get(i);
//without also considering a step status of not finished,
// the step execution results grid shows empty while
// the transformation has steps still running.
//if ( sid.step.isRunning() ) nr++;
if ( sid.step.isRunning() ||
sid.step.getStatus() != StepExecutionStatus.STATUS_FINISHED ) {
nr++;
}
}
return nr;
}
示例3: getEnded
/**
* Gets the number of steps in the transformation that are in an end state, such as Finished, Halted, or Stopped.
*
* @return the number of ended steps
*/
public int getEnded()
{
int nrEnded=0;
if (steps==null) return 0;
for (int i=0;i<steps.size();i++)
{
StepMetaDataCombi sid = steps.get(i);
StepDataInterface data = sid.data;
if ((sid.step!=null && !sid.step.isRunning()) || // Should normally not be needed anymore, status is kept in data.
data.getStatus()==StepExecutionStatus.STATUS_FINISHED || // Finished processing
data.getStatus()==StepExecutionStatus.STATUS_HALTED || // Not launching because of init error
data.getStatus()==StepExecutionStatus.STATUS_STOPPED // Stopped because of an error
)
{
nrEnded++;
}
}
return nrEnded;
}
示例4: nrActiveSteps
/**
* Gets the number of active (i.e. not finished) steps in this transformation
*
* @return the number of active steps
*/
public int nrActiveSteps()
{
if (steps==null) return 0;
int nr = 0;
for (int i=0;i<steps.size();i++)
{
StepMetaDataCombi sid = steps.get(i);
//without also considering a step status of not finished,
// the step execution results grid shows empty while
// the transformation has steps still running.
//if ( sid.step.isRunning() ) nr++;
if ( sid.step.isRunning() ||
sid.step.getStatus() != StepExecutionStatus.STATUS_FINISHED ) {
nr++;
}
}
return nr;
}
示例5: getEnded
/**
* Gets the number of steps in the transformation that are in an end state, such as Finished, Halted, or Stopped.
*
* @return the number of ended steps
*/
public int getEnded() {
int nrEnded = 0;
if ( steps == null ) {
return 0;
}
for ( int i = 0; i < steps.size(); i++ ) {
StepMetaDataCombi sid = steps.get( i );
StepDataInterface data = sid.data;
if ( ( sid.step != null && !sid.step.isRunning() )
// Should normally not be needed anymore, status is kept in data.
|| data.getStatus() == StepExecutionStatus.STATUS_FINISHED || // Finished processing
data.getStatus() == StepExecutionStatus.STATUS_HALTED || // Not launching because of init error
data.getStatus() == StepExecutionStatus.STATUS_STOPPED // Stopped because of an error
) {
nrEnded++;
}
}
return nrEnded;
}
示例6: nrActiveSteps
/**
* Gets the number of active (i.e. not finished) steps in this transformation
*
* @return the number of active steps
*/
public int nrActiveSteps() {
if ( steps == null ) {
return 0;
}
int nr = 0;
for ( int i = 0; i < steps.size(); i++ ) {
StepMetaDataCombi sid = steps.get( i );
// without also considering a step status of not finished,
// the step execution results grid shows empty while
// the transformation has steps still running.
// if ( sid.step.isRunning() ) nr++;
if ( sid.step.isRunning() || sid.step.getStatus() != StepExecutionStatus.STATUS_FINISHED ) {
nr++;
}
}
return nr;
}
示例7: getTransStepIsRunningLookup
public boolean[] getTransStepIsRunningLookup() {
if (steps==null) return null;
boolean[] tResult = new boolean[steps.size()];
for (int i = 0; i < steps.size(); i++)
{
StepMetaDataCombi sid = steps.get(i);
tResult[i] = (sid.step.isRunning() || sid.step.getStatus() != StepExecutionStatus.STATUS_FINISHED);
}
return tResult;
}
示例8: getTransStepIsRunningLookup
/**
* Checks whether the transformation steps are running lookup.
*
* @return a boolean array associated with the step list, indicating whether that step
* is running a lookup.
*/
public boolean[] getTransStepIsRunningLookup() {
if (steps==null) return null;
boolean[] tResult = new boolean[steps.size()];
for (int i = 0; i < steps.size(); i++)
{
StepMetaDataCombi sid = steps.get(i);
tResult[i] = (sid.step.isRunning() || sid.step.getStatus() != StepExecutionStatus.STATUS_FINISHED);
}
return tResult;
}
示例9: getTransStepIsRunningLookup
/**
* Checks whether the transformation steps are running lookup.
*
* @return a boolean array associated with the step list, indicating whether that step is running a lookup.
*/
public boolean[] getTransStepIsRunningLookup() {
if ( steps == null ) {
return null;
}
boolean[] tResult = new boolean[steps.size()];
for ( int i = 0; i < steps.size(); i++ ) {
StepMetaDataCombi sid = steps.get( i );
tResult[i] = ( sid.step.isRunning() || sid.step.getStatus() != StepExecutionStatus.STATUS_FINISHED );
}
return tResult;
}
示例10: 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;
}
}
}
}
示例11: 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;
}
}
}
}