Kaydet (Commit) 37d36d6c authored tarafından Noel Grandin's avatar Noel Grandin

java: APP_KILL_COMMAND is unused

Change-Id: I4bc4208a80a41a43f9a1145a2e674f37d1333424
üst 09330056
...@@ -497,23 +497,6 @@ public class OfficeProvider implements AppProvider ...@@ -497,23 +497,6 @@ public class OfficeProvider implements AppProvider
} }
} }
final String AppKillCommand = (String) param.get(util.PropertyName.APP_KILL_COMMAND);
if (AppKillCommand != null)
{
String sAppKillCommand = StringHelper.removeSurroundQuoteIfExists(AppKillCommand);
final StringTokenizer aKillCommandToken = new StringTokenizer(sAppKillCommand, ";");
while (aKillCommandToken.hasMoreTokens())
{
final String sKillCommand = aKillCommandToken.nextToken();
dbg("User defined an application to destroy the started process. Trying to execute: " + sKillCommand);
final ProcessHandler pHdl = new ProcessHandler(sKillCommand, 1000); // 3000 seems to be too long
pHdl.runCommand();
pHdl.kill();
}
}
final ProcessHandler ph = (ProcessHandler) param.get("AppProvider"); final ProcessHandler ph = (ProcessHandler) param.get("AppProvider");
if (ph != null) if (ph != null)
......
...@@ -78,19 +78,6 @@ public class OfficeWatcher extends Thread implements share.Watcher { ...@@ -78,19 +78,6 @@ public class OfficeWatcher extends Thread implements share.Watcher {
if (ph != null) { if (ph != null) {
dbg("the Office is idle for " + timeOut / 1000 + dbg("the Office is idle for " + timeOut / 1000 +
" seconds, it probably hangs and is killed NOW."); " seconds, it probably hangs and is killed NOW.");
final String AppKillCommand = (String) params.get(util.PropertyName.APP_KILL_COMMAND);
if (AppKillCommand != null) {
final StringTokenizer aKillCommandToken = new StringTokenizer(AppKillCommand, ";");
while (aKillCommandToken.hasMoreTokens()) {
final String sKillCommand = aKillCommandToken.nextToken();
dbg("User defined an application to destroy the started process.");
dbg("Trying to execute: " + sKillCommand);
final ProcessHandler pHdl = new ProcessHandler(sKillCommand);
pHdl.executeSynchronously();
}
}
ph.kill(); ph.kill();
} else { } else {
dbg("reaeched timeout but ProcessHandler is NULL"); dbg("reaeched timeout but ProcessHandler is NULL");
......
...@@ -28,10 +28,6 @@ public interface PropertyName { ...@@ -28,10 +28,6 @@ public interface PropertyName {
* command to an Application to be started. * command to an Application to be started.
*/ */
String APP_EXECUTION_COMMAND = "AppExecutionCommand"; String APP_EXECUTION_COMMAND = "AppExecutionCommand";
/**
* parameter name: "AppKillCommand"
*/
String APP_KILL_COMMAND = "AppKillCommand";
/** /**
* parameter name: "ConnectionString" * parameter name: "ConnectionString"
*/ */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment