|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.directory.mitosis.store.derby.DerbyReplicationStore
public class DerbyReplicationStore
Constructor Summary | |
---|---|
DerbyReplicationStore()
|
Method Summary | |
---|---|
void |
close()
Closes this storage and releases the resources allocated when it's opened. |
javax.naming.Name |
getDN(java.util.UUID uuid)
Finds the Name of an entry with the specified UUID . |
java.util.Set<java.lang.String> |
getKnownReplicaIds()
Returns the set of ReplicaId s of the ReplicaId s that
belongs to the same cluster. |
ReplicationLogIterator |
getLogs(CSN fromCSN,
boolean inclusive)
Queries all operations that is greater than the specified CSN . |
ReplicationLogIterator |
getLogs(CSNVector updateVector,
boolean inclusive)
Queries all operations that is greater than the specified CSNVector . |
int |
getLogSize()
Returns the number of Operation s logged in this storage. |
int |
getLogSize(java.lang.String replicaId)
Returns the number of Operation s logged by
the ReplicaId with the specified ReplicaId
in this storage . |
CSNVector |
getPurgeVector()
Calculates the Purge Vector (PV) from this storage. |
java.lang.String |
getReplicaId()
Returns the ReplicaId of the ReplicaId that this storage
is associated with. |
java.lang.String |
getTablePrefix()
|
CSNVector |
getUpdateVector()
Calculates the Update Vector (UV) from this storage. |
void |
open(DirectoryService serviceCfg,
ReplicationConfiguration cfg)
Opens this storage. |
void |
putLog(Operation op)
Puts the specified operation into this storage. |
boolean |
putUUID(java.util.UUID uuid,
javax.naming.Name dn)
Associates the specified name and UUID so a user can find an entry's name from a UUID. |
int |
removeLogs(CSN toCSN,
boolean inclusive)
Removes all operations that is less than the specified CSN . |
boolean |
removeUUID(java.util.UUID uuid)
Removed the specified UUID mapping from this storage. |
void |
setTablePrefix(java.lang.String tablePrefix)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DerbyReplicationStore()
Method Detail |
---|
public java.lang.String getTablePrefix()
public void setTablePrefix(java.lang.String tablePrefix)
public void open(DirectoryService serviceCfg, ReplicationConfiguration cfg)
ReplicationStore
open
in interface ReplicationStore
public void close()
ReplicationStore
close
in interface ReplicationStore
public java.lang.String getReplicaId()
ReplicationStore
ReplicaId
of the ReplicaId
that this storage
is associated with.
getReplicaId
in interface ReplicationStore
public java.util.Set<java.lang.String> getKnownReplicaIds()
ReplicationStore
ReplicaId
s of the ReplicaId
s that
belongs to the same cluster.
getKnownReplicaIds
in interface ReplicationStore
public javax.naming.Name getDN(java.util.UUID uuid)
ReplicationStore
Name
of an entry with the specified UUID
.
getDN
in interface ReplicationStore
public boolean putUUID(java.util.UUID uuid, javax.naming.Name dn)
ReplicationStore
putUUID
in interface ReplicationStore
public boolean removeUUID(java.util.UUID uuid)
ReplicationStore
removeUUID
in interface ReplicationStore
public void putLog(Operation op)
ReplicationStore
putLog
in interface ReplicationStore
public ReplicationLogIterator getLogs(CSNVector updateVector, boolean inclusive)
ReplicationStore
CSNVector
.
getLogs
in interface ReplicationStore
inclusive
- true if you want to include
updateVector itself in the result set.public ReplicationLogIterator getLogs(CSN fromCSN, boolean inclusive)
ReplicationStore
CSN
.
getLogs
in interface ReplicationStore
inclusive
- true if you want to include fromCSN
itself in the result set.public int removeLogs(CSN toCSN, boolean inclusive)
ReplicationStore
CSN
.
removeLogs
in interface ReplicationStore
inclusive
- true if you want to delete the
toCSN itself, too.
Operation
spublic int getLogSize()
ReplicationStore
Operation
s logged in this storage.
getLogSize
in interface ReplicationStore
public int getLogSize(java.lang.String replicaId)
ReplicationStore
Operation
s logged by
the ReplicaId
with the specified ReplicaId
in this storage .
getLogSize
in interface ReplicationStore
public CSNVector getUpdateVector()
ReplicationStore
getUpdateVector
in interface ReplicationStore
public CSNVector getPurgeVector()
ReplicationStore
getPurgeVector
in interface ReplicationStore
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |