Examples of terminate()


Examples of abbot.script.ForkedStepRunner.terminate()

        }
        catch(Throwable t) {
            fail("Wrong exception thrown: " + t);
        }
        finally {
            fs.terminate();
        }
    }

    /** Should be able to catch an error from a forked script exactly like
     * you would from a regular one.
View Full Code Here

Examples of akka.actor.ActorSystem.terminate()

      final ActorRef ackServer = system.actorOf(Props.create(EchoManager.class, SimpleEchoHandler.class), "ack");
      watcher.tell(nackServer, ActorRef.noSender());
      watcher.tell(ackServer, ActorRef.noSender());
      latch.await(10, TimeUnit.MINUTES);
    } finally {
      system.terminate();
    }
  }

}
View Full Code Here

Examples of ariba.ui.aribaweb.core.AWSession.terminate()

                AWSession awsession = AWSession.session(httpSession);
                if (awsession != null) {
                    // AWSession.terminate must be called before httpSession.invalidate because
                    // subclasses of AWSession may implement terminate() which requires data from the
                    // session. See defect 93887 for more information.
                    awsession.terminate();
                }
                Log.aribaweb.debug("verifySessionIsValid: HttpSession invalidated: %s",
                                   httpSession.getId());
                httpSession.invalidate();
            }
View Full Code Here

Examples of com.arjuna.ats.arjuna.recovery.RecoveryManager.terminate()

  manager.scan();

  if (!module.finished())
      assertFailure();

  manager.terminate();
 
  manager.initialize();
 
  module = new DummyRecoveryModule();
 
View Full Code Here

Examples of com.dotcms.repackage.org.apache.bsf.BSFManager.terminate()

  }
 
  public void terminateThreadLocalManager(){
    BSFManager man = manager.get();
    if(man != null){
      man.terminate();
      man=null;
    }
  }

}
View Full Code Here

Examples of com.opengamma.engine.view.worker.ViewProcessWorker.terminate()

    assertFalse(executor.wasInterrupted());

    // Interrupting should cause everything to terminate gracefully
    ViewProcessImpl viewProcess = env.getViewProcess(vp, client.getUniqueId());
    ViewProcessWorker worker = env.getCurrentWorker(viewProcess);
    worker.terminate();
    worker.join(TIMEOUT);
    for (int i = 0; (i < TIMEOUT / 10) && !executor.wasInterrupted(); i++) {
      Thread.sleep(10);
    }
    assertTrue(executor.wasInterrupted());
View Full Code Here

Examples of com.sos.scheduler.engine.kernel.Scheduler.terminate()

        Scheduler scheduler = null;
        synchronized (schedulerAtomLock) {
            scheduler = schedulerAtom.get();
            if (scheduler == nullterminateSchedulerWhenPossible = true;
        }
        if (scheduler != nullscheduler.terminate();
    }


    Scheduler getScheduler() {
        return schedulerAtom.get();
View Full Code Here

Examples of com.sun.enterprise.web.connector.grizzly.ReadTask.terminate()

                } else {
                    fireTaskEvent(taskEvent);
                }  
            } else {
                // Failed to read the URI. Close the connections.
                readTask.terminate(false);
                fireTaskEvent(taskEvent);
            }
        } catch (Exception ex){
            SelectorThread.logger()
                .log(Level.SEVERE,"IsolatedTask logic exception.",ex);
View Full Code Here

Examples of com.sun.jdmk.tasks.DaemonTaskServer.terminate()

           
            // Should received 1 traps
            assertEquals(trapNumbers, 1);
           
            trapAgent.close();
            taskServer.terminate();

            return;

        } catch (Exception e) {
            fail("SyncManager::main: " +
View Full Code Here

Examples of com.sun.jmx.remote.generic.ProfileClient.terminate()

    public void connectionClosed(MessageConnection mc) {
        for (Iterator i = profilesList.iterator(); i.hasNext(); ) {
            ProfileClient p = (ProfileClient) i.next();
            try {
                p.terminate();
            } catch (Exception e) {
    if (logger.debugOn()) {
        logger.debug("connectionClosed",
         "Got an exception to terminate a ProfileClient: "+p.getName(), e);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.