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