| | |
| | | * CDDL HEADER END |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Copyright 2006-2009 Sun Microsystems, Inc. |
| | | */ |
| | | package org.opends.server.replication.protocol; |
| | | |
| | |
| | | /** |
| | | * Creates a message. |
| | | * |
| | | * @param sender The sender server of this message. |
| | | * @param destination The server or servers targetted by this message. |
| | | * @param serverID The sender server of this message. |
| | | * @param i The server or servers targetted by this message. |
| | | */ |
| | | public DoneMsg(short sender, short destination) |
| | | public DoneMsg(int serverID, int i) |
| | | { |
| | | super(sender, destination); |
| | | super(serverID, i); |
| | | } |
| | | |
| | | /** |
| | |
| | | // sender |
| | | int length = getNextLength(in, pos); |
| | | String senderString = new String(in, pos, length, "UTF-8"); |
| | | this.senderID = Short.valueOf(senderString); |
| | | this.senderID = Integer.valueOf(senderString); |
| | | pos += length +1; |
| | | |
| | | // destination |
| | | length = getNextLength(in, pos); |
| | | String destinationString = new String(in, pos, length, "UTF-8"); |
| | | this.destination = Short.valueOf(destinationString); |
| | | this.destination = Integer.valueOf(destinationString); |
| | | pos += length +1; |
| | | |
| | | } catch (UnsupportedEncodingException e) |