Codota Logo
JiffleExecutorResult.isCompleted
Code IndexAdd Codota to your IDE (free)

How to use
isCompleted
method
in
it.geosolutions.jaiext.jiffle.runtime.JiffleExecutorResult

Best Java code snippets using it.geosolutions.jaiext.jiffle.runtime.JiffleExecutorResult.isCompleted (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Gson g =
  • Codota Iconnew Gson()
  • Codota IconGsonBuilder gsonBuilder;gsonBuilder.create()
  • Codota Iconnew GsonBuilder().create()
  • Smart code suggestions by Codota
}
origin: it.geosolutions.jaiext.jiffle/jt-jiffle-language

public void run() {
  try {
    Future<JiffleExecutorResult> future = completionService.poll();
    if (future != null) {
      JiffleExecutorResult result = future.get();
      numTasksRunning-- ;
      
      if (result.isCompleted()) {
        if (LOGGER.isLoggable(Level.INFO)) {
          LOGGER.log(Level.INFO, TASK_SUCCESS_MSG, result.getTaskID());
        }
        notifySuccess(result);
        
      } else {
        if (LOGGER.isLoggable(Level.INFO)) {
          LOGGER.log(Level.INFO, TASK_FAILURE_MSG, result.getTaskID());
        }
        notifyFailure(result);
      }
    }
  } catch (Exception ex) {
    throw new RuntimeException(ex);
  }
}
origin: geosolutions-it/jai-ext

public void run() {
  try {
    Future<JiffleExecutorResult> future = completionService.poll();
    if (future != null) {
      JiffleExecutorResult result = future.get();
      numTasksRunning-- ;
      
      if (result.isCompleted()) {
        if (LOGGER.isLoggable(Level.INFO)) {
          LOGGER.log(Level.INFO, TASK_SUCCESS_MSG, result.getTaskID());
        }
        notifySuccess(result);
        
      } else {
        if (LOGGER.isLoggable(Level.INFO)) {
          LOGGER.log(Level.INFO, TASK_FAILURE_MSG, result.getTaskID());
        }
        notifyFailure(result);
      }
    }
  } catch (Exception ex) {
    throw new RuntimeException(ex);
  }
}
origin: geosolutions-it/jai-ext

@Test
public void taskCompletedOnShutdown() throws Exception {
  System.out.println("   task completed after shutdown request");
  WaitingListener listener = new WaitingListener();
  executor.addEventListener(listener);
  listener.setNumTasks(1);
  
  executor.submit(new MockJiffleRuntime(100, 5), null);
  executor.shutdown();
  if (!listener.await(2, TimeUnit.SECONDS)) {
    fail("Listener time-out period elapsed");
  }
  
  List<JiffleExecutorResult> results = listener.getResults();
  assertEquals(1, results.size());
  assertTrue(results.get(0).isCompleted());
}

it.geosolutions.jaiext.jiffle.runtimeJiffleExecutorResultisCompleted

Javadoc

Gets the completion status of the task.

Popular methods of JiffleExecutorResult

  • getImages
    Gets source and/or destination images that were used.
  • <init>
    Creates a new result object.
  • getTaskID
    Gets the task ID assigned by the executor.

Popular in Java

  • Parsing JSON documents to java classes using gson
  • runOnUiThread (Activity)
  • requestLocationUpdates (LocationManager)
  • orElseThrow (Optional)
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • ConcurrentHashMap (java.util.concurrent)
    A hash table supporting full concurrency of retrievals and adjustable expected concurrency for updat
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • JLabel (javax.swing)
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now