public class TrafficMonitorClient
extends java.lang.Object
Constructor and Description |
---|
TrafficMonitorClient(java.lang.String scheme,
java.lang.String host,
java.lang.String port,
java.lang.String apiServerId,
java.lang.String username,
java.lang.String password)
This class uses Traffic Monitor to check URL calls to an API Server.
|
Modifier and Type | Method and Description |
---|---|
void |
assertFilterFailed(java.lang.String correlationId,
java.lang.String... filterNames)
Asserts if N Filters Failed
|
void |
assertFilterOfTypeDidNotExecute(java.lang.String correlationId,
java.lang.String filterType)
Checks if a fault filter executed.
|
void |
assertFilterPassed(java.lang.String correlationId,
java.lang.String... filterNames)
Asserts if N Filters passed
|
boolean |
assertNFiltersFailed(java.lang.String correlationId,
int count)
Tests the number of failed filters.
|
boolean |
assertNFiltersPassed(java.lang.String correlationId,
int count)
Tests the number of passed filters.
|
public TrafficMonitorClient(java.lang.String scheme, java.lang.String host, java.lang.String port, java.lang.String apiServerId, java.lang.String username, java.lang.String password) throws NodeManagerAPIException
scheme
- The scheme of the connection - either 'http' or 'https'host
- The host to connect toport
- The port to connect toapiServerId
- The ID of a server instanceusername
- The administrator usernamepassword
- the administrator passwordNodeManagerAPIException
- If the Node Manager cannot be foundpublic void assertFilterPassed(java.lang.String correlationId, java.lang.String... filterNames)
correlationId
- The ID for a message transaction.filterNames
- A list of Filters to be checked for success.public void assertFilterFailed(java.lang.String correlationId, java.lang.String... filterNames)
correlationId
- The ID for a message transaction.filterNames
- filter namespublic void assertFilterOfTypeDidNotExecute(java.lang.String correlationId, java.lang.String filterType)
correlationId
- The ID for a message transaction.filterType
- The Filter type to search for.public boolean assertNFiltersPassed(java.lang.String correlationId, int count)
correlationId
- The ID for a message transaction.count
- number of filterspublic boolean assertNFiltersFailed(java.lang.String correlationId, int count)
correlationId
- The ID for a message transaction.count
- number of filters
This documentation and all its contents and graphics, copyright © 1999 - 2011 Vordel