org.ourgrid.mygrid.ui.command
Class EnvironmentConfigurator

java.lang.Object
  extended by org.ourgrid.mygrid.ui.command.EnvironmentConfigurator
All Implemented Interfaces:
Command

public class EnvironmentConfigurator
extends java.lang.Object
implements Command

This class checks and configures the configuration files directory, i.e. it assures that ".mygrid" is created at /home/user/ and that MG.defaults and MG.properties are available there.


Constructor Summary
EnvironmentConfigurator()
           
 
Method Summary
 boolean configureEnvironment()
          Determines if this command needs to configure environment before being executed
 int run(java.lang.String[] params)
          Builds correctly the MyGrid configuation directory, cheking if it already exists and if the necessary contents are into this.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnvironmentConfigurator

public EnvironmentConfigurator()
Method Detail

run

public int run(java.lang.String[] params)
Builds correctly the MyGrid configuation directory, cheking if it already exists and if the necessary contents are into this.

Specified by:
run in interface Command

configureEnvironment

public boolean configureEnvironment()
Description copied from interface: Command
Determines if this command needs to configure environment before being executed

Specified by:
configureEnvironment in interface Command
Returns:
true if this command needs to configure environment before. False, otherwise.
See Also:
Command.configureEnvironment()