Class BaseRepositoryCommand

java.lang.Object
org.projectnessie.gc.tool.cli.commands.BaseCommand
org.projectnessie.gc.tool.cli.commands.BaseRepositoryCommand
All Implemented Interfaces:
Callable<Integer>
Direct Known Subclasses:
BaseLiveSetCommand, ListLiveSets, MarkAndSweep, MarkLive

public abstract class BaseRepositoryCommand extends BaseCommand
  • Field Details

  • Constructor Details

    • BaseRepositoryCommand

      public BaseRepositoryCommand()
  • Method Details

    • zoneId

      protected ZoneId zoneId()
    • call

      protected Integer call(Closeables closeables) throws Exception
      Specified by:
      call in class BaseCommand
      Throws:
      Exception
    • preValidate

      protected void preValidate()
    • call

      protected abstract Integer call(Closeables closeables, org.projectnessie.gc.contents.LiveContentSetsRepository liveContentSetsRepository)
    • instantAsString

      protected String instantAsString(Instant instant)
    • asString

      protected static String asString(Object o)
    • listLiveContentSets

      protected void listLiveContentSets(picocli.CommandLine.Model.CommandSpec commandSpec, 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)