| | |
| | | } |
| | | index += copiedLength; |
| | | |
| | | if (receivedLength <= len) |
| | | if (index == bytes.length) |
| | | bytes = null; |
| | | |
| | | return copiedLength; |
| | |
| | | import org.opends.server.tasks.InitializeTargetTask; |
| | | import org.opends.server.tasks.InitializeTask; |
| | | import org.opends.server.tasks.TaskUtils; |
| | | import org.opends.server.types.ExistingFileBehavior; |
| | | import org.opends.server.types.AbstractOperation; |
| | | import org.opends.server.types.Attribute; |
| | | import org.opends.server.types.AttributeType; |
| | |
| | | } |
| | | |
| | | /** |
| | | * Get the server ID. |
| | | * @return The server ID. |
| | | */ |
| | | public int getServerId() |
| | | { |
| | | return serverId; |
| | | } |
| | | |
| | | /** |
| | | * Check if the domain solve conflicts. |
| | | * |
| | | * @return a boolean indicating if the domain should sove conflicts. |
| | |
| | | importConfig.setAppendToExistingData(false); |
| | | |
| | | // TODO How to deal with rejected entries during the import |
| | | // importConfig.writeRejectedEntries("rejectedImport", |
| | | // ExistingFileBehavior.OVERWRITE); |
| | | importConfig.writeRejectedEntries("rejectedImport", |
| | | ExistingFileBehavior.OVERWRITE); |
| | | |
| | | // Process import |
| | | backend.importLDIF(importConfig); |
| | |
| | | addMonitorData(attributes, "unresolved-naming-conflicts", |
| | | domain.getNumUnresolvedNamingConflicts()); |
| | | |
| | | /* get server-id */ |
| | | addMonitorData(attributes, "server-id", |
| | | domain.getServerId()); |
| | | |
| | | /* get window information */ |
| | | addMonitorData(attributes, "max-rcv-window", domain.getMaxRcvWindow()); |
| | | addMonitorData(attributes, "current-rcv-window", |
| | |
| | | import org.opends.server.types.ResultCode; |
| | | import org.opends.server.types.SearchFilter; |
| | | import org.opends.server.types.SearchScope; |
| | | import org.opends.server.util.Base64; |
| | | import org.testng.annotations.BeforeClass; |
| | | import org.testng.annotations.Test; |
| | | |
| | |
| | | char bigAttributeValue[] = new char[30240]; |
| | | for (int i=0; i<bigAttributeValue.length; i++) |
| | | bigAttributeValue[i] = Integer.toString(i).charAt(0); |
| | | |
| | | |
| | | String[] entries = |
| | | { |
| | | "dn: dc=example,dc=com\n" |
| | |
| | | + "cn: Fiona Jensen\n" |
| | | + "sn: Jensen\n" |
| | | + "uid: fiona\n" |
| | | + "telephonenumber: +1 408 555 1212\n" |
| | | + "telephonenumber:: "+ Base64.encode( |
| | | new String(bigAttributeValue).getBytes())+"\n" |
| | | + "entryUUID: 21111111-1111-1111-1111-111111111113\n" |
| | | + "\n", |
| | | "dn: cn=Robert Langman,ou=people,dc=example,dc=com\n" |
| | |
| | | catch (NoSuchElementException e) { |
| | | // done |
| | | } |
| | | synchroServerEntry = null; |
| | | } |
| | | |
| | | /** |