public class CrailUtils extends Object
| Constructor and Description |
|---|
CrailUtils() |
public static org.slf4j.Logger getLogger()
public static long getAddress(ByteBuffer buffer)
public static InetSocketAddress getNameNodeAddress()
public static URI getPrimaryNameNode()
public static boolean verifyNamenode(String namenode)
public static ConcurrentLinkedQueue<InetSocketAddress> getNameNodeList()
public static long getServiceId(String namenode)
public static long getServiceSize()
public static final long blockStartAddress(long offset)
public static final long bufferStartAddress(long position,
long sliceSize)
public static final long nextBlockAddress(long offset)
public static final int minFileBuf(long fileSize,
int bufSize)
public static void printStackTrace()
public static int computeIndex(long offset)
public static boolean isLocalAddress(InetAddress addr)
public static InetSocketAddress createSocketAddrForHost(String host, int port)
public static InetSocketAddress datanodeInfo2SocketAddr(DataNodeInfo dnInfo) throws UnknownHostException
UnknownHostExceptionpublic static CrailLocationClass getLocationClass() throws UnknownHostException
UnknownHostExceptionpublic static void parseMap(String config, ConcurrentHashMap<String,String> map) throws Exception
Exceptionpublic static int getStorageClasses(String storageTypes)
public static String getIPAddressFromBytes(byte[] bytes)
Copyright © 2018 The Apache Software Foundation. All rights reserved.