public class XdEc2Validation
extends java.lang.Object
Constructor and Description |
---|
XdEc2Validation() |
Modifier and Type | Method and Description |
---|---|
void |
assertReceived(java.net.URL url,
java.lang.String streamName,
java.lang.String moduleName)
Retrieves the stream and verifies that the module has infact processed the data.
|
void |
verifyAtLeastOneContainerAvailable(java.util.List<java.net.URL> containers,
int jmxPort)
* Checks to see if at least one server the user specified is available.
|
void |
verifyLogContent(XdEnvironment hosts,
java.net.URL url,
java.lang.String fileName,
java.lang.String data)
checks to see if the content of the data passed in is in the log.
|
void |
verifyTestContent(XdEnvironment hosts,
java.net.URL url,
java.lang.String fileName,
java.lang.String data)
Verifies that the data user gave us is what was stored after the stream has processed the flow.
|
void |
verifyXDAdminReady(java.net.URL adminServer)
Checks to see if the admin server the user specified is available.
|
public void verifyXDAdminReady(java.net.URL adminServer)
adminServer
- public void verifyAtLeastOneContainerAvailable(java.util.List<java.net.URL> containers, int jmxPort) throws java.lang.Exception
containers
- jmxPort
- java.lang.Exception
public void assertReceived(java.net.URL url, java.lang.String streamName, java.lang.String moduleName) throws java.lang.Exception
url
- The server where the stream is deployedstreamName
- The stream to analyze.moduleName
- The name of the modulejava.lang.Exception
public void verifyTestContent(XdEnvironment hosts, java.net.URL url, java.lang.String fileName, java.lang.String data) throws java.io.IOException
hosts
- Helper class for retrieving files.url
- The server that the stream is deployed.fileName
- The file that contains the data to check.data
- The data used to evaluate the results of the stream.java.io.IOException
public void verifyLogContent(XdEnvironment hosts, java.net.URL url, java.lang.String fileName, java.lang.String data) throws java.io.IOException
hosts
- Helper class for retrieving log filesurl
- The URL of the server to where the stream is deployed.fileName
- The name of the log file to inspectdata
- THe expected result.java.io.IOException