Class AbstractCommand
- java.lang.Object
-
- org.projectnessie.tools.contentgenerator.cli.AbstractCommand
-
- All Implemented Interfaces:
java.util.concurrent.Callable<java.lang.Integer>
- Direct Known Subclasses:
GenerateContent,ReadCommits,ReadContent,ReadReferences,RefreshContent
public abstract class AbstractCommand extends java.lang.Object implements java.util.concurrent.Callable<java.lang.Integer>
-
-
Constructor Summary
Constructors Constructor Description AbstractCommand()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.lang.Integercall()ImplementsCallable.call()that just callsexecute()and returns0for the process exit code on success.org.projectnessie.client.api.NessieApiV1createNessieApiInstance()abstract voidexecute()Convenience method declaration that allows to "just throw" Nessie API exceptions.protected booleanisVerbose()
-
-
-
Method Detail
-
isVerbose
protected boolean isVerbose()
-
createNessieApiInstance
public org.projectnessie.client.api.NessieApiV1 createNessieApiInstance()
-
execute
public abstract void execute() throws org.projectnessie.error.BaseNessieClientServerExceptionConvenience method declaration that allows to "just throw" Nessie API exceptions.- Throws:
org.projectnessie.error.BaseNessieClientServerException
-
call
public final java.lang.Integer call() throws java.lang.ExceptionImplementsCallable.call()that just callsexecute()and returns0for the process exit code on success.- Specified by:
callin interfacejava.util.concurrent.Callable<java.lang.Integer>- Throws:
java.lang.Exception
-
-