|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opends.server.replication.plugin.PendingChange
public class PendingChange
This class is use to store an operation currently in progress and not yet committed in the database.
Constructor Summary | |
---|---|
PendingChange(ChangeNumber changeNumber,
PluginOperation op,
UpdateMessage msg)
Construct a new PendingChange. |
Method Summary | |
---|---|
void |
addDependency(ChangeNumber changeNumber)
Add the given ChangeNumber in the list of dependencies of this PendingChange. |
int |
compareTo(PendingChange o)
|
boolean |
dependenciesIsCovered(ServerState state)
Check if the given ServerState covers the dependencies of this PendingChange. |
ChangeNumber |
getChangeNumber()
Get the ChangeNumber associated to this PendingChange. |
UpdateMessage |
getMsg()
Get the message associated to this PendingChange. |
PluginOperation |
getOp()
Get the operation associated to the PendingChange. |
DN |
getTargetDN()
Get the Target DN of this message. |
boolean |
isCommitted()
Check if a Change is already committed to the database. |
void |
setCommitted(boolean committed)
Set the committed status of a Pending Change. |
void |
setMsg(UpdateMessage msg)
Set the message associated to the PendingChange. |
void |
setOp(PluginOperation op)
Set the operation asociated to this PendingChange. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PendingChange(ChangeNumber changeNumber, PluginOperation op, UpdateMessage msg)
changeNumber
- the ChangeNumber of useop
- the operation to usemsg
- the message to use (can be null for local operations)Method Detail |
---|
public boolean isCommitted()
public void setCommitted(boolean committed)
committed
- status that must be setpublic ChangeNumber getChangeNumber()
public UpdateMessage getMsg()
public void setMsg(UpdateMessage msg)
msg
- the messagepublic PluginOperation getOp()
public void setOp(PluginOperation op)
op
- The operation associated to this PendingChange.public void addDependency(ChangeNumber changeNumber)
changeNumber
- The ChangeNumber to add in the list of dependencies
of this PendingChange.public boolean dependenciesIsCovered(ServerState state)
state
- The ServerState for which dependencies must be checked,
public DN getTargetDN()
public int compareTo(PendingChange o)
compareTo
in interface java.lang.Comparable<PendingChange>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |