| | |
| | | { |
| | | return; |
| | | } |
| | | catch (NamingException ne) |
| | | catch (NamingException e) |
| | | { |
| | | throw new ReplicationCliException(getThrowableMsg(ERR_READING_SERVER_TASK_PROGRESS.get(), ne), |
| | | ERROR_CONNECTING, ne); |
| | | throw new ReplicationCliException(getThrowableMsg(ERR_READING_SERVER_TASK_PROGRESS.get(), e), |
| | | ERROR_CONNECTING, e); |
| | | } |
| | | } |
| | | } |
| | |
| | | for (BaseDNDescriptor baseDN : backend.getBaseDns()) |
| | | { |
| | | SuffixDescriptor suffix = new SuffixDescriptor(); |
| | | suffix.setDN(baseDN.getDn().toString()); |
| | | suffix.setDN(baseDN.getDn()); |
| | | |
| | | ReplicaDescriptor replica = new ReplicaDescriptor(); |
| | | |
| | |
| | | suffixes.add(rep1SuffixDN); |
| | | } |
| | | break; |
| | | default: |
| | | throw new IllegalStateException("Unknown type: "+type); |
| | | default: |
| | | throw new IllegalStateException("Unknown type: " + type); |
| | | } |
| | | } |
| | | } |
| | |
| | | { |
| | | return ServerDescriptor.createStandalone(conn, filter); |
| | | } |
| | | catch (NamingException ne) |
| | | catch (IOException e) |
| | | { |
| | | throw new ReplicationCliException( |
| | | getMessageForException(ne, conn.getHostPort().toString()), ERROR_READING_CONFIGURATION, ne); |
| | | getMessageForException(e, conn.getHostPort().toString()), ERROR_READING_CONFIGURATION, e); |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | } |
| | | } |
| | | catch (NamingException ne) |
| | | catch (IOException ne) |
| | | { |
| | | LocalizableMessage msg = getMessageForException(ne, connSource.getHostPort().toString()); |
| | | throw new ReplicationCliException(msg, ERROR_READING_CONFIGURATION, ne); |