diff options
| author | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2018-02-27 10:17:46 +0100 |
|---|---|---|
| committer | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2018-04-22 22:08:11 +0200 |
| commit | 2c980f4627309b55a160dbe7fc17156201d9dde4 (patch) | |
| tree | e7fef0c75acc1753ac1ac55736cff926b3e16182 /opendc-model-odc/setup/src/main/kotlin/com | |
| parent | 8bc180adfcbde4cd977474174b846b2fa9dfec5b (diff) | |
feat(#12): Allow closing of instrument streams
This change in Instrumentation API allows the user to close the data
stream of an instrument by introducing a new concept: Port. A user can
open a `Port` for a `Simulation` object and attach an arbitrary amount of
instruments to this port. The data streams are closed by calling
`Port#close()`.
Diffstat (limited to 'opendc-model-odc/setup/src/main/kotlin/com')
| -rw-r--r-- | opendc-model-odc/setup/src/main/kotlin/com/atlarge/opendc/model/odc/platform/JpaPlatformRunner.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/opendc-model-odc/setup/src/main/kotlin/com/atlarge/opendc/model/odc/platform/JpaPlatformRunner.kt b/opendc-model-odc/setup/src/main/kotlin/com/atlarge/opendc/model/odc/platform/JpaPlatformRunner.kt index 13f322bc..ab701259 100644 --- a/opendc-model-odc/setup/src/main/kotlin/com/atlarge/opendc/model/odc/platform/JpaPlatformRunner.kt +++ b/opendc-model-odc/setup/src/main/kotlin/com/atlarge/opendc/model/odc/platform/JpaPlatformRunner.kt @@ -45,7 +45,7 @@ fun main(args: Array<String>) { properties["javax.persistence.jdbc.password"] = env["PERSISTENCE_PASSWORD"] ?: "" val factory = Persistence.createEntityManagerFactory("opendc-simulator", properties) - val timeout = 10000L + val timeout = 30000L val threads = 4 val executorService = Executors.newFixedThreadPool(threads) val experiments = JpaExperimentManager(factory) |
