public class PubSubScenario
extends java.lang.Object
PubSubInfrastructureSpec,
and in addition offers setting (or replacing) host names where to run containers,
which typically cannot be specified statically in the XML if a test
should run on different machines.| Constructor and Description |
|---|
PubSubScenario(java.util.logging.Logger logger,
java.io.File xmlFile,
boolean validateXml)
Loads the test spec (castor classes) from an xml file.
|
PubSubScenario(java.util.logging.Logger logger,
PubSubInfrastructureSpec spec) |
| Modifier and Type | Method and Description |
|---|---|
PubSubInfrastructureSpec |
getSpec() |
void |
setHostNames(java.util.Map<java.lang.String,java.lang.String> containerHostMapping)
Sets container host names.
|
void |
setHostNames(java.lang.String containerHostMapping)
Sets container host names.
|
public PubSubScenario(java.util.logging.Logger logger,
java.io.File xmlFile,
boolean validateXml)
throws java.io.FileNotFoundException,
java.io.IOException,
MarshalException,
ValidationException
java.io.FileNotFoundExceptionjava.io.IOExceptionMarshalExceptionValidationExceptionpublic PubSubScenario(java.util.logging.Logger logger,
PubSubInfrastructureSpec spec)
public void setHostNames(java.lang.String containerHostMapping)
containerHostMapping - Container-host mapping in the form container1=host1:container2=host2public void setHostNames(java.util.Map<java.lang.String,java.lang.String> containerHostMapping)
containerHostMapping - key = container name, value = host name.public PubSubInfrastructureSpec getSpec()