org.kaariboga.agents
Class Executer

java.lang.Object
  |
  +--org.kaariboga.core.Kaariboga
        |
        +--org.kaariboga.agents.Executer
All Implemented Interfaces:
KbMessageHandler, java.lang.Runnable, java.io.Serializable

public class Executer
extends Kaariboga

The Executer is able to execute a program on a remote machine. This one only works when the server is started with the -soff option which disables the security manager: java org.kaariboga.server.Boga -soff

See Also:
Serialized Form

Inner classes inherited from class org.kaariboga.core.Kaariboga
Kaariboga.FireEventThread, Kaariboga.FireMessageThread
 
Field Summary
(package private)  java.lang.String command
          The command to be executed.
private  java.lang.Runtime rntime
          Runtime object of the current JVM.
 
Fields inherited from class org.kaariboga.core.Kaariboga
base, destination, kaaribogaListener, messageListener, name
 
Constructor Summary
Executer(java.lang.String name)
          Creates a new executer and sets the command to execute.
 
Method Summary
 void run()
          Executes the given command if the base was started with the security off option (-soff).
 
Methods inherited from class org.kaariboga.core.Kaariboga
addKaaribogaListener, addKaaribogaMessageListener, fireDestroyRequest, fireDispatchRequest, fireKaaribogaMessage, fireSleepRequest, getDestination, getName, handleMessage, onArrival, onAwake, onCreate, onDestroy, onDispatch, onSleep, setBase, toString
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

rntime

private transient java.lang.Runtime rntime
Runtime object of the current JVM. Declared as an object varible to demonstrate the use of transient.

command

java.lang.String command
The command to be executed.
Constructor Detail

Executer

public Executer(java.lang.String name)
Creates a new executer and sets the command to execute. For security reasons it is hard coded as the windows paintbrush program.
Method Detail

run

public void run()
Executes the given command if the base was started with the security off option (-soff).
Overrides:
run in class Kaariboga