Class DbClearCLI
java.lang.Object
com.scivicslab.actoriac.cli.DbClearCLI
CLI tool for clearing (deleting) the H2 log database files.
This command safely deletes the database files after checking that the log server is not running.
Usage examples:
# Clear the default database java -jar actor-IaC.jar db-clear --db logs # Force clear without checking log server java -jar actor-IaC.jar db-clear --db logs --force
- Since:
- 2.12.0
- Author:
- devteam@scivicslab.com
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncall()private booleanChecks if the log server is running by attempting to connect to the HTTP info endpoint.static voidMain entry point for the db-clear CLI.
-
Field Details
-
dbPath
-
httpPort
-
force
-
-
Constructor Details
-
DbClearCLI
public DbClearCLI()
-
-
Method Details
-
main
-
call
-
isLogServerRunning
Checks if the log server is running by attempting to connect to the HTTP info endpoint.- Returns:
- true if log server is running
-