public class DiscoveryTool extends com.neeve.tools.interactive.commands.AnnotatedCommand implements IDiscoveryCacheEventHandler
| Modifier and Type | Class and Description |
|---|---|
class |
DiscoveryTool.DiscoveryCacheSize
Interactive tool discovery cache 'size' command handler.
|
com.neeve.tools.interactive.commands.AnnotatedCommand.Argument, com.neeve.tools.interactive.commands.AnnotatedCommand.Command, com.neeve.tools.interactive.commands.AnnotatedCommand.Option, com.neeve.tools.interactive.commands.AnnotatedCommand.RemainingArgs| Modifier and Type | Method and Description |
|---|---|
void |
execute() |
static void |
main(String[] args) |
void |
onEvent(IDiscoveryCache cache,
int type,
Object data)
The event handler method.
|
complete, help, help, helpHtml, hidden, keywords, preserveArgumentQuotes, run, usage, usageHtmlpublic void onEvent(IDiscoveryCache cache, int type, Object data)
IDiscoveryCacheEventHandler
It is illegal to perform any operation on the cache from within the event
handler. An IllegalStateException is thrown if the user attempts
to perform any operation on the cache from within the event handler.
onEvent in interface IDiscoveryCacheEventHandlercache - The discovery cache that dispatched the event.type - The event type.data - The type specific event event data. See DiscoveryCacheEvents
for which data structures are dispatched with each event type.public void execute()
throws Exception
execute in class com.neeve.tools.interactive.commands.AnnotatedCommandExceptionCopyright © 2019 Neeve Research, LLC. All Rights Reserved.