@InterfaceAudience.Public @InterfaceStability.Evolving public class TimelineUtils extends Object
| Constructor and Description |
|---|
TimelineUtils() |
| Modifier and Type | Method and Description |
|---|---|
static Text |
buildTimelineTokenService(Configuration conf) |
static String |
dumpTimelineRecordtoJSON(Object o)
Serialize a POJO object into a JSON string not in a pretty format
|
static String |
dumpTimelineRecordtoJSON(Object o,
boolean pretty)
Serialize a POJO object into a JSON string
|
static InetSocketAddress |
getTimelineTokenServiceAddress(Configuration conf) |
public TimelineUtils()
public static String dumpTimelineRecordtoJSON(Object o) throws org.codehaus.jackson.JsonGenerationException, org.codehaus.jackson.map.JsonMappingException, IOException
o - an object to serializeIOExceptionorg.codehaus.jackson.map.JsonMappingExceptionorg.codehaus.jackson.JsonGenerationExceptionpublic static String dumpTimelineRecordtoJSON(Object o, boolean pretty) throws org.codehaus.jackson.JsonGenerationException, org.codehaus.jackson.map.JsonMappingException, IOException
o - an object to serializepretty - whether in a pretty format or notIOExceptionorg.codehaus.jackson.map.JsonMappingExceptionorg.codehaus.jackson.JsonGenerationExceptionpublic static InetSocketAddress getTimelineTokenServiceAddress(Configuration conf)
public static Text buildTimelineTokenService(Configuration conf)
Copyright © 2018 Apache Software Foundation. All rights reserved.