+
+ private long initialGeneration() {
+ final String propName = GENERATION_OVERRIDE_PROP_BASE + currentFrontend.getClientType().getName();
+ final String propValue = System.getProperty(propName);
+ if (propValue == null) {
+ LOG.debug("{}: no initial generation override, starting from 0", persistenceId());
+ return 0;
+ }
+
+ final long ret;
+ try {
+ ret = Long.parseUnsignedLong(propValue);
+ } catch (NumberFormatException e) {
+ LOG.warn("{}: failed to parse initial generation override '{}', starting from 0", persistenceId(),
+ propValue, e);
+ return 0;
+ }
+
+ LOG.info("{}: initial generation set to {}", persistenceId(), ret);
+ return ret;
+ }
+}