public class BaseDNDescriptor extends Object implements Comparable<BaseDNDescriptor>
Modifier and Type | Class and Description |
---|---|
static class |
BaseDNDescriptor.Type
An enumeration describing the type of base DN for a given backend.
|
Constructor and Description |
---|
BaseDNDescriptor(BaseDNDescriptor.Type type,
org.forgerock.opendj.ldap.Dn baseDn,
BackendDescriptor backend,
int nEntries,
long ageOfOldestMissingChange,
int missingChanges)
Constructor for this class.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(BaseDNDescriptor desc) |
boolean |
equals(Object v) |
long |
getAgeOfOldestMissingChange()
Returns the age of the oldest missing change in seconds in the
replication topology for this base DN.
|
BackendDescriptor |
getBackend()
Returns the backend where this base DN is defined.
|
org.forgerock.opendj.ldap.Dn |
getDn()
Return the String DN associated with the base DN..
|
int |
getEntries()
Returns the number of entries in the backend for this base DN.
|
int |
getMissingChanges()
Returns the number of missing changes in the replication topology for
this base DN.
|
int |
getReplicaID()
Returns the ID of the replication domain associated with this base DN.
|
BaseDNDescriptor.Type |
getType()
Returns the type for this base DN.
|
int |
hashCode() |
void |
setAgeOfOldestMissingChange(long ageOfOldestMissingChange)
Sets the age of the oldest missing change in seconds in the
replication topology for this base DN.
|
void |
setBackend(BackendDescriptor backend)
Sets the backend of this base DN.
|
void |
setEntries(int nEntries)
Sets the number of entries for this base DN in this database.
|
void |
setMissingChanges(int missingChanges)
Sets the number of missing changes in the replication topology for
this base DN.
|
void |
setReplicaID(int replicaID)
Sets the ID of the replication domain associated with this base DN.
|
void |
setType(BaseDNDescriptor.Type type)
Sets the type of this base DN.
|
String |
toString() |
public BaseDNDescriptor(BaseDNDescriptor.Type type, org.forgerock.opendj.ldap.Dn baseDn, BackendDescriptor backend, int nEntries, long ageOfOldestMissingChange, int missingChanges)
type
- the type of replication.baseDn
- the base DN associated with the Replication.backend
- the backend containing this base DN.nEntries
- the number of entries for the base DN.ageOfOldestMissingChange
- the number of missing changes.missingChanges
- the number of missing changes.public org.forgerock.opendj.ldap.Dn getDn()
public int compareTo(BaseDNDescriptor desc)
compareTo
in interface Comparable<BaseDNDescriptor>
public int getEntries()
public int getMissingChanges()
public void setMissingChanges(int missingChanges)
missingChanges
- the missing changes.public long getAgeOfOldestMissingChange()
public void setAgeOfOldestMissingChange(long ageOfOldestMissingChange)
ageOfOldestMissingChange
- the age of the oldest missing change in
seconds in the replication topology for this base DN.public BaseDNDescriptor.Type getType()
public BackendDescriptor getBackend()
public void setBackend(BackendDescriptor backend)
backend
- the backend for this base DN.public void setType(BaseDNDescriptor.Type type)
type
- the new type for this base DN.public void setEntries(int nEntries)
nEntries
- the number of entries.public int getReplicaID()
public void setReplicaID(int replicaID)
replicaID
- the ID of the replication domain associated with this base
DN.Copyright © 2010-2017 ForgeRock AS. All Rights Reserved.