Examples of terminate()


Examples of net.jini.lookup.ServiceDiscoveryManager.terminate()

      } else {
        throw
          new RMServerException("TransactionManager not found");
      }
      discovery.terminate();
      serviceDiscoveryManager.terminate();
      System.out.println(" ready.");
    } catch(Exception e) {
      throw new RMServerException(e.getMessage());
    }
  }
View Full Code Here

Examples of net.sourceforge.cruisecontrol.distributed.BuildAgent.terminate()

                    agentRefound.isBusy());

        } finally {
            // terminate JoinManager in BuildAgent
            agentAvailable.terminate();
            agentAvailable2.terminate();
        }
    }

    public void testPickAgentAfterReleased() throws Exception {
        // register agent
View Full Code Here

Examples of net.thucydides.core.screenshots.ScreenshotProcessor.terminate()

    waitUntilFileIsWritten(screenshotFile);

        ResizableImage image = ResizableImage.loadFrom(screenshotFile);

        screenshotProcessor.terminate();
        waitUntilFileIsWritten(screenshotFile);
        assertThat(image.getWitdh(), is(greaterThan(350))); // In Windows the actual dimensions may be are slightly less
    }

    @Test
View Full Code Here

Examples of net.thucydides.core.screenshots.SingleThreadScreenshotProcessor.terminate()

    waitUntilFileIsWritten(screenshotFile);

        ResizableImage image = ResizableImage.loadFrom(screenshotFile);

        screenshotProcessor.terminate();
        waitUntilFileIsWritten(screenshotFile);
        assertThat(image.getWitdh(), is(greaterThan(350))); // In Windows the actual dimensions may be are slightly less
    }

    @Test
View Full Code Here

Examples of net.yacy.cora.protocol.Scanner.terminate()

                if (post.get("scanftp", "").equals("on")) scanner.addFTP(bigrange);
                if (post.get("scanhttp", "").equals("on")) scanner.addHTTP(bigrange);
                if (post.get("scanhttps", "").equals("on")) scanner.addHTTPS(bigrange);
                if (post.get("scansmb", "").equals("on")) scanner.addSMB(bigrange);
                scanner.start();
                scanner.terminate();
                if ("on".equals(post.get("accumulatescancache", "")) && !"scheduler".equals(post.get("rescan", ""))) {
                    Scanner.scancacheExtend(scanner, validTime);
                } else {
                    Scanner.scancacheReplace(scanner, validTime);
                }
View Full Code Here

Examples of net.yacy.search.Switchboard.terminate()

                    } else if ((downloaded == null) || (!downloaded.exists()) || (downloaded.length() == 0)) {
                        sb.getLog().logInfo("AUTO-UPDATE: omitting update because download failed (file cannot be found, is too small or signature was bad)");
                        prop.put("candeploy_autoUpdate", "4");
                    } else {
                        yacyRelease.deployRelease(downloaded);
                        sb.terminate(10, "manual release update to " + downloaded.getName());
                        sb.getLog().logInfo("AUTO-UPDATE: deploy and restart initiated");
                        prop.put("candeploy_autoUpdate", "1");
                    }
                }
            }
View Full Code Here

Examples of nu.fw.jeti.plugins.jingle.jingle.JingleSession.terminate()

      {
        JingleSession session = sessions.get(jidStatus.getCompleteJID());
         if (session != null) {
          try
          {
            session.terminate();
            System.out.println("session removing because not yet removed");
           
          } catch (XMPPException e)
          {
            // TODO Auto-generated catch block
View Full Code Here

Examples of org.apache.axis2.context.ConfigurationContext.terminate()

        System.out.println("Sending Event : \n" + payload.toString());
        serviceClient.fireAndForget(payload);
        System.out.println("Event sent to topic " + topic);
        Thread.sleep(1000);
        if (configContext != null) {
            configContext.terminate();
        }
    }
}
View Full Code Here

Examples of org.apache.axis2.context.ConfigurationContext.terminate()

    } catch (InterruptedException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    }
   
    configContext.terminate();
    serviceClient.cleanup();
  }
 
  private static OMElement getPingOMBlock(String text) {
    OMFactory fac = OMAbstractFactory.getOMFactory();
View Full Code Here

Examples of org.apache.axis2.context.ConfigurationContext.terminate()

            Thread.sleep(1000);
        }
       
        Thread.sleep(4000);
       
        configContext.terminate();
        serviceClient.cleanup();
       
  }

  private static OMElement getEchoOMBlock(String text, String sequenceKey) {
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.