|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttools.Parameters
public class Parameters
Represents default parameters for various situations.
Field Summary | |
---|---|
private double |
bwLimitForSingleNodeGroup
The minimum required bandwidth to the nodes of a group to form a group with them |
private java.lang.String |
defaultCopyDir
proposed directory when copying files to nodes. |
private java.lang.String |
defaultExecCmd
proposed command to execute on the nodes. |
private java.lang.String |
defaultLocalDir
proposed directory when copying files from nodes. |
private java.lang.String |
defaultMap
Defines the default map on program start |
private java.lang.String |
defaultMountDir
Default directory to mount nodes to |
private java.lang.String |
defaultRemoteDir
proposed remote directory when copying files to/from nodes. |
static Parameters |
INSTANCE
Singleton instance |
private int |
orbPort
The port of the ORB daemon on the PlanetLab nodes. |
private static java.lang.String |
parametersFile
The file where the above parameters are saved. |
private boolean |
showstartDialog
Show help dialog at start? |
private int |
sshPort
The port on which the launched sshd of the PlanetLab nodes should listen for incoming connections. |
private java.lang.String |
testFilePath
This path defines the file which is transferred to a node to measure the bandwidth to this node. |
private int |
testFileSize
the size of the testFile in Bytes |
Constructor Summary | |
---|---|
Parameters()
construct a new Parameters instance |
Method Summary | |
---|---|
double |
getBwLimitForSingleNodeGroup()
|
java.lang.String |
getDefaultCopyDir()
|
java.lang.String |
getDefaultExecCmd()
|
java.lang.String |
getDefaultLocalDir()
|
java.lang.String |
getDefaultMap()
|
java.lang.String |
getDefaultMountDir()
|
java.lang.String |
getDefaultRemoteDir()
|
static Parameters |
getInstance()
This method is used whenever a parameter is needed e.g. |
int |
getOrbPort()
Get the ORB-Port number |
static java.lang.String |
getParametersFile()
|
int |
getSshPort()
Get the SSH-Port number |
java.lang.String |
getTestFilePath()
|
int |
getTestFileSize()
|
boolean |
isShowstartDialog()
|
static boolean |
loadParameters()
Loads the parameters from the config file |
static boolean |
saveParameters()
Saves the parameters to a config file |
void |
setBwLimitForSingleNodeGroup(double bwLimitForSingleNodeGroup)
|
void |
setDefaultCopyDir(java.lang.String defaultCopyDir)
|
void |
setDefaultExecCmd(java.lang.String defaultExecCmd)
|
void |
setDefaultLocalDir(java.lang.String defaultLocalDir)
|
void |
setDefaultMap(java.lang.String defaultMap)
|
void |
setDefaultMountDir(java.lang.String defaultMountDir)
|
void |
setDefaultRemoteDir(java.lang.String defaultRemoteDir)
|
void |
setOrbPort(int orbPort)
Set the ORB-Port number |
static void |
setParametersFile(java.lang.String parametersFile)
|
void |
setShowstartDialog(boolean showstartDialog)
|
void |
setSshPort(int sshPort)
Set the SSH-Port number |
void |
setTestFilePath(java.lang.String testFilePath)
|
void |
setTestFileSize(int testFileSize)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private int orbPort
private int sshPort
private java.lang.String testFilePath
private int testFileSize
private double bwLimitForSingleNodeGroup
private boolean showstartDialog
private java.lang.String defaultCopyDir
private java.lang.String defaultLocalDir
private java.lang.String defaultRemoteDir
private java.lang.String defaultMountDir
private java.lang.String defaultExecCmd
private java.lang.String defaultMap
private static java.lang.String parametersFile
public static Parameters INSTANCE
Constructor Detail |
---|
public Parameters()
Method Detail |
---|
public static Parameters getInstance()
public int getOrbPort()
public void setOrbPort(int orbPort)
orbPort
- - the port numberpublic int getSshPort()
public void setSshPort(int sshPort)
sshPort
- public java.lang.String getTestFilePath()
public void setTestFilePath(java.lang.String testFilePath)
public int getTestFileSize()
public void setTestFileSize(int testFileSize)
testFileSize
- the testFileSize to setpublic double getBwLimitForSingleNodeGroup()
public void setBwLimitForSingleNodeGroup(double bwLimitForSingleNodeGroup)
bwLimitForSingleNodeGroup
- the bwLimitForSingleNodeGroup to setpublic boolean isShowstartDialog()
public void setShowstartDialog(boolean showstartDialog)
showstartDialog
- the showstartDialog to setpublic java.lang.String getDefaultCopyDir()
public void setDefaultCopyDir(java.lang.String defaultCopyDir)
defaultCopyDir
- the defaultCopyDir to setpublic java.lang.String getDefaultLocalDir()
public void setDefaultLocalDir(java.lang.String defaultLocalDir)
defaultLocalDir
- the defaultLocalDir to setpublic java.lang.String getDefaultRemoteDir()
public void setDefaultRemoteDir(java.lang.String defaultRemoteDir)
defaultRemoteDir
- the defaultRemoteDir to setpublic java.lang.String getDefaultExecCmd()
public void setDefaultExecCmd(java.lang.String defaultExecCmd)
defaultExecCmd
- the defaultExecCmd to setpublic static java.lang.String getParametersFile()
public static void setParametersFile(java.lang.String parametersFile)
parametersFile
- the parametersFile to setpublic static boolean saveParameters()
public static boolean loadParameters()
public java.lang.String getDefaultMap()
public void setDefaultMap(java.lang.String defaultMap)
defaultMap
- the defaultMap to setpublic java.lang.String getDefaultMountDir()
public void setDefaultMountDir(java.lang.String defaultMountDir)
defaultMountDir
- the defaultMountDir to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |