com.hazelcast.internal.management
Class ConsoleCommandHandler

java.lang.Object
  extended by com.hazelcast.internal.management.ConsoleCommandHandler

public class ConsoleCommandHandler
extends Object

Handler class for console commands that sent from Console application which located in Management Center.


Constructor Summary
ConsoleCommandHandler(HazelcastInstance instance)
           
 
Method Summary
 String handleCommand(String command)
          Runs a command on the console.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConsoleCommandHandler

public ConsoleCommandHandler(HazelcastInstance instance)
Method Detail

handleCommand

public String handleCommand(String command)
                     throws InterruptedException
Runs a command on the console. Will not run "exit" or "quit".

Parameters:
command - The command to run.
Returns:
either the command is handled, or a console message is returned if the command is not handled.
Throws:
java.lang.InterruptedException.
InterruptedException


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.