public abstract class BaseLoadEventGenerator extends Object implements LoadEventGenerator<TenantOperationInfo>
| Modifier and Type | Class and Description |
|---|---|
static class |
BaseLoadEventGenerator.TenantOperationEvent |
| Modifier and Type | Field and Description |
|---|---|
protected static int |
DEFAULT_BUFFER_SIZE |
protected static int |
DEFAULT_NUM_HANDLER_PER_SCENARIO |
protected com.lmax.disruptor.dsl.Disruptor<BaseLoadEventGenerator.TenantOperationEvent> |
disruptor |
protected com.lmax.disruptor.ExceptionHandler |
exceptionHandler |
protected List<PherfWorkHandler> |
handlers |
protected static org.slf4j.Logger |
LOGGER |
protected TenantOperationFactory |
operationFactory |
protected Properties |
properties |
| Constructor and Description |
|---|
BaseLoadEventGenerator(PhoenixUtil phoenixUtil,
DataModel model,
Scenario scenario,
List<PherfWorkHandler> workers,
com.lmax.disruptor.ExceptionHandler exceptionHandler,
Properties properties) |
BaseLoadEventGenerator(PhoenixUtil phoenixUtil,
DataModel model,
Scenario scenario,
List<PherfWorkHandler> workers,
Properties properties) |
BaseLoadEventGenerator(PhoenixUtil phoenixUtil,
DataModel model,
Scenario scenario,
Properties properties) |
| Modifier and Type | Method and Description |
|---|---|
DataModel |
getModel() |
TenantOperationFactory |
getOperationFactory() |
PhoenixUtil |
getPhoenixUtil() |
Properties |
getProperties() |
Scenario |
getScenario() |
List<PherfWorkHandler> |
getWorkHandlers(Properties properties) |
abstract TenantOperationInfo |
next() |
void |
start()
Initializes and readies the generator for queue based workloads
|
void |
stop()
Stop the generator and waits for the queues to drain.
|
protected static final int DEFAULT_NUM_HANDLER_PER_SCENARIO
protected static final int DEFAULT_BUFFER_SIZE
protected static final org.slf4j.Logger LOGGER
protected com.lmax.disruptor.dsl.Disruptor<BaseLoadEventGenerator.TenantOperationEvent> disruptor
protected List<PherfWorkHandler> handlers
protected final Properties properties
protected final TenantOperationFactory operationFactory
protected final com.lmax.disruptor.ExceptionHandler exceptionHandler
public BaseLoadEventGenerator(PhoenixUtil phoenixUtil, DataModel model, Scenario scenario, List<PherfWorkHandler> workers, Properties properties)
public BaseLoadEventGenerator(PhoenixUtil phoenixUtil, DataModel model, Scenario scenario, Properties properties)
public BaseLoadEventGenerator(PhoenixUtil phoenixUtil, DataModel model, Scenario scenario, List<PherfWorkHandler> workers, com.lmax.disruptor.ExceptionHandler exceptionHandler, Properties properties)
public PhoenixUtil getPhoenixUtil()
getPhoenixUtil in interface LoadEventGenerator<TenantOperationInfo>public Scenario getScenario()
getScenario in interface LoadEventGenerator<TenantOperationInfo>public DataModel getModel()
getModel in interface LoadEventGenerator<TenantOperationInfo>public Properties getProperties()
getProperties in interface LoadEventGenerator<TenantOperationInfo>public TenantOperationFactory getOperationFactory()
getOperationFactory in interface LoadEventGenerator<TenantOperationInfo>public void start()
throws Exception
LoadEventGeneratorstart in interface LoadEventGenerator<TenantOperationInfo>Exceptionpublic void stop()
throws Exception
LoadEventGeneratorstop in interface LoadEventGenerator<TenantOperationInfo>Exceptionpublic List<PherfWorkHandler> getWorkHandlers(Properties properties)
getWorkHandlers in interface LoadEventGenerator<TenantOperationInfo>public abstract TenantOperationInfo next()
next in interface LoadEventGenerator<TenantOperationInfo>Copyright © 2023 Apache Software Foundation. All rights reserved.