This project has retired. For details please refer to its Attic page.
BaseLensCommand (Lens 2.1.0-beta-incubating API)

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 String DATE_FMT
           
static ThreadLocal<DateFormat> DATE_PARSER
           
static org.apache.commons.logging.Log LOG
          The Constant LOG.
 
Constructor Summary
BaseLensCommand()
          Instantiates a new base lens command.
 
Method Summary
static String formatDate(Date dt)
           
 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.


DATE_FMT

public static final String DATE_FMT
See Also:
Constant Field Values

DATE_PARSER

public static final ThreadLocal<DateFormat> DATE_PARSER
Constructor Detail

BaseLensCommand

public BaseLensCommand()
Instantiates a new base lens command.

Method Detail

formatDate

public static String formatDate(Date dt)

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.