|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lens.cli.commands.BaseLensCommand
public class BaseLensCommand
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 |
---|
public static final org.apache.commons.logging.Log LOG
public static final String DATE_FMT
public static final ThreadLocal<DateFormat> DATE_PARSER
Constructor Detail |
---|
public BaseLensCommand()
Method Detail |
---|
public static String formatDate(Date dt)
public void setClient(LensClient client)
public static LensClient getClient()
public static LensClientSingletonWrapper getClientWrapper()
public String formatJson(String json)
json
- to be formatted
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |