Package alluxio.util.webui
Class WebUtils
- java.lang.Object
-
- alluxio.util.webui.WebUtils
-
@ThreadSafe public final class WebUtils extends java.lang.Object
The type Web utils.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
convertByteArrayToStringWithoutEscape(byte[] data, int offset, int length)
Converts a byte array to string.static NodeInfo[]
generateOrderedNodeInfos(java.util.Collection<WorkerInfo> workerInfos)
Order the nodes by hostName and generateNodeInfo
list for UI display.
-
-
-
Method Detail
-
convertByteArrayToStringWithoutEscape
public static java.lang.String convertByteArrayToStringWithoutEscape(byte[] data, int offset, int length)
Converts a byte array to string.- Parameters:
data
- byte arrayoffset
- offsetlength
- number of bytes to encode- Returns:
- string representation of the encoded byte sub-array
-
generateOrderedNodeInfos
public static NodeInfo[] generateOrderedNodeInfos(java.util.Collection<WorkerInfo> workerInfos)
Order the nodes by hostName and generateNodeInfo
list for UI display.- Parameters:
workerInfos
- the list ofWorkerInfo
objects- Returns:
- the list of
NodeInfo
objects
-
-