drm.server.NakedNode and
drm.test.TestGUINode.
There are three ways of configuring the nodes: using a configuration
file, from command line, or through setting system properties.
java drm.server.NakedNode /home/garfield/drm/configThe content of the configuration file should conform to the format specified by the java class
java.util.Properties.
The known properties and their description can be found in the
following default configuration file.
The first argument is interpreted as a configuration file name first. If a file with that name could be loaded then it is loaded and the rest of the arguments are interpreted as additional lines from a configuration file. If the file could not be loaded then all arguments (including the first one) are interpreted as configuration file lines. For example:
java drm.server.NakedNode config "port=11111" "runClass=myexp.jar!Launch"would load the given config file, override the port number and run the given application after startup.
java drm.test.TestGUINode "port=11111"simply uses the default values and the port number is set to the given value. We get into trouble if there is a file called "port=11111" but it is not very likely...
java.io.tmpdir
You can set any property in the java command line using the -D
option if no default value
is provided by the local environment or the default is not appropriate:
java -Djava.io.tmpdir="/home/garfield/.drm" drm.server.NakedNode