Package be.panako.cli
Class Monitor
java.lang.Object
be.panako.cli.Application
be.panako.cli.Monitor
- All Implemented Interfaces:
QueryResultHandler
public class Monitor extends Application implements QueryResultHandler
-
Constructor Summary
Constructors Constructor Description Monitor()
-
Method Summary
Modifier and Type Method Description java.lang.String
description()
void
handleEmptyResult(QueryResult r)
void
handleQueryResult(QueryResult r)
Handle the result of a query.boolean
needsStorage()
void
run(java.lang.String... args)
java.lang.String
synopsis()
The synopsis is a short description of the required or optional arguments.boolean
writesToStorage()
Methods inherited from class be.panako.cli.Application
availableProcessors, getFilesFromArguments, name, printHelp
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Monitor
public Monitor()
-
-
Method Details
-
run
public void run(java.lang.String... args)- Specified by:
run
in classApplication
- Parameters:
args
- The arguments to start the program.
-
description
public java.lang.String description()- Specified by:
description
in classApplication
- Returns:
- The description of the application. What does it do?
-
synopsis
public java.lang.String 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
-