com.neeve.tools
Class DiscoveryTool

java.lang.Object
  extended by com.neeve.tools.interactive.commands.Command
      extended by com.neeve.tools.interactive.commands.AnnotatedCommand
          extended by 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 Class Summary
 class DiscoveryTool.DiscoveryCacheSize
          Interactive tool discovery cache 'size' command handler.
 
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
 
Field Summary
 
Fields inherited from class com.neeve.tools.interactive.commands.AnnotatedCommand
showHelp
 
Method Summary
 void execute()
           
static void main(String[] args)
           
 void onEvent(IDiscoveryCache cache, int type, Object data)
          The event handler method.
 
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
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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.