public class ConnectorSimulatorFile extends ConnectorSimulator
| Modifier and Type | Field and Description |
|---|---|
protected double |
accelerate |
protected java.util.function.Function<java.lang.String,java.time.Instant> |
converter |
protected java.lang.String |
path |
protected java.lang.String |
timestampColumn |
server| Constructor and Description |
|---|
ConnectorSimulatorFile(Server server,
org.conceptoriented.bistro.core.Table table,
java.lang.String path,
java.lang.String timestampColumn,
double accelerate) |
| Modifier and Type | Method and Description |
|---|---|
protected java.time.Instant |
convert(java.lang.String time) |
protected void |
load(java.lang.String path,
java.lang.String timestampColumn) |
void |
setConverter(java.util.function.Function<java.lang.String,java.time.Instant> converter) |
void |
start() |
void |
stop() |
runaddAction, addActions, getActions, getServer, setServerprotected java.lang.String path
protected java.lang.String timestampColumn
protected double accelerate
protected java.util.function.Function<java.lang.String,java.time.Instant> converter
public ConnectorSimulatorFile(Server server, org.conceptoriented.bistro.core.Table table, java.lang.String path, java.lang.String timestampColumn, double accelerate) throws java.io.FileNotFoundException
java.io.FileNotFoundExceptionpublic void setConverter(java.util.function.Function<java.lang.String,java.time.Instant> converter)
protected java.time.Instant convert(java.lang.String time)
public void start()
throws org.conceptoriented.bistro.core.BistroError
start in interface Connectorstart in class ConnectorSimulatororg.conceptoriented.bistro.core.BistroErrorpublic void stop()
throws org.conceptoriented.bistro.core.BistroError
stop in interface Connectorstop in class ConnectorSimulatororg.conceptoriented.bistro.core.BistroErrorprotected void load(java.lang.String path,
java.lang.String timestampColumn)
throws java.io.FileNotFoundException
java.io.FileNotFoundException