Projects



Changes between Version 11 and Version 12 of CloudNativeRenew


Ignore:
Timestamp:
Mar 16, 2021, 7:21:38 PM (4 years ago)
Author:
roewekamp
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CloudNativeRenew

    v11 v12  
    2121* 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.
    2222* Download the package above and unzip it.
    23 * (optional) ''If port 8098 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.
    2424* Navigate to the main directory and run `./gradlew build` (or `.\gradlew build` on Windows CMD)
    2525* 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`
    2828
    29 * Open a command shell and execute `curl localhost:8098/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:8098/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.
    3131
    3232* You can for example upload an existing shadown net system .sns.
    3333 * 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
    3434 * 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:8098/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`
    3636* 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:8098/simulation/start?mainNet=example&sns=example.sns'`
    38  * The simulation can now be controlled by the endpoint: `curl -X POST 'localhost:8098/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:
    3939  * `run` (To run simulations, that have been paused or only initialized)
    4040  * `step` (To execute a single step in the simulation)