@Command(name="generate", description="Generate and upload test data in TStore") public class GenerateLoad extends TStoreCmdBase
Modifier and Type | Field and Description |
---|---|
protected BasicTSClient |
_client |
protected BasicTSKey |
_prefix |
protected long |
_startTime |
List<String> |
arguments |
int |
requestCount |
long |
requestSize |
protected static long |
THREAD_STARTUP_DELAY_MSECS
Number of milliseconds between creating new threads during startup
|
int |
threadCount |
_canPrintVerbose, configFile, isJSON, isTextual, KEY_CONVERTER, mapper, servers, SLASH_PATTERN, verbose
Constructor and Description |
---|
GenerateLoad() |
Modifier and Type | Method and Description |
---|---|
protected void |
_logPut(com.fasterxml.clustermate.client.operation.PutOperationResult result,
String threadId,
int msecs,
String key) |
protected boolean |
_performOperation(String threadId,
com.fasterxml.transistore.cmd.GenerateLoad.ContentGenerator gen) |
protected BasicTSClientConfig |
getClientConfig() |
void |
run() |
_pathFrom, appendPath, bootstrapClient, contentKey, contentKey, contentKey, error, getServiceConfig, jsonGenerator, jsonWriter, pathFromFile, terminateWith, warn
protected static final long THREAD_STARTUP_DELAY_MSECS
public int threadCount
public int requestCount
public long requestSize
protected BasicTSClient _client
protected BasicTSKey _prefix
protected long _startTime
protected BasicTSClientConfig getClientConfig()
getClientConfig
in class TStoreCmdBase
public void run()
protected boolean _performOperation(String threadId, com.fasterxml.transistore.cmd.GenerateLoad.ContentGenerator gen) throws Exception
Exception
Copyright © 2013 FasterXML. All Rights Reserved.