com.neeve.tools
Class DiscoveryTool
java.lang.Object
com.neeve.tools.interactive.commands.Command
com.neeve.tools.interactive.commands.AnnotatedCommand
com.neeve.tools.DiscoveryTool
- All Implemented Interfaces:
- IDiscoveryCacheEventHandler, jline.console.completer.Completer
public class DiscoveryTool
- extends com.neeve.tools.interactive.commands.AnnotatedCommand
- implements IDiscoveryCacheEventHandler
Interactive tool that enables a user to interactively work with discovery caches
Nested classes/interfaces inherited from class com.neeve.tools.interactive.commands.AnnotatedCommand |
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 |
Nested classes/interfaces inherited from class com.neeve.tools.interactive.commands.Command |
com.neeve.tools.interactive.commands.Command.Console |
Fields inherited from class com.neeve.tools.interactive.commands.AnnotatedCommand |
showHelp |
Methods inherited from class com.neeve.tools.interactive.commands.AnnotatedCommand |
complete, help, help, helpHtml, hidden, keywords, run, usage, usageHtml |
Methods inherited from class com.neeve.tools.interactive.commands.Command |
error, error, interrupt, interruptable, setConsole |
onEvent
public void onEvent(IDiscoveryCache cache,
int type,
Object data)
- Description copied from interface:
IDiscoveryCacheEventHandler
- The event handler method.
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.
- Specified by:
onEvent
in interface IDiscoveryCacheEventHandler
- Parameters:
cache
- 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.
execute
public void execute()
throws Exception
- Specified by:
execute
in class com.neeve.tools.interactive.commands.AnnotatedCommand
- Throws:
Exception
main
public static void main(String[] args)
throws Exception
- Throws:
Exception
Copyright © 2016 Neeve Research, LLC. All Rights Reserved.