public class ClientMapper
extends java.lang.Object
| Constructor and Description |
|---|
ClientMapper(java.util.Map threadGroups)
Creates a thread mapper for mapping client records to thread groups.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.util.List<java.lang.String>> |
getMappingAsList(java.util.Map cvmrs)
Returns a list of lists containing the client mapping.
|
java.lang.String |
getMappingAsString(java.util.Map cvmrs)
Prints the client mapping.
|
void |
mapClients(java.util.Map cvmrs)
Maps the client records to the thread groups for this mapper and sets
each client's thread group name to its mapped thread group.
|
public ClientMapper(java.util.Map threadGroups)
threadGroups - The thread groups clients will map to. Maps the name
of a thread group to its HydraThreadGroup
object.public void mapClients(java.util.Map cvmrs)
clientRecords - the client records to map.HydraRuntimeException - if it is impossible to map the clients.java.lang.IllegalArgumentException - if clientRecords is null or empty.public java.lang.String getMappingAsString(java.util.Map cvmrs)
public java.util.List<java.util.List<java.lang.String>> getMappingAsList(java.util.Map cvmrs)
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.