Package org.apache.drill.yarn.core
Class DoYUtil
java.lang.Object
org.apache.drill.yarn.core.DoYUtil
- 
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddNonEmpty(List<String> list, String value) static doublecallGetDiskIfExists(Object target) static voidcallSetDiskIfExists(Object target, double arg) static StringdescribeContainer(org.apache.hadoop.yarn.api.records.Container container) Utility method to display YARN container information in a useful way for log messages.static ObjectdynamicCall(Object target, String fnName, Object[] args, Class<?>[] types) static booleanstatic Stringstatic StringlabelContainer(org.apache.hadoop.yarn.api.records.Container container) static StringtoIsoTime(long timestamp) static StringunwrapAmUrl(String trackingUrl) The tracking URL given to YARN is a redirect URL. 
- 
Method Details
- 
join
 - 
addNonEmpty
 - 
isBlank
 - 
toIsoTime
 - 
labelContainer
 - 
describeContainer
Utility method to display YARN container information in a useful way for log messages.- Parameters:
 container-- Returns:
 
 - 
unwrapAmUrl
The tracking URL given to YARN is a redirect URL. When giving the URL to the user, "unwrap" that redirect URL to get the actual site URL.- Parameters:
 trackingUrl-- Returns:
 
 - 
dynamicCall
 - 
callSetDiskIfExists
 - 
callGetDiskIfExists
 
 -