本文整理匯總了Java中org.pentaho.di.trans.step.StepInterface.resumeRunning方法的典型用法代碼示例。如果您正苦於以下問題:Java StepInterface.resumeRunning方法的具體用法?Java StepInterface.resumeRunning怎麽用?Java StepInterface.resumeRunning使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類org.pentaho.di.trans.step.StepInterface
的用法示例。
在下文中一共展示了StepInterface.resumeRunning方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: stopAll
import org.pentaho.di.trans.step.StepInterface; //導入方法依賴的package包/類
public void stopAll()
{
if (steps==null) return;
//log.logDetailed("DIS: Checking wether of not ["+sname+"]."+cnr+" has started!");
//log.logDetailed("DIS: hasStepStarted() looking in "+threads.size()+" threads");
for (int i=0;i<steps.size();i++)
{
StepMetaDataCombi sid = steps.get(i);
StepInterface rt = sid.step;
rt.setStopped(true);
rt.resumeRunning();
// Cancel queries etc. by force...
StepInterface si = (StepInterface)rt;
try
{
si.stopRunning(sid.meta, sid.data);
}
catch(Exception e)
{
log.logError("Something went wrong while trying to stop the transformation: "+e.toString());
log.logError(Const.getStackTracker(e));
}
sid.data.setStatus(StepExecutionStatus.STATUS_STOPPED);
}
//if it is stopped it is not paused
paused.set(false);
stopped.set(true);
// Fire the stopped listener...
//
for (TransStoppedListener listener : transStoppedListeners) {
listener.transStopped(this);
}
}