congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
Job.stopAll
Code IndexAdd Tabnine to your IDE (free)

How to use
stopAll
method
in
org.pentaho.di.job.Job

Best Java code snippets using org.pentaho.di.job.Job.stopAll (Showing top 8 results out of 315)

origin: pentaho/pentaho-kettle

public void stopRunning( StepMetaInterface stepMetaInterface, StepDataInterface stepDataInterface ) throws KettleException {
 if ( data.executorJob != null ) {
  data.executorJob.stopAll();
 }
}
origin: pentaho/pentaho-kettle

public void stopAll() {
 // Stop the job execution.
 if ( data.executorJob != null ) {
  data.executorJob.stopAll();
 }
 // Also stop this step
 super.stopAll();
}
origin: pentaho/pentaho-kettle

@GET
@Path( "/stop/{id : .+}" )
@Produces( { MediaType.APPLICATION_JSON } )
public JobStatus stopJob( @PathParam( "id" ) String id ) {
 Job job = CarteResource.getJob( id );
 job.stopAll();
 return getJobStatus( id );
}
origin: pentaho/pentaho-kettle

 @Override public void run() {
  try {
   endProcessing();
  } catch ( Exception e ) {
   log.logError( BaseMessages.getString( PKG, "Job.Exception.UnableToPerformIntervalLogging" ), e );
   // Also stop the show...
   //
   errors.incrementAndGet();
   stopAll();
  }
 }
};
origin: pentaho/pentaho-kettle

/**
 * Execute this job entry and return the result. In this case it means, just set the result boolean in the Result
 * class.
 *
 * @param previousResult
 *          The result of the previous execution
 * @return The Result of the execution.
 */
public Result execute( Result previousResult, int nr ) {
 previousResult.setResult( evaluate( previousResult ) );
 // we fail so stop
 // job execution
 parentJob.stopAll();
 return previousResult;
}
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

job.stopAll();
origin: pentaho/pentaho-kettle

job.stopAll();
parentJob.stopAll();
org.pentaho.di.jobJobstopAll

Javadoc

Stop all activity by setting the stopped property to true.

Popular methods of Job

  • isStopped
  • getJobname
  • getJobMeta
  • getLogLevel
    Gets the logLevel.
  • <init>
  • addJobListener
  • getLogChannelId
    Gets the log channel id.
  • setLogLevel
    Sets the log level.
  • getActiveJobEntryJobs
    Gets the activeJobEntryJobs.
  • getActiveJobEntryTransformations
    Gets the activeJobEntryTransformations.
  • getLogChannel
    Gets the log channel interface.
  • isFinished
  • getLogChannel,
  • isFinished,
  • setVariable,
  • start,
  • waitUntilFinished,
  • copyParametersFrom,
  • createDataBase,
  • execute,
  • fireJobFinishListeners

Popular in Java

  • Updating database using SQL prepared statement
  • notifyDataSetChanged (ArrayAdapter)
  • requestLocationUpdates (LocationManager)
  • onCreateOptionsMenu (Activity)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • Path (java.nio.file)
  • Permission (java.security)
    Legacy security code; do not use.
  • JFileChooser (javax.swing)
  • JTextField (javax.swing)
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now