本文整理匯總了Java中org.pentaho.di.trans.step.StepInterface.getProcessed方法的典型用法代碼示例。如果您正苦於以下問題:Java StepInterface.getProcessed方法的具體用法?Java StepInterface.getProcessed怎麽用?Java StepInterface.getProcessed使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類org.pentaho.di.trans.step.StepInterface
的用法示例。
在下文中一共展示了StepInterface.getProcessed方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: printStats
import org.pentaho.di.trans.step.StepInterface; //導入方法依賴的package包/類
public void printStats(int seconds)
{
log.logBasic(" "); //$NON-NLS-1$
if (steps==null) return;
for (int i=0;i<steps.size();i++)
{
StepMetaDataCombi sid = steps.get(i);
StepInterface step = sid.step;
long proc = step.getProcessed();
if (seconds!=0)
{
if (step.getErrors()==0)
{
log.logBasic(BaseMessages.getString(PKG, "Trans.Log.ProcessSuccessfullyInfo",step.getStepname(),"."+step.getCopy(),String.valueOf(proc),String.valueOf((proc/seconds)))); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ //$NON-NLS-5$
}
else
{
log.logError(BaseMessages.getString(PKG, "Trans.Log.ProcessErrorInfo",step.getStepname(),"."+step.getCopy(),String.valueOf(step.getErrors()),String.valueOf(proc),String.valueOf(proc/seconds))); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ //$NON-NLS-5$ //$NON-NLS-6$
}
}
else
{
if (step.getErrors()==0)
{
log.logBasic(BaseMessages.getString(PKG, "Trans.Log.ProcessSuccessfullyInfo",step.getStepname(),"."+step.getCopy(),String.valueOf(proc),seconds!=0 ? String.valueOf((proc/seconds)) : "-")); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ //$NON-NLS-5$
}
else
{
log.logError(BaseMessages.getString(PKG, "Trans.Log.ProcessErrorInfo2",step.getStepname(),"."+step.getCopy(),String.valueOf(step.getErrors()),String.valueOf(proc),String.valueOf(seconds))); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ //$NON-NLS-5$ //$NON-NLS-6$
}
}
}
}