Package be.panako.cli

Class Monitor

All Implemented Interfaces:
QueryResultHandler

public class Monitor extends Application implements QueryResultHandler
  • Constructor Details

    • Monitor

      public Monitor()
  • Method Details

    • run

      public void run(String... args)
      Specified by:
      run in class Application
      Parameters:
      args - The arguments to start the program.
    • description

      public String description()
      Specified by:
      description in class Application
      Returns:
      The description of the application. What does it do?
    • synopsis

      public String synopsis()
      Description copied from class: Application
      The synopsis is a short description of the required or optional arguments.
      Specified by:
      synopsis in class Application
      Returns:
      The command line synopsis.
    • needsStorage

      public boolean needsStorage()
      Specified by:
      needsStorage in class Application
      Returns:
      True if this application needs the storage, false otherwise.
    • writesToStorage

      public boolean writesToStorage()
      Specified by:
      writesToStorage in class Application
      Returns:
      true if this application writes to storage.
    • handleQueryResult

      public void handleQueryResult(QueryResult r)
      Description copied from interface: QueryResultHandler
      Handle the result of a query.
      Specified by:
      handleQueryResult in interface QueryResultHandler
      Parameters:
      r - The result to handle
    • handleEmptyResult

      public void handleEmptyResult(QueryResult r)
      Specified by:
      handleEmptyResult in interface QueryResultHandler