|
||||||||||
| 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 ReplicaIds of the ReplicaIds 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 Operations logged in this storage. |
int |
getLogSize(java.lang.String replicaId)
Returns the number of Operations 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 ReplicationStorepublic void close()
ReplicationStore
close in interface ReplicationStorepublic java.lang.String getReplicaId()
ReplicationStoreReplicaId of the ReplicaId that this storage
is associated with.
getReplicaId in interface ReplicationStorepublic java.util.Set<java.lang.String> getKnownReplicaIds()
ReplicationStoreReplicaIds of the ReplicaIds that
belongs to the same cluster.
getKnownReplicaIds in interface ReplicationStorepublic javax.naming.Name getDN(java.util.UUID uuid)
ReplicationStoreName 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 ReplicationStorepublic boolean removeUUID(java.util.UUID uuid)
ReplicationStore
removeUUID in interface ReplicationStorepublic void putLog(Operation op)
ReplicationStore
putLog in interface ReplicationStore
public ReplicationLogIterator getLogs(CSNVector updateVector,
boolean inclusive)
ReplicationStoreCSNVector.
getLogs in interface ReplicationStoreinclusive - true if you want to include
updateVector itself in the result set.
public ReplicationLogIterator getLogs(CSN fromCSN,
boolean inclusive)
ReplicationStoreCSN.
getLogs in interface ReplicationStoreinclusive - true if you want to include fromCSN
itself in the result set.
public int removeLogs(CSN toCSN,
boolean inclusive)
ReplicationStoreCSN.
removeLogs in interface ReplicationStoreinclusive - true if you want to delete the
toCSN itself, too.
Operationspublic int getLogSize()
ReplicationStoreOperations logged in this storage.
getLogSize in interface ReplicationStorepublic int getLogSize(java.lang.String replicaId)
ReplicationStoreOperations logged by
the ReplicaId with the specified ReplicaId
in this storage .
getLogSize in interface ReplicationStorepublic CSNVector getUpdateVector()
ReplicationStore
getUpdateVector in interface ReplicationStorepublic CSNVector getPurgeVector()
ReplicationStore
getPurgeVector in interface ReplicationStore
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||