-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wip: adding serviceStatus to replace WebServer
Signed-off-by: Matt Peterson <[email protected]>
- Loading branch information
1 parent
7b1a3e0
commit bb4c5af
Showing
6 changed files
with
62 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
server/src/main/java/com/hedera/block/server/ServiceStatus.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package com.hedera.block.server; | ||
|
||
import io.helidon.webserver.WebServer; | ||
|
||
public class ServiceStatus { | ||
private boolean isRunning; | ||
private WebServer webServer; | ||
|
||
public ServiceStatus() { | ||
this.isRunning = true; | ||
} | ||
|
||
public boolean isRunning() { | ||
return isRunning; | ||
} | ||
|
||
public void setRunning(final boolean running) { | ||
isRunning = running; | ||
} | ||
|
||
public void setWebServer(final WebServer webServer) { | ||
this.webServer = webServer; | ||
} | ||
|
||
public void stopService() { | ||
isRunning = false; | ||
webServer.stop(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters