private long ipStr2Int(String ip) {
        long result = 0;
        InetAddress ipv;
        try {
            ipv = InetAddress.getByName(ip);
        } catch (UnknownHostException e) {
            LOGGER.error("convert ip to int error", e);
            return AgentUtils.getRandomBySeed(10);
        }
        for (byte b : ipv.getAddress()) {
            result = result << 8 | (b & 0xFF);
        }
        if (result < 0) {
            result = AgentUtils.getRandomBySeed(10);
        }
        if (result > MAX_MACHINE_NUM) {
            result %= MAX_MACHINE_NUM;
        }
        return result;
    }
Generate uniq sequential id, reset base id if max number
of sequence uuid are satisfied.
inlong-agent/agent-plugins/src/main/java/org/apache/inlong/agent/plugin/message/SequentialID.java