| File was renamed from opends/src/server/org/opends/server/synchronization/SynchronizationMessage.java |
| | |
| | | * |
| | | * Portions Copyright 2006 Sun Microsystems, Inc. |
| | | */ |
| | | package org.opends.server.synchronization; |
| | | package org.opends.server.synchronization.protocol; |
| | | |
| | | import java.io.Serializable; |
| | | import java.io.UnsupportedEncodingException; |
| | | import java.util.zip.DataFormatException; |
| | | |
| | |
| | | * When extending this class one should also create a new MSG_TYPE |
| | | * and should update the generateMsg() method. |
| | | */ |
| | | public abstract class SynchronizationMessage implements Serializable |
| | | public abstract class SynchronizationMessage |
| | | { |
| | | static final byte MSG_TYPE_MODIFY_REQUEST = 1; |
| | | static final byte MSG_TYPE_ADD_REQUEST = 2; |
| | |
| | | static final byte MSG_TYPE_WINDOW = 8; |
| | | |
| | | /** |
| | | * Do the processing necessary when the message is received. |
| | | * |
| | | * @param domain The Synchronization domain where the messages was received. |
| | | * @return an UpdateMessage if the processing result is an UpdateMessage. |
| | | */ |
| | | public abstract UpdateMessage processReceive(SynchronizationDomain domain); |
| | | |
| | | /** |
| | | * Return the byte[] representation of this message. |
| | | * Depending on the message type, the first byte of the byte[] must be. |
| | | * MSG_TYPE_MODIFY_REQUEST |