Package be.panako.cli
Class Monitor
java.lang.Object
be.panako.cli.Application
be.panako.cli.Monitor
- All Implemented Interfaces:
QueryResultHandler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
Handle the result of a query.boolean
void
synopsis()
The synopsis is a short description of the required or optional arguments.boolean
Methods inherited from class be.panako.cli.Application
availableProcessors, checkFile, getFilesFromArguments, getIntegerOption, getOption, hasArgument, name, printHelp
-
Constructor Details
-
Monitor
public Monitor()
-
-
Method Details
-
run
- Specified by:
run
in classApplication
- Parameters:
args
- The arguments to start the program.
-
description
- Specified by:
description
in classApplication
- Returns:
- The description of the application. What does it do?
-
synopsis
Description copied from class:Application
The synopsis is a short description of the required or optional arguments.- Specified by:
synopsis
in classApplication
- Returns:
- The command line synopsis.
-
needsStorage
public boolean needsStorage()- Specified by:
needsStorage
in classApplication
- Returns:
- True if this application needs the storage, false otherwise.
-
writesToStorage
public boolean writesToStorage()- Specified by:
writesToStorage
in classApplication
- Returns:
- true if this application writes to storage.
-
handleQueryResult
Description copied from interface:QueryResultHandler
Handle the result of a query.- Specified by:
handleQueryResult
in interfaceQueryResultHandler
- Parameters:
r
- The result to handle
-
handleEmptyResult
- Specified by:
handleEmptyResult
in interfaceQueryResultHandler
-