public abstract class TestPlanReader
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ARGUMENT_PROP |
static java.lang.String |
BLADE_PROP |
static java.lang.String |
COMMENT_PROP |
static java.lang.String |
FILE_EXT |
static java.lang.String |
ID_PROP |
static java.lang.String |
INJECTOR_PROP |
static java.lang.String |
PROBE_PROP |
static java.lang.String |
SERVER_PROP |
Constructor and Description |
---|
TestPlanReader() |
Modifier and Type | Method and Description |
---|---|
static java.util.Set<java.lang.String> |
getServers(java.util.Collection<ClifDeployDefinition> definitions)
Get the set of names of CLIF servers involved in the provided collection
of deployment definitions.
|
static java.util.Set<java.lang.String> |
getServers(java.io.InputStream in)
Reads a test plan definition from the provided input stream,
and returns the set of names of CLIF servers involved in this
test plan.
|
static void |
main(java.lang.String[] args)
Simple command that prints the names of all CLIF servers involved in some test plans
Names are printed only once whatever the number of occurrences in the test plans.
|
static java.util.Map<java.lang.String,ClifDeployDefinition> |
readFromProp(java.io.InputStream in)
Reads a CLIF test plan definition from the provided input stream,
and returns a test plan object, i.e.
|
public static final java.lang.String BLADE_PROP
public static final java.lang.String SERVER_PROP
public static final java.lang.String INJECTOR_PROP
public static final java.lang.String PROBE_PROP
public static final java.lang.String ARGUMENT_PROP
public static final java.lang.String COMMENT_PROP
public static final java.lang.String ID_PROP
public static final java.lang.String FILE_EXT
public static void main(java.lang.String[] args) throws java.io.IOException
args
- the names of the test plan filesjava.io.IOException
public static java.util.Set<java.lang.String> getServers(java.io.InputStream in) throws java.io.IOException
in
- the input stream to read the test plan fromjava.io.IOException
public static java.util.Set<java.lang.String> getServers(java.util.Collection<ClifDeployDefinition> definitions)
definitions
- the collection of deployment definitions to analyzepublic static java.util.Map<java.lang.String,ClifDeployDefinition> readFromProp(java.io.InputStream in) throws java.io.IOException
in
- the input stream to read the test plan definition fromjava.io.IOException
- an error occurred while reading the input stream