public class OutputStreamEngine extends Object
Provides an API to simulate the output of a stream.
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)
Create an engine that can simulate the given stats.
stats
- the stats to followCopyright © 2022 The Apache Software Foundation. All rights reserved.