本文整理了Java中org.pentaho.di.job.Job.isActive()
方法的一些代码示例,展示了Job.isActive()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Job.isActive()
方法的具体详情如下:
包路径:org.pentaho.di.job.Job
类名称:Job
方法名:isActive
暂无
代码示例来源:origin: pentaho/pentaho-kettle
if ( !isActive() ) {
if ( isStopped() ) {
status = LogStatus.STOP;
代码示例来源:origin: pentaho/pentaho-kettle
public synchronized void stopJob() {
if ( job != null && job.isActive() && job.isInitialized() ) {
job.stopAll();
job.waitUntilFinished( 5000 ); // wait until everything is stopped, maximum 5 seconds...
log.logMinimal( BaseMessages.getString( PKG, "JobLog.Log.JobWasStopped" ) );
}
setControlStates();
}
代码示例来源:origin: pentaho/pentaho-kettle
public String getStatus() {
String message;
if ( isActive() ) {
if ( isStopped() ) {
message = Trans.STRING_HALTING;
} else {
message = Trans.STRING_RUNNING;
}
} else if ( isFinished() ) {
message = Trans.STRING_FINISHED;
if ( getResult().getNrErrors() > 0 ) {
message += " (with errors)";
}
} else if ( isStopped() ) {
message = Trans.STRING_STOPPED;
if ( getResult().getNrErrors() > 0 ) {
message += " (with errors)";
}
} else {
message = Trans.STRING_WAITING;
}
return message;
}
代码示例来源:origin: pentaho/pentaho-kettle
if ( job.isInitialized() && !job.isActive() ) {
代码示例来源:origin: pentaho/pentaho-kettle
CarteObjectEntry entry = CarteResource.getCarteObjectEntry( id );
try {
if ( job.isInitialized() && !job.isActive() ) {
代码示例来源:origin: pentaho/pentaho-kettle
boolean running = job != null && job.isActive();
XulToolbarbutton runButton = (XulToolbarbutton) toolbar.getElementById( "job-run" );
if ( runButton != null && !controlDisposed( runButton ) && !operationsNotAllowed ) {
代码示例来源:origin: pentaho/pentaho-kettle
if ( job == null || ( job.isFinished() || job.isStopped() ) && !job.isActive() ) {
if ( job == null || ( job != null && !job.isActive() ) ) {
try {
内容来源于网络,如有侵权,请联系作者删除!