| | |
| | | setPrimaryValid(lRejectsFile); |
| | | setPrimaryValid(lSkipsFile); |
| | | setPrimaryValid(lThreads); |
| | | final LinkedHashSet<LocalizableMessage> errors = new LinkedHashSet<LocalizableMessage>(); |
| | | final LinkedHashSet<LocalizableMessage> errors = new LinkedHashSet<>(); |
| | | |
| | | String backendName = (String)backends.getSelectedItem(); |
| | | if (backendName == null) |
| | |
| | | } |
| | | else if (!overwrite.isSelected() && canInitialize) |
| | | { |
| | | ArrayList<String> dns = new ArrayList<String>(); |
| | | ArrayList<String> dns = new ArrayList<>(); |
| | | for (DN dn : replicatedBaseDNs) |
| | | { |
| | | dns.add(dn.toString()); |
| | |
| | | } |
| | | else if (overwrite.isSelected() && canInitialize) |
| | | { |
| | | ArrayList<String> dns = new ArrayList<String>(); |
| | | ArrayList<String> dns = new ArrayList<>(); |
| | | for (DN dn : replicatedBaseDNs) |
| | | { |
| | | dns.add(dn.toString()); |
| | |
| | | |
| | | private Set<DN> getReplicatedBaseDNs() |
| | | { |
| | | Set<DN> baseDNs = new TreeSet<DN>(); |
| | | Set<DN> baseDNs = new TreeSet<>(); |
| | | String backendID = (String)backends.getSelectedItem(); |
| | | if (backendID != null) |
| | | { |
| | |
| | | public ImportTask(ControlPanelInfo info, ProgressDialog dlg) |
| | | { |
| | | super(info, dlg); |
| | | backendSet = new HashSet<String>(); |
| | | backendSet = new HashSet<>(); |
| | | backendSet.add((String)backends.getSelectedItem()); |
| | | fileName = file.getText(); |
| | | replicatedBaseDNs = getReplicatedBaseDNs(); |
| | |
| | | @Override |
| | | protected ArrayList<String> getCommandLineArguments() |
| | | { |
| | | ArrayList<String> args = new ArrayList<String>(); |
| | | ArrayList<String> args = new ArrayList<>(); |
| | | args.add("--ldifFile"); |
| | | args.add(fileName); |
| | | args.add("--backendID"); |
| | |
| | | lastException = t; |
| | | state = State.FINISHED_WITH_ERROR; |
| | | } |
| | | HashSet<BackendDescriptor> backends = new HashSet<BackendDescriptor>(); |
| | | HashSet<BackendDescriptor> backends = new HashSet<>(); |
| | | for (BackendDescriptor backend : |
| | | getInfo().getServerDescriptor().getBackends()) |
| | | { |
| | |
| | | private String getCommandLineToInitializeAll() |
| | | { |
| | | String cmdLineName = getCommandLinePath("dsreplication"); |
| | | ArrayList<String> args = new ArrayList<String>(); |
| | | ArrayList<String> args = new ArrayList<>(); |
| | | args.add( |
| | | ReplicationCliArgumentParser.INITIALIZE_ALL_REPLICATION_SUBCMD_NAME); |
| | | args.add("--hostName"); |