Changes between Version 11 and Version 12 of CloudNativeRenew
- Timestamp:
- Mar 16, 2021, 7:21:38 PM (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
CloudNativeRenew
v11 v12 21 21 * Make sure to you have Java 11+ and any HTTP enabled tool, such as `curl` installed on the machine, you want to run Renew on. 22 22 * Download the package above and unzip it. 23 * (optional) ''If port 80 98 is in use'' on your machine, open the file `CloudNativeSpring/src/main/resources/application.properties` and change the entry `server.port` to an unused port.23 * (optional) ''If port 8085 is in use'' on your machine, open the file `application.properties` and change the entry `server.port` to an unused port. For the remainder of this guide, it is assumed, that port 8085 is used. If it was changed in the application.properties, it also needs to be changed in the following command line invocations. 24 24 * Navigate to the main directory and run `./gradlew build` (or `.\gradlew build` on Windows CMD) 25 25 * To start use the following command: 26 * !Linux/Unix: `java -p dist:dist/libs -m de.renew.loader gui` (depending on your shell you might need to escape the colon character: `java -p dist\:dist/libs -m de.renew.loader gui`27 * Windows: `java -p dist;dist/libs -m de.renew.loader gui`26 * !Linux/Unix: `java -p .:libs -m de.renew.loader gui` (depending on your shell you might need to escape the colon character: `java -p .\:libs -m de.renew.loader gui` 27 * Windows: `java -p .;libs -m de.renew.loader gui` 28 28 29 * Open a command shell and execute `curl localhost:80 98/log` (or use the port you specified earlier in the `application.properties` file). The log files of the simulator will be returned from the moment onward the cloud native plugin was initialized.30 * Open a web browser and navigate to `http://localhost:80 98/swagger-ui.html` to see a documentation of the service endpoints with their required parameters.29 * Open a command shell and execute `curl localhost:8085/log` (or use the port you specified earlier in the `application.properties` file). The log files of the simulator will be returned from the moment onward the cloud native plugin was initialized. 30 * Open a web browser and navigate to `http://localhost:8085/swagger-ui.html` to see a documentation of the service endpoints with their required parameters. 31 31 32 32 * You can for example upload an existing shadown net system .sns. 33 33 * To create a shadow net system, open up a Renew instance (or the one spawned by the startup earlier), draw a reference net, save it with a specific name (File -> Save Drawing As...), and hit File -> Export -> Export all drawings (merged file) -> ShadowNetSystem 34 34 * If you created the net within the here supplied Renew instance with the cloud native plugin, close the net drawing, but not Renew itself. 35 * Assume the shadow net system file is namend `example.sns`: Upload the net using: `curl -F 'snsZipFile=@example.sns' localhost:80 98/upload/sns?fileName=example.sns`35 * Assume the shadow net system file is namend `example.sns`: Upload the net using: `curl -F 'snsZipFile=@example.sns' localhost:8085/upload/sns?fileName=example.sns` 36 36 * After uploading you can start a simulation. Assume you named the net within `example.sns` also `example`. 37 * Use this command: `curl -X POST 'localhost:80 98/simulation/start?mainNet=example&sns=example.sns'`38 * The simulation can now be controlled by the endpoint: `curl -X POST 'localhost:80 98/simulation/control?command=step'` Use the keywords:37 * Use this command: `curl -X POST 'localhost:8085/simulation/start?mainNet=example&sns=example.sns'` 38 * The simulation can now be controlled by the endpoint: `curl -X POST 'localhost:8085/simulation/control?command=step'` Use the keywords: 39 39 * `run` (To run simulations, that have been paused or only initialized) 40 40 * `step` (To execute a single step in the simulation)