org.apache.lens.cli.commands
Class BaseLensCommand

java.lang.Object
  extended by org.apache.lens.cli.commands.BaseLensCommand
Direct Known Subclasses:
LensConnectionCommands, LensCubeCommands, LensDatabaseCommands, LensDimensionCommands, LensDimensionTableCommands, LensFactCommands, LensNativeTableCommands, LensQueryCommands, LensStorageCommands

public class BaseLensCommand
extends Object

The Class BaseLensCommand.


Field Summary
static org.apache.commons.logging.Log LOG
          The Constant LOG.
 
Constructor Summary
BaseLensCommand()
          Instantiates a new base lens command.
 
Method Summary
 String formatJson(String json)
          Pretty printing JSON object into CLI String.
static LensClient getClient()
           
static LensClientSingletonWrapper getClientWrapper()
           
 void setClient(LensClient client)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

public static final org.apache.commons.logging.Log LOG
The Constant LOG.

Constructor Detail

BaseLensCommand

public BaseLensCommand()
Instantiates a new base lens command.

Method Detail

setClient

public void setClient(LensClient client)

getClient

public static LensClient getClient()

getClientWrapper

public static LensClientSingletonWrapper getClientWrapper()

formatJson

public String formatJson(String json)
Pretty printing JSON object into CLI String.

Parameters:
json - to be formatted
Returns:
cli formatted string


Copyright © 2014–2015 Apache Software Foundation. All rights reserved.