lhmc.plugins
Class ExternalPlugin

java.lang.Object
  extended by lhmc.plugins.ExternalPlugin
All Implemented Interfaces:
java.lang.Runnable

public class ExternalPlugin
extends java.lang.Object
implements java.lang.Runnable

ExternalPlugin executes a command to run a non-java external plugin.

Version:
0.01 Jul 2007
Author:
Cristina Roura Claver

Method Summary
 java.lang.Process executeCommand()
          Executes the command.
 void run()
          Executes this thread.
 void setCommand(java.lang.String[] command)
          Sets the command string.
 void start()
          Starts the thread calling the run method.
 void stop()
          Stops the thread avoiding deadlock-prone.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

executeCommand

public java.lang.Process executeCommand()
Executes the command.

Returns:
Process the process in execution.

setCommand

public void setCommand(java.lang.String[] command)
Sets the command string.

Parameters:
command - the command string.

run

public void run()
Executes this thread.

Specified by:
run in interface java.lang.Runnable

start

public void start()
Starts the thread calling the run method.


stop

public void stop()
Stops the thread avoiding deadlock-prone.