Class StagesDemo

java.lang.Object
dev.frostlake.demo.AbstractDemo
dev.frostlake.demo.StagesDemo

public class StagesDemo extends AbstractDemo
Demonstration of STAGE functionality - Local filesystem staging
  • Constructor Details

    • StagesDemo

      public StagesDemo()
  • Method Details

    • main

      public static void main(String[] args)
    • getDemoTitle

      protected String getDemoTitle()
      Description copied from class: AbstractDemo
      Get the demo title to display at the start
      Specified by:
      getDemoTitle in class AbstractDemo
      Returns:
      the title AbstractDemo.execute() prints before running the demo
    • runDemo

      protected void runDemo() throws Exception
      Description copied from class: AbstractDemo
      Main entry point - subclasses should implement this to define their demo logic
      Specified by:
      runDemo in class AbstractDemo
      Throws:
      Exception - if any demo step fails; AbstractDemo.execute() reports it and still shuts down
    • printResultSet

      protected void printResultSet(ResultSet result)
      Description copied from class: AbstractDemo
      Print a result set with formatted output Subclasses can override for custom formatting
      Overrides:
      printResultSet in class AbstractDemo
      Parameters:
      result - the result set to print, at the default 20-character column width