|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opends.server.backends.jeb.importLDIF.DNContext
public class DNContext
This class represents the import context for a destination base DN.
Constructor Summary | |
---|---|
DNContext()
|
Method Summary | |
---|---|
void |
addPending(DN dn)
Add specified DN to the pending map. |
java.util.Map<AttributeType,AttributeIndex> |
getAttrIndexMap()
Return the attribute type attribute index map. |
DN |
getBaseDN()
Get the destination base DN. |
BufferManager |
getBufferManager()
Return the buffer manager. |
LocalDBBackendCfg |
getConfig()
Get the configuration of the destination backend. |
EntryContainer |
getEntryContainer()
Get the entry entryContainer for the destination base DN. |
long |
getEntryInsertCount()
Get the number of new LDAP entries imported into the entry database. |
java.util.List<DN> |
getExcludeBranches()
Retrieves the set of base DNs that specify the set of entries to exclude from the import. |
java.util.ArrayList<EntryID> |
getIDs()
Get the superior IDs of the previous imported entry. |
java.util.List<DN> |
getIncludeBranches()
Retrieves the set of base DNs that specify the set of entries to include in the import. |
LDIFImportConfig |
getLDIFImportConfig()
Get the requested LDIF import configuration. |
LDIFReader |
getLDIFReader()
Get the source LDIF reader. |
DN |
getParentDN()
Get the parent DN of the previous imported entry. |
EntryID |
getParentID(DN parentDN,
DN2ID dn2id,
com.sleepycat.je.Transaction txn)
Get the Entry ID of the parent entry. |
EntryContainer |
getSrcEntryContainer()
Get the source entry entryContainer for the destination base DN. |
java.util.concurrent.BlockingQueue<WorkElement> |
getWorkQueue()
Get the work queue. |
void |
incrEntryInsertCount(long delta)
Increment the number of new LDAP entries imported into the entry database by the given amount. |
void |
removePending(DN dn)
Remove the specified DN from the pending map. |
void |
setBaseDN(DN baseDN)
Set the destination base DN. |
void |
setBufferManager(BufferManager bufferManager)
Set the substring buffer manager to the specified buffer manager. |
void |
setConfig(LocalDBBackendCfg config)
Set the configuration of the destination backend. |
void |
setEntryContainer(EntryContainer entryContainer)
Set the entry entryContainer for the destination base DN. |
void |
setExcludeBranches(java.util.List<DN> excludeBranches)
Specifies the set of base DNs that specify the set of entries to exclude from the import. |
void |
setIDs(java.util.ArrayList<EntryID> IDs)
Set the superior IDs of the previous imported entry. |
void |
setIncludeBranches(java.util.List<DN> includeBranches)
Specifies the set of base DNs that specify the set of entries to include in the import. |
void |
setIndexesTrusted()
Set all the indexes to trusted. |
void |
setLDIFImportConfig(LDIFImportConfig ldifImportConfig)
Set the requested LDIF import configuration. |
void |
setLDIFReader(LDIFReader ldifReader)
Set the source LDIF reader. |
void |
setParentDN(DN parentDN)
Set the parent DN of the previous imported entry. |
void |
setSrcEntryContainer(EntryContainer srcEntryContainer)
Set the source entry entryContainer for the destination base DN. |
void |
setWorkQueue(java.util.concurrent.BlockingQueue<WorkElement> workQueue)
Set the work queue to the specified work queue. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DNContext()
Method Detail |
---|
public java.util.concurrent.BlockingQueue<WorkElement> getWorkQueue()
public void setWorkQueue(java.util.concurrent.BlockingQueue<WorkElement> workQueue)
workQueue
- The work queue.public void setBaseDN(DN baseDN)
baseDN
- The destination base DN.public DN getBaseDN()
public void setConfig(LocalDBBackendCfg config)
config
- The destination backend configuration.public LocalDBBackendCfg getConfig()
public void setLDIFImportConfig(LDIFImportConfig ldifImportConfig)
ldifImportConfig
- The LDIF import configuration.public LDIFImportConfig getLDIFImportConfig()
public void setLDIFReader(LDIFReader ldifReader)
ldifReader
- The source LDIF reader.public LDIFReader getLDIFReader()
public void setEntryContainer(EntryContainer entryContainer)
entryContainer
- The entry entryContainer for the destination base DN.public EntryContainer getEntryContainer()
public void setSrcEntryContainer(EntryContainer srcEntryContainer)
srcEntryContainer
- The entry source entryContainer for the
destination base DN.public EntryContainer getSrcEntryContainer()
public long getEntryInsertCount()
public void incrEntryInsertCount(long delta)
delta
- The amount to add.public DN getParentDN()
public void setParentDN(DN parentDN)
parentDN
- The parent DN of the previous imported entry.public java.util.ArrayList<EntryID> getIDs()
public void setIDs(java.util.ArrayList<EntryID> IDs)
IDs
- The superior IDs of the previous imported entry.public java.util.List<DN> getExcludeBranches()
public void setExcludeBranches(java.util.List<DN> excludeBranches)
excludeBranches
- The set of base DNs that specify the set
of entries to exclude from the import.public java.util.List<DN> getIncludeBranches()
public void setIncludeBranches(java.util.List<DN> includeBranches)
includeBranches
- The set of base DNs that specify the set
of entries to include in the import.public java.util.Map<AttributeType,AttributeIndex> getAttrIndexMap()
public void setIndexesTrusted() throws com.sleepycat.je.DatabaseException
com.sleepycat.je.DatabaseException
- If the trusted value cannot be updated in the
index DB.public EntryID getParentID(DN parentDN, DN2ID dn2id, com.sleepycat.je.Transaction txn) throws com.sleepycat.je.DatabaseException
parentDN
- The parent DN.dn2id
- The DN2ID DB.txn
- A database transaction,
com.sleepycat.je.DatabaseException
- If a DB error occurs.public void addPending(DN dn)
dn
- The DN to add to the map.public void removePending(DN dn)
dn
- The DN to remove from the map.public void setBufferManager(BufferManager bufferManager)
bufferManager
- The buffer manager.public BufferManager getBufferManager()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |