Package org.projectnessie.quarkus.cli
Class BaseCommand
- java.lang.Object
-
- org.projectnessie.quarkus.cli.BaseCommand
-
- All Implemented Interfaces:
java.util.concurrent.Callable<java.lang.Integer>
- Direct Known Subclasses:
CheckContent,ContentInfo,EraseRepository,ExportRepository,ImportRepository,NessieCli,NessieInfo,RepoMaintenance
public abstract class BaseCommand extends java.lang.Object implements java.util.concurrent.Callable<java.lang.Integer>
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.IntegerEXIT_CODE_CONTENT_ERRORstatic java.lang.IntegerEXIT_CODE_GENERIC_ERRORstatic java.lang.IntegerEXIT_CODE_REPO_ALREADY_EXISTSstatic java.lang.IntegerEXIT_CODE_REPO_DOES_NOT_EXIST
-
Constructor Summary
Constructors Constructor Description BaseCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Integercall()protected java.lang.IntegercallWithDatabaseAdapter()protected java.lang.IntegercallWithPersist()protected voidwarnOnInMemory()
-
-
-
Field Detail
-
EXIT_CODE_GENERIC_ERROR
public static final java.lang.Integer EXIT_CODE_GENERIC_ERROR
-
EXIT_CODE_CONTENT_ERROR
public static final java.lang.Integer EXIT_CODE_CONTENT_ERROR
-
EXIT_CODE_REPO_DOES_NOT_EXIST
public static final java.lang.Integer EXIT_CODE_REPO_DOES_NOT_EXIST
-
EXIT_CODE_REPO_ALREADY_EXISTS
public static final java.lang.Integer EXIT_CODE_REPO_ALREADY_EXISTS
-
-
Method Detail
-
call
public final java.lang.Integer call() throws java.lang.Exception- Specified by:
callin interfacejava.util.concurrent.Callable<java.lang.Integer>- Throws:
java.lang.Exception
-
callWithPersist
protected java.lang.Integer callWithPersist() throws java.lang.Exception- Throws:
java.lang.Exception
-
callWithDatabaseAdapter
protected java.lang.Integer callWithDatabaseAdapter() throws java.lang.Exception- Throws:
java.lang.Exception
-
warnOnInMemory
protected void warnOnInMemory()
-
-