[Esbox-commits] r54 - trunk/org.indt.esbox.core/src/org/indt/esbox/core/scratchbox

raul at garage.maemo.org raul at garage.maemo.org
Fri Oct 5 01:58:56 EEST 2007


Author: raul
Date: 2007-10-05 01:58:56 +0300 (Fri, 05 Oct 2007)
New Revision: 54

Modified:
   trunk/org.indt.esbox.core/src/org/indt/esbox/core/scratchbox/ScratchboxFacade.java
Log:
new scratchbox callback method added.

Modified: trunk/org.indt.esbox.core/src/org/indt/esbox/core/scratchbox/ScratchboxFacade.java
===================================================================
--- trunk/org.indt.esbox.core/src/org/indt/esbox/core/scratchbox/ScratchboxFacade.java	2007-10-04 22:56:48 UTC (rev 53)
+++ trunk/org.indt.esbox.core/src/org/indt/esbox/core/scratchbox/ScratchboxFacade.java	2007-10-04 22:58:56 UTC (rev 54)
@@ -211,23 +211,37 @@
 	/**
 	 * Kill an Scratchbox process.
 	 * 
-	 * @param processPID
-	 *            the PID of the process to be killed.
+	 * @param signal
+	 *            the signal emitted to scratchbox processes.
 	 * @return true, if the is performed successfully.
 	 * @throws ScratchboxException
-	 *             if the process PID does not exist or if some problem related
-	 *             to Scratchbox communication occurs.
+	 *             if some problem related to Scratchbox communication occurs.
 	 */
-	public synchronized boolean killProcess(String processPID)
+	public synchronized boolean killProcess(String signal)
 			throws ScratchboxException {
 		List<String> params = new ArrayList<String>();
-		params.add(processPID);
+		params.add(signal);
 
 		KillallCommand killallCommand = new KillallCommand();
 
 		return (Boolean) killallCommand.performCommand(params);
 	}
+	
+	/**
+	 * Kill an Scratchbox process.
+	 * @return true, if the is performed successfully.
+	 * @throws ScratchboxException
+	 *             if some problem related to Scratchbox communication occurs.
+	 */
+	public synchronized boolean killProcess()
+			throws ScratchboxException {
+		List<String> params = new ArrayList<String>();
 
+		KillallCommand killallCommand = new KillallCommand();
+
+		return (Boolean) killallCommand.performCommand(params);
+	}
+
 	/**
 	 * Return the current version of Scratchbox.
 	 * 



More information about the Esbox-commits mailing list