Class BaseRepositoryCommand
- java.lang.Object
-
- org.projectnessie.gc.tool.cli.commands.BaseCommand
-
- org.projectnessie.gc.tool.cli.commands.BaseRepositoryCommand
-
- All Implemented Interfaces:
java.util.concurrent.Callable<java.lang.Integer>
- Direct Known Subclasses:
BaseLiveSetCommand,ListLiveSets,MarkAndSweep,MarkLive
public abstract class BaseRepositoryCommand extends BaseCommand
-
-
Field Summary
Fields Modifier and Type Field Description protected java.io.PrintWriterout
-
Constructor Summary
Constructors Constructor Description BaseRepositoryCommand()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected static java.lang.StringasString(java.lang.Object o)protected java.lang.Integercall(Closeables closeables)protected abstract java.lang.Integercall(Closeables closeables, org.projectnessie.gc.contents.LiveContentSetsRepository liveContentSetsRepository)protected org.projectnessie.gc.iceberg.files.IcebergFilescreateIcebergFiles(IcebergOptions icebergOptions)protected intexpire(org.projectnessie.gc.contents.LiveContentSetsRepository liveContentSetsRepository, org.projectnessie.gc.contents.LiveContentSet liveContentSet, SweepOptions sweepOptions, IcebergOptions icebergOptions, picocli.CommandLine.Model.CommandSpec commandSpec)protected org.projectnessie.gc.contents.LiveContentSetidentify(Closeables closeables, org.projectnessie.gc.contents.LiveContentSetsRepository liveContentSetsRepository, MarkOptions markOptions, picocli.CommandLine.Model.CommandSpec commandSpec)protected java.lang.StringinstantAsString(java.time.Instant instant)protected voidlistLiveContentSets(picocli.CommandLine.Model.CommandSpec commandSpec, java.util.stream.Stream<org.projectnessie.gc.contents.LiveContentSet> liveContentSetStream)protected voidpreValidate()protected java.time.ZoneIdzoneId()-
Methods inherited from class org.projectnessie.gc.tool.cli.commands.BaseCommand
call
-
-
-
-
Method Detail
-
zoneId
protected java.time.ZoneId zoneId()
-
call
protected java.lang.Integer call(Closeables closeables) throws java.lang.Exception
- Specified by:
callin classBaseCommand- Throws:
java.lang.Exception
-
preValidate
protected void preValidate()
-
call
protected abstract java.lang.Integer call(Closeables closeables, org.projectnessie.gc.contents.LiveContentSetsRepository liveContentSetsRepository)
-
instantAsString
protected java.lang.String instantAsString(java.time.Instant instant)
-
asString
protected static java.lang.String asString(java.lang.Object o)
-
listLiveContentSets
protected void listLiveContentSets(picocli.CommandLine.Model.CommandSpec commandSpec, java.util.stream.Stream<org.projectnessie.gc.contents.LiveContentSet> liveContentSetStream)
-
identify
protected org.projectnessie.gc.contents.LiveContentSet identify(Closeables closeables, org.projectnessie.gc.contents.LiveContentSetsRepository liveContentSetsRepository, MarkOptions markOptions, picocli.CommandLine.Model.CommandSpec commandSpec)
-
expire
protected int expire(org.projectnessie.gc.contents.LiveContentSetsRepository liveContentSetsRepository, org.projectnessie.gc.contents.LiveContentSet liveContentSet, SweepOptions sweepOptions, IcebergOptions icebergOptions, picocli.CommandLine.Model.CommandSpec commandSpec)
-
createIcebergFiles
protected org.projectnessie.gc.iceberg.files.IcebergFiles createIcebergFiles(IcebergOptions icebergOptions)
-
-