dk.netarkivet.deploy
Class Parameters

java.lang.Object
  extended by dk.netarkivet.deploy.Parameters

public class Parameters
extends java.lang.Object

The Parameters class contains the machine parameters. These are the user name, the install directory and the parameters for running the Java applications. These are inherited from the parent entity (e.g. the machine inherits the Parameters from the PhysicalLocation), then overwrites its own specified variables.


Constructor Summary
Parameters(Parameters parent)
          Constructor.
Parameters(XmlStructure root)
          Constructor.
 
Method Summary
 java.util.List<org.dom4j.Element> getClassPaths()
          For retrieving the list of class paths.
 java.lang.String getDatabaseDirValue()
          For retrieving the directory for the database.
 java.lang.String getInstallDirValue()
          For retrieving the install directory parameter.
 org.dom4j.Element getMachineUserName()
          For retrieving the machine user name parameter.
 void newParameters(org.dom4j.Element root)
          Overwrites the inherited parameters, if the root has new specified.
 java.lang.String writeJavaOptions()
          Makes all the java options into a single String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Parameters

public Parameters(XmlStructure root)
Constructor. Retrieves the parameters from the XML tree.

Parameters:
root - The root of the branch for the parent instance. This retrieves the variables in the branch.

Parameters

public Parameters(Parameters parent)
Constructor. Inherits the parameters of the parent instance.

Parameters:
parent - The parameters of the parent instance.
Method Detail

newParameters

public void newParameters(org.dom4j.Element root)
Overwrites the inherited parameters, if the root has new specified.

Parameters:
root - The root of the current instance.

writeJavaOptions

public java.lang.String writeJavaOptions()
Makes all the java options into a single String.

Returns:
All the java options.

getInstallDirValue

public java.lang.String getInstallDirValue()
For retrieving the install directory parameter.

Returns:
The install directory element.

getDatabaseDirValue

public java.lang.String getDatabaseDirValue()
For retrieving the directory for the database.

Returns:
The database directory element.

getMachineUserName

public org.dom4j.Element getMachineUserName()
For retrieving the machine user name parameter.

Returns:
The machine user name.

getClassPaths

public java.util.List<org.dom4j.Element> getClassPaths()
For retrieving the list of class paths.

Returns:
The list of class paths.