public class OutputStreamEngine extends Object
Right now it is just rate, but in the future we expect to do data skew as well...
Modifier and Type | Field and Description |
---|---|
String |
streamName |
Constructor and Description |
---|
OutputStreamEngine(OutputStream stats)
Create an engine that can simulate the given stats.
|
Modifier and Type | Method and Description |
---|---|
int |
nextInt(int bound) |
String |
nextKey()
Get the next key to emit.
|
Long |
shouldEmit()
Should we emit or not.
|
public final String streamName
public OutputStreamEngine(OutputStream stats)
stats
- the stats to followCopyright © 2023 The Apache Software Foundation. All rights reserved.