| | |
| | | */ |
| | | package org.opends.server.replication.plugin; |
| | | |
| | | import org.opends.server.replication.protocol.UpdateMsg; |
| | | import org.opends.server.replication.protocol.LDAPUpdateMsg; |
| | | |
| | | /** |
| | | * This is a bag class to hold an update to replay in the queue of updates to |
| | |
| | | */ |
| | | public class UpdateToReplay |
| | | { |
| | | private UpdateMsg updateMessage = null; |
| | | private ReplicationDomain replicationDomain = null; |
| | | private LDAPUpdateMsg updateMessage = null; |
| | | private LDAPReplicationDomain replicationDomain = null; |
| | | |
| | | /** |
| | | * Construct the object associating the update message with the replication |
| | |
| | | * @param replicationDomain The replication domain to use for replaying the |
| | | * change from the update message |
| | | */ |
| | | public UpdateToReplay(UpdateMsg updateMessage, |
| | | ReplicationDomain replicationDomain) |
| | | public UpdateToReplay(LDAPUpdateMsg updateMessage, |
| | | LDAPReplicationDomain replicationDomain) |
| | | { |
| | | this.updateMessage = updateMessage; |
| | | this.replicationDomain = replicationDomain; |
| | |
| | | * Getter for update message. |
| | | * @return The update message |
| | | */ |
| | | public UpdateMsg getUpdateMessage() |
| | | public LDAPUpdateMsg getUpdateMessage() |
| | | { |
| | | return updateMessage; |
| | | } |
| | |
| | | * Getter for replication domain. |
| | | * @return The replication domain |
| | | */ |
| | | public ReplicationDomain getReplicationDomain() |
| | | public LDAPReplicationDomain getReplicationDomain() |
| | | { |
| | | return replicationDomain; |
| | | } |