Examples of terminate()


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

      ArrayList list = (ArrayList) profilesTable.get(mc);
      if (list != null) {
    for (Iterator i = list.iterator(); i.hasNext(); ) {
        ProfileServer p = (ProfileServer) i.next();
        try {
      p.terminate();
        } catch (Exception e) {
      if (logger.debugOn()) {
          logger.debug("removeProfiles",
            "Got an exception to terminate a ProfileServer: "+p.getName(), e);
      }
View Full Code Here

Examples of com.sun.star.frame.XDesktop.terminate()

        executeMethod("removeEventListener()");

        log.println( "begin dispose" + Thread.currentThread());
        XDesktop oDesk = (XDesktop) tEnv.getObjRelation("Desktop");
        if (oDesk !=null) {
            oDesk.terminate();
        }
        else {
            if (altDispose == null)
                oObj.dispose();       
            else
View Full Code Here

Examples of com.sun.star.frame.XDesktop.terminate()

            }

            msf = null;

            if (desk != null) {
                desk.terminate();

                return true;
            } else {
                return false;
            }
View Full Code Here

Examples of com.sun.star.frame.XDesktop.terminate()

                        dbg("Couldn't close all office windows!");
                    }

                    dbg("Trying to terminate the desktop");

                    desk.terminate();
                    dbg("Desktop terminated");

                    try {
                        final int closeTime = param.getInt(util.PropertyName.OFFICE_CLOSE_TIME_OUT);
                        dbg("the Office has " + closeTime / 1000 + " seconds for closing...");
View Full Code Here

Examples of com.sun.star.frame.XDesktop.terminate()

        try {
            XDesktop desk = null;
            desk = (XDesktop) UnoRuntime.queryInterface(
                    XDesktop.class, xMSF.createInstance(
                    "com.sun.star.frame.Desktop"));
            desk.terminate();
            log.println("Waiting " + iOfficeCloseTime + " milliseconds for the Office to close down");
            try {
                Thread.sleep(iOfficeCloseTime);
            }
            catch(java.lang.InterruptedException e) {}
View Full Code Here

Examples of com.sun.star.frame.XDesktop.terminate()

            failed("Could not create a desktop instance.");
        }
        int step = 0;
        try {
            log.println("Start the termination of the Office.");
            xDesktop.terminate();
            for ( ; step<10000; step++ ) {
                Object o = xMSF.createInstance("com.sun.star.frame.Desktop");
            }
        }
        catch(com.sun.star.lang.DisposedException e) {
View Full Code Here

Examples of com.sun.star.frame.XDesktop.terminate()

            XDesktop desk = null;
            desk = (XDesktop) UnoRuntime.queryInterface(
                    XDesktop.class, xMSF.createInstance(
                    "com.sun.star.frame.Desktop"));
            xMSF = null;
            desk.terminate();
            log.println("Waiting " + iOfficeCloseTime + " milliseconds for the Office to close down");
            try {
                Thread.sleep(iOfficeCloseTime);
            }
            catch(java.lang.InterruptedException e) {}
View Full Code Here

Examples of com.sun.star.frame.XDesktop.terminate()

        disposed = false;

        log.println( "begin dispose" + Thread.currentThread());
        XDesktop oDesk = (XDesktop) tEnv.get("Desktop");
        if (oDesk !=null) {
            oDesk.terminate();
        }
        else {
            if (altDispose == null)
                oObj.dispose();
            else
View Full Code Here

Examples of com.sun.star.frame.XDesktop.terminate()

            XDesktop desk = (XDesktop) UnoRuntime.queryInterface(
                    XDesktop.class, xMSF.createInstance(
                    "com.sun.star.frame.Desktop"));
            xMSF = null;
           
            desk.terminate();
            log.println("Waiting until ProcessHandler loose the office...");
           
        }
        catch (java.lang.Exception e) {
            e.printStackTrace();
View Full Code Here

Examples of com.volantis.mcs.repository.jdbc.InternalJDBCRepository.terminate()

                checkPolicyTypeRow(conn, null, "boolean", 0, 0);
                checkTypesRow(conn, null, 0, 0);
                checkCategoryRow(conn, null, 0, "category");

                connection.disconnect();
                repository.terminate();
            }
        });
    }

    public void testRemoveBoolean() throws Exception {
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.