|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcdx.scorebot.net.ConfigurationTemplate
public abstract class ConfigurationTemplate
This contains only the IP addresses and ports of the services which are to be tested from a template NetworkTestPackage. It allows for the easy re-use and mass-modification of NetworkTestPackages.
Field Summary | |
---|---|
protected NetworkTestPackage |
ntp
the NetworkTestPackage this holds |
protected java.lang.String |
pathToNTP
the complete relative filename to the file which contains the NetworkTestPackage template which this configures |
protected java.util.Vector<TestSuiteSkeleton> |
suiteInfo
the names of the suites this provides IPs and Ports for |
Constructor Summary | |
---|---|
|
ConfigurationTemplate(java.lang.String fn)
create a Skeleton NetworkTestPackage from the NetworkTestPackage in the specified file |
protected |
ConfigurationTemplate(java.lang.String fn,
java.util.Vector<TestSuiteSkeleton> suiteInfo,
NetworkTestPackage ntp)
Create a Skeleton NetworkTestPackage from the NetworkTestPackage in the specified information. |
Method Summary | |
---|---|
void |
addMissingSuites()
refreshes suite names with any which are missing |
boolean |
equals(ConfigurationTemplate c)
|
protected void |
gentleLoadNTP(java.lang.String fn)
Loads the NetworkTestPackage from the specified filename and sets its path to the path it was loaded from. |
java.lang.String |
getPathToNTP()
gets the path to the NetworkTestPackage this is based on |
java.util.Vector<TestSuiteSkeleton> |
getSuiteInfo()
gets the information on the suites this skeleton configures |
NetworkTestPackage |
getUnconfiguredNTP()
Returns the template NetworkTestPackage |
protected int |
indexOfSkel(java.lang.String suiteName)
gets the index of the skeleton which configures the specified suite name, or -1 if no such skeleton exists |
protected void |
loadNTP(java.lang.String fn)
Loads the NetworkTestPackage from the specified filename and sets its path to the path it was loaded from. |
void |
refreshSuites()
refreshes whether or not suites are valid |
void |
setPathToNTP(java.lang.String fn)
sets the path to the NetworkTestPackage this is based on (and refreshes names based on whether or not they are valid now) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String pathToNTP
protected java.util.Vector<TestSuiteSkeleton> suiteInfo
protected transient NetworkTestPackage ntp
Constructor Detail |
---|
public ConfigurationTemplate(java.lang.String fn) throws com.thoughtworks.xstream.core.BaseException, java.io.FileNotFoundException
fn
- where to load the NetworkTestPackage from (best if this is a relative path)
com.thoughtworks.xstream.core.BaseException
- if the object cannot be deserialized
java.io.FileNotFoundException
- occurs if the file is not foundprotected ConfigurationTemplate(java.lang.String fn, java.util.Vector<TestSuiteSkeleton> suiteInfo, NetworkTestPackage ntp)
fn
- where to load the NetworkTestPackage from (best if this is a relative path)suiteInfo
- the skeleton suite infontp
- the configuration to run withMethod Detail |
---|
protected final void loadNTP(java.lang.String fn) throws com.thoughtworks.xstream.core.BaseException, java.io.FileNotFoundException
fn
- the filename to load the NetworkTestPackage from
com.thoughtworks.xstream.core.BaseException
- if the object cannot be deserialized
java.io.FileNotFoundException
- occurs if the file is not foundprotected final void gentleLoadNTP(java.lang.String fn)
fn
- the filename to load the NetworkTestPackage frompublic boolean equals(ConfigurationTemplate c)
public final void addMissingSuites()
public final NetworkTestPackage getUnconfiguredNTP()
public final void refreshSuites()
protected int indexOfSkel(java.lang.String suiteName)
public final java.lang.String getPathToNTP()
public final void setPathToNTP(java.lang.String fn) throws com.thoughtworks.xstream.core.BaseException, java.io.FileNotFoundException
com.thoughtworks.xstream.core.BaseException
- if the object cannot be deserialized
java.io.FileNotFoundException
- occurs if the file is not foundpublic final java.util.Vector<TestSuiteSkeleton> getSuiteInfo()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |