SJSU-CS-systems-group / DDD

2 stars 0 forks source link

Remove redundant grpc server startups and add a healthCheck service to restart the server if it is down #68

Closed JAReddy closed 2 weeks ago

JAReddy commented 1 month ago

Is your feature request related to a problem? Please describe. Currently, the grpc server tries to start from two different places. One in the MainActivity and the other from RpcServerWorker.

  1. Check and remove if the PeriodicRequest is required for the serverStartup in the WifiDirectBroadcastReceiver.
  2. Check and remove if the ExecutorService is required for the serverStartup in MainActivity.
  3. Instead, have a healthCheck thread which periodically checks the state of gRPC server and restarts if it is down.