public class IDHandler extends Object
| Constructor and Description | 
|---|
IDHandler()  | 
| Modifier and Type | Method and Description | 
|---|---|
static long | 
concatIntIDsToLong(int part1,
                  int part2)  | 
static String | 
createDistributedUniqueID()
Creates a unique identifier with the pattern <process_id>_<host_ip>. 
 | 
static int | 
extractIntID(String taskID)  | 
static int | 
extractIntIDFromLong(long val,
                    int part)
Extract int ID from long value 
 | 
public static int extractIntID(String taskID)
public static long concatIntIDsToLong(int part1,
                                      int part2)
public static int extractIntIDFromLong(long val,
                                       int part)
val - long valuepart - if part is 1, use first 4 bytes. if part is 2, use second 4 bytes!public static String createDistributedUniqueID()
Copyright © 2021 The Apache Software Foundation. All rights reserved.