Skip to content

Add restart functionality to services#31

Merged
koke1997 merged 1 commit intomainfrom
add-restart-functionality
Dec 16, 2024
Merged

Add restart functionality to services#31
koke1997 merged 1 commit intomainfrom
add-restart-functionality

Conversation

@koke1997
Copy link
Owner

@koke1997 koke1997 commented Dec 16, 2024

Add restart functionality to various services and update related tests.

  • Centralized Server: Add restartServer function and update startServer to handle restarts in centralized_server.scala. Add test case for restartServer in test_centralized_server.scala.
  • Fault Tolerance: Add restart function and update start to handle restarts in fault_tolerance.scala. Add test case for restart in test_fault_tolerance.scala.
  • Peer Discovery: Add restart function and update start to handle restarts in peer_discovery.scala. Add test case for restart in test_peer_discovery.scala.
  • Reliable Transmission: Add restart function and update sendData to handle restarts in reliable_transmission.scala. Add test case for restart in test_reliable_transmission.scala.
  • Scala Connector: Add restart function and update sendToErlang to handle restarts in scala_connector.scala. Add test case for restart in test_scala_connector.scala.
  • Video Chunking: Add restart function and update chunkVideo to handle restarts in video_chunking.scala. Add test case for restart in test_video_chunking.scala.
  • Monitoring Script: Add restart_services function and update handle_error to call restart_services in monitor.sh.
  • Run Local Script: Add --restart argument and update run_app to handle the argument in run_local.py.

For more details, open the Copilot Workspace session.

Add restart functionality to various services and update related tests.

* **Centralized Server**: Add `restartServer` function and update `startServer` to handle restarts in `centralized_server.scala`. Add test case for `restartServer` in `test_centralized_server.scala`.
* **Fault Tolerance**: Add `restart` function and update `start` to handle restarts in `fault_tolerance.scala`. Add test case for `restart` in `test_fault_tolerance.scala`.
* **Peer Discovery**: Add `restart` function and update `start` to handle restarts in `peer_discovery.scala`. Add test case for `restart` in `test_peer_discovery.scala`.
* **Reliable Transmission**: Add `restart` function and update `sendData` to handle restarts in `reliable_transmission.scala`. Add test case for `restart` in `test_reliable_transmission.scala`.
* **Scala Connector**: Add `restart` function and update `sendToErlang` to handle restarts in `scala_connector.scala`. Add test case for `restart` in `test_scala_connector.scala`.
* **Video Chunking**: Add `restart` function and update `chunkVideo` to handle restarts in `video_chunking.scala`. Add test case for `restart` in `test_video_chunking.scala`.
* **Monitoring Script**: Add `restart_services` function and update `handle_error` to call `restart_services` in `monitor.sh`.
* **Run Local Script**: Add `--restart` argument and update `run_app` to handle the argument in `run_local.py`.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/koke1997/ScalaCast?shareId=XXXX-XXXX-XXXX-XXXX).
@koke1997 koke1997 merged commit 1187fe4 into main Dec 16, 2024
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant