@Override protected void applyConfiguration(SocketBindingGroup instance) { ConfigKey key = ROOT.append(instance.name()); applyConfiguration(key.append("port-offset"), (offset) -> { instance.portOffset(offset.toString()); }); applyConfiguration(key.append("default-interface"), (offset) -> { instance.portOffset(offset.toString()); }); }
@Override protected void applyConfiguration(SocketBindingGroup instance) { ConfigKey key = ROOT.append(instance.name()); applyConfiguration(key.append("port-offset"), (offset) -> { instance.portOffset(offset.toString()); }); applyConfiguration(key.append("default-interface"), (offset) -> { instance.portOffset(offset.toString()); }); }
@Override protected void applyConfiguration(SocketBindingGroup instance) { ConfigKey key = ROOT.append(instance.name()); applyConfiguration(key.append("port-offset"), (offset) -> { instance.portOffset(offset.toString()); }); applyConfiguration(key.append("default-interface"), (offset) -> { instance.portOffset(offset.toString()); }); }
protected void fixGroup(SocketBindingGroup group) { ConfigKey key = ROOT.append(group.name()); int offset = this.configView.resolve(SWARM.append("port", "offset")).as(Integer.class).withDefault(0).getValue(); group.portOffset(offset); applyConfiguration(key.append("port-offset"), (portOffset) -> { group.portOffset(portOffset.toString()); }); applyConfiguration(key.append("default-interface"), (defaultInterface) -> { group.defaultInterface(defaultInterface.toString()); }); }
protected void fixGroup(SocketBindingGroup group) { ConfigKey key = ROOT.append(group.name()); int offset = this.configView.resolve(SWARM.append("port", "offset")).as(Integer.class).withDefault(0).getValue(); group.portOffset(offset); applyConfiguration(key.append("port-offset"), (portOffset) -> { group.portOffset(portOffset.toString()); }); applyConfiguration(key.append("default-interface"), (defaultInterface) -> { group.defaultInterface(defaultInterface.toString()); }); }
protected void fixGroup(SocketBindingGroup group) { ConfigKey key = ROOT.append(group.name()); int offset = this.configView.resolve(SWARM.append("port", "offset")).as(Integer.class).withDefault(0).getValue(); group.portOffset(offset); applyConfiguration(key.append("port-offset"), (portOffset) -> { group.portOffset(portOffset.toString()); }); applyConfiguration(key.append("default-interface"), (defaultInterface) -> { group.defaultInterface(defaultInterface.toString()); }); }