@Test public void getRandomNonNegativeLong() throws Exception { long first = IdUtils.getRandomNonNegativeLong(); long second = IdUtils.getRandomNonNegativeLong(); assertTrue(first >= 0); assertTrue(second >= 0); assertTrue(first != second); }
public static synchronized long getRandomNonNegativeLong() { return sRandom.nextLong() & Long.MAX_VALUE; }
IdUtils { public static synchronized long getRandomNonNegativeLong() { return sRandom.nextLong() & Long.MAX_VALUE; } }
IdUtils { public static synchronized long getRandomNonNegativeLong() { return sRandom.nextLong() & Long.MAX_VALUE; } private  IdUtils(); }
IdUtils { public static synchronized long getRandomNonNegativeLong() { return sRandom.nextLong() & Long.MAX_VALUE; } private  IdUtils(); static long createFileId(long containerId); static long fileIdFromBlockId(long blockId); static String createRpcId(); static synchronized long getRandomNonNegativeLong(); static long createSessionId(); static long createMountId(); static String createFileSystemContextId(); static String createOrGetAppIdFromConfig(AlluxioConfiguration conf); }
IdUtils { public static synchronized long getRandomNonNegativeLong() { return sRandom.nextLong() & Long.MAX_VALUE; } private  IdUtils(); static long createFileId(long containerId); static long fileIdFromBlockId(long blockId); static String createRpcId(); static synchronized long getRandomNonNegativeLong(); static long createSessionId(); static long createMountId(); static String createFileSystemContextId(); static String createOrGetAppIdFromConfig(AlluxioConfiguration conf); static final long INVALID_FILE_ID; static final long INVALID_WORKER_ID; static final long INVALID_MOUNT_ID; static final long ROOT_MOUNT_ID; }