Package dk.netarkivet.deploy
Class Parameters
- java.lang.Object
-
- dk.netarkivet.deploy.Parameters
-
public class Parameters extends 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
Constructors Constructor Description Parameters(Parameters parent)
Constructor.Parameters(XmlStructure root)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getArchiveDatabaseDirValue()
For retrieving the directory for the archive database.List<org.dom4j.Element>
getClassPaths()
For retrieving the list of class paths.String
getHarvestDatabaseDirValue()
For retrieving the directory for the database.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.String
writeJavaOptions()
Makes all the java options into a single String.
-
-
-
Constructor Detail
-
Parameters
public Parameters(XmlStructure root) throws ArgumentNotValid
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.- Throws:
ArgumentNotValid
- If the root is null.
-
Parameters
public Parameters(Parameters parent) throws ArgumentNotValid
Constructor. Inherits the parameters of the parent instance.- Parameters:
parent
- The parameters of the parent instance.- Throws:
ArgumentNotValid
- If the parent is null.
-
-
Method Detail
-
newParameters
public void newParameters(org.dom4j.Element root) throws ArgumentNotValid
Overwrites the inherited parameters, if the root has new specified.- Parameters:
root
- The root of the current instance.- Throws:
ArgumentNotValid
- If the root is null.
-
writeJavaOptions
public String writeJavaOptions()
Makes all the java options into a single String.- Returns:
- All the java options.
-
getInstallDirValue
public String getInstallDirValue()
For retrieving the install directory parameter.- Returns:
- The install directory element, or empty string if install dir is null.
-
getHarvestDatabaseDirValue
public String getHarvestDatabaseDirValue()
For retrieving the directory for the database.- Returns:
- The database directory element, or empty string if install dir is null.
-
getArchiveDatabaseDirValue
public String getArchiveDatabaseDirValue()
For retrieving the directory for the archive database.- Returns:
- The archive database install directory element, or empty string if install dir is null.
-
getMachineUserName
public org.dom4j.Element getMachineUserName()
For retrieving the machine user name parameter.- Returns:
- The machine user name.
-
getClassPaths
public List<org.dom4j.Element> getClassPaths()
For retrieving the list of class paths.- Returns:
- The list of class paths.
-
-