Examples of Kill()


Examples of com.sun.star.ucb.XSimpleFileAccess.kill()

        try {
       
            Object fileacc = xMsf.createInstance("com.sun.star.comp.ucb.SimpleFileAccess");
            XSimpleFileAccess simpleAccess = (XSimpleFileAccess)
                            UnoRuntime.queryInterface(XSimpleFileAccess.class,fileacc);
            if (simpleAccess.exists(fileURL)) simpleAccess.kill(fileURL);

        } catch (Exception e) {
            System.out.println("Couldn't delete file '" + fileURL + "'");
            e.printStackTrace();
            delete = false;
View Full Code Here

Examples of com.sun.star.ucb.XSimpleFileAccess.kill()

        try {
            Object fileacc = xMsf.createInstance("com.sun.star.comp.ucb.SimpleFileAccess");

            XSimpleFileAccess simpleAccess = (XSimpleFileAccess)
                UnoRuntime.queryInterface(XSimpleFileAccess.class,fileacc);
            if (simpleAccess.exists(newF)) simpleAccess.kill(newF);
            simpleAccess.copy(oldF,newF);
            res = true;
        } catch (com.sun.star.ucb.InteractiveAugmentedIOException e) {
            return false ;
        } catch (com.sun.star.uno.Exception e) {
View Full Code Here

Examples of davaguine.jmac.encoder.IAPECompress.Kill()

            spMACProgressHelper.UpdateProgressComplete();
        } finally {
            if (spioOutput != null)
                spioOutput.close();
            if (spAPECompress != null)
                spAPECompress.Kill();
        }
    }

    public static void CompressFile(String pInputFilename, String pOutputFilename, int nCompressionLevel, ProgressCallback progressor) throws IOException, JMACStoppedByUserException {
        // declare the variables
View Full Code Here

Examples of gnu.hylafax.HylaFAXClient.kill()

        HylaFAXClient client = JHylaFAX.getInstance().getConnection(monitor);
        monitor.work(1);

        monitor.setText(i18n.tr("Removing job"));
        gnu.hylafax.Job editJob = client.getJob(jobID);
        client.kill(editJob);
        monitor.work(1);

        return null;
      }
    };
View Full Code Here

Examples of gri.tasks.AsyncTaskController.kill()

        if (choice == JOptionPane.OK_OPTION) {
          JobEntry [] jobEntries = statusFrame.listJobs();
          for (int i=0; i<jobEntries.length; i++) {
            AsyncTaskController controller = jobEntries[i].getController();
            if (!controller.isComplete())
              controller.kill();
          }
        }
      }

      //free unfreed jobs (if indicated):
View Full Code Here

Examples of helper.ProcessHandler.kill()

                // restart and go on with test!!
                t.printStackTrace((PrintWriter)log);
                failed("Test run '" + (String)props[i].Value +"' could not be executed: Office crashed and is killed!", true);
                xMSF = null;
                ProcessHandler handler = (ProcessHandler)param.get("AppProvider");
                handler.kill();
                try {
                    Thread.sleep(10000);
                }
                catch(java.lang.InterruptedException e) {}
                OfficeProvider op = new OfficeProvider();
View Full Code Here

Examples of hu.u_szeged.nbo.client.model.Model.kill()

      parent = (Problem)model.getParent();
       
      if (model instanceof ResourceAllocation) {
        tree.remove(model);
        parent.removeRAProblem((ResourceAllocation)model);
        model.kill();
        tree.setInput(parent.getParent());
       
        mainWindow.getRAPerspective().clearSourceTables(model.getName());
        mainWindow.getRAPerspective().clearSolutionTables(model.getName());
        mainWindow.getProblemBrowserTree().getTreeViewer().expandAll();   
View Full Code Here

Examples of hudson.Launcher.kill()

                                }
                            }
                        }
                    } finally {
                        try {
                            launcher.kill(Collections.singletonMap(COOKIE_VAR, cookie));
                        } catch (ChannelClosedException x) {
                            // fine, Jenkins was shutting down
                        } catch (RequestAbortedException x) {
                            // slave was exiting; too late to kill subprocesses
                        }
View Full Code Here

Examples of hudson.Proc.kill()

            // run some trivial thing
            System.err.println("Calling task...");
            assertEquals("done", c.getChannel().callAsync(new NoopTask()).get(5 * 60, TimeUnit.SECONDS));
            System.err.println("...done.");
        } finally {
            proc.kill();
        }

        Thread.sleep(500);
        assertTrue(c.isOffline());
    }
View Full Code Here

Examples of jnr.posix.POSIX.kill()

        int pid = RubyNumeric.num2int(args[i]);

        // FIXME: It may be possible to killpg on systems which support it.  POSIX library
        // needs to tell whether a particular method works or not
        if (pid == 0) pid = runtime.getPosix().getpid();
        checkErrno(runtime, posix.kill(processGroupKill ? -pid : pid, signal));
      }
    }
       
        return runtime.newFixnum(args.length - 1);
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.