Return-Path: X-Original-To: apmail-directory-commits-archive@www.apache.org Delivered-To: apmail-directory-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id EA11F10206 for ; Tue, 13 Aug 2013 15:43:22 +0000 (UTC) Received: (qmail 63434 invoked by uid 500); 13 Aug 2013 15:43:21 -0000 Delivered-To: apmail-directory-commits-archive@directory.apache.org Received: (qmail 63215 invoked by uid 500); 13 Aug 2013 15:43:19 -0000 Mailing-List: contact commits-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@directory.apache.org Delivered-To: mailing list commits@directory.apache.org Received: (qmail 63062 invoked by uid 99); 13 Aug 2013 15:43:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Aug 2013 15:43:18 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Aug 2013 15:43:12 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id A1D0F2388BA2 for ; Tue, 13 Aug 2013 15:42:27 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r874484 [7/45] - in /websites/production/directory/content/mavibot/gen-docs: ./ 1.0.0-M1/ 1.0.0-M1/apidocs/ 1.0.0-M1/apidocs/org/ 1.0.0-M1/apidocs/org/apache/ 1.0.0-M1/apidocs/org/apache/directory/ 1.0.0-M1/apidocs/org/apache/directory/mavi... Date: Tue, 13 Aug 2013 15:42:17 -0000 To: commits@directory.apache.org From: elecharny@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20130813154227.A1D0F2388BA2@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Added: websites/production/directory/content/mavibot/gen-docs/1.0.0-M1/apidocs/org/apache/directory/mavibot/btree/MemoryHolder.html ============================================================================== --- websites/production/directory/content/mavibot/gen-docs/1.0.0-M1/apidocs/org/apache/directory/mavibot/btree/MemoryHolder.html (added) +++ websites/production/directory/content/mavibot/gen-docs/1.0.0-M1/apidocs/org/apache/directory/mavibot/btree/MemoryHolder.html Tue Aug 13 15:42:13 2013 @@ -0,0 +1,300 @@ + + + + + + +MemoryHolder (ApacheDS MVCC BTree implementation 1.0.0-M1 API) + + + + + + + + + + + +
+
org.apache.directory.mavibot.btree
+

Class MemoryHolder<K,V>

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.apache.directory.mavibot.btree.MemoryHolder<K,V>
    • +
    +
  • +
+
+
    +
  • +
    Type Parameters:
    K - The type of the BTree key
    V - The type of the BTree value
    +
    +
    All Implemented Interfaces:
    +
    ElementHolder<V,K,V>
    +
    +
    +
    +
    public class MemoryHolder<K,V>
    +extends Object
    +implements ElementHolder<V,K,V>
    +
    A In-Memory Value holder. The value is always present in memory.
    +
    Author:
    +
    Mavibot labs Project
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + + + +
        +
      • +

        MemoryHolder

        +
        public MemoryHolder(BTree<K,V> btree,
        +            V value)
        +
        Create a new holder storing an offset and a SoftReference containing the value.
        +
        Parameters:
        offset - The offset in disk for this value
        value - The value to store into a SoftReference
        +
      • +
      +
    • +
    + + +
  • +
+
+
+ + + + + +

Copyright © 2012-2013 Apache Mavibot Project Parent. All Rights Reserved.

+ + Added: websites/production/directory/content/mavibot/gen-docs/1.0.0-M1/apidocs/org/apache/directory/mavibot/btree/Modification.html ============================================================================== --- websites/production/directory/content/mavibot/gen-docs/1.0.0-M1/apidocs/org/apache/directory/mavibot/btree/Modification.html (added) +++ websites/production/directory/content/mavibot/gen-docs/1.0.0-M1/apidocs/org/apache/directory/mavibot/btree/Modification.html Tue Aug 13 15:42:13 2013 @@ -0,0 +1,317 @@ + + + + + + +Modification (ApacheDS MVCC BTree implementation 1.0.0-M1 API) + + + + + + + + + + + +
+
org.apache.directory.mavibot.btree
+

Class Modification<K,V>

+
+
+ +
+
    +
  • +
    Type Parameters:
    K - The key type
    V - The value type
    +
    +
    Direct Known Subclasses:
    +
    Addition, Deletion, PoisonPill
    +
    +
    +
    +
    public abstract class Modification<K,V>
    +extends Tuple<K,V>
    +
    An abstract class used to store a modification done on a BTree.
    +
    Author:
    +
    Mavibot labs Project
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      static byteADDITION +
      The byte used to define an Addition in the serialized journal
      +
      static byteDELETION +
      The byte used to define a Deletion in the serialized journal
      +
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + + + +
      Constructors 
      ModifierConstructor and Description
      protected Modification(K key, + V value) +
      Create a new Modification instance.
      +
      +
    • +
    + + +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        ADDITION

        +
        public static final byte ADDITION
        +
        The byte used to define an Addition in the serialized journal
        +
        See Also:
        Constant Field Values
        +
      • +
      + + + +
        +
      • +

        DELETION

        +
        public static final byte DELETION
        +
        The byte used to define a Deletion in the serialized journal
        +
        See Also:
        Constant Field Values
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + + + +
        +
      • +

        Modification

        +
        protected Modification(K key,
        +            V value)
        +
        Create a new Modification instance.
        +
        Parameters:
        key - The key being modified
        value - The value being modified
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2012-2013 Apache Mavibot Project Parent. All Rights Reserved.

+ + Added: websites/production/directory/content/mavibot/gen-docs/1.0.0-M1/apidocs/org/apache/directory/mavibot/btree/PoisonPill.html ============================================================================== --- websites/production/directory/content/mavibot/gen-docs/1.0.0-M1/apidocs/org/apache/directory/mavibot/btree/PoisonPill.html (added) +++ websites/production/directory/content/mavibot/gen-docs/1.0.0-M1/apidocs/org/apache/directory/mavibot/btree/PoisonPill.html Tue Aug 13 15:42:13 2013 @@ -0,0 +1,271 @@ + + + + + + +PoisonPill (ApacheDS MVCC BTree implementation 1.0.0-M1 API) + + + + + + + + + + + +
+
org.apache.directory.mavibot.btree
+

Class PoisonPill<K,V>

+
+
+ +
+
    +
  • +
    Type Parameters:
    K - The key type
    V - The value type
    +
    +
    +
    public class PoisonPill<K,V>
    +extends Modification<K,V>
    +
    This is special class which is injected into the journal queue to tell + the journal thread that it should stop.
    +
    Author:
    +
    Mavibot labs Project
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        PoisonPill

        +
        public PoisonPill()
        +
        Create a new PoisonPill instance.
        +
        Parameters:
        key - The key being added
        value - The value being added
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2012-2013 Apache Mavibot Project Parent. All Rights Reserved.

+ + Added: websites/production/directory/content/mavibot/gen-docs/1.0.0-M1/apidocs/org/apache/directory/mavibot/btree/RecordManager.html ============================================================================== --- websites/production/directory/content/mavibot/gen-docs/1.0.0-M1/apidocs/org/apache/directory/mavibot/btree/RecordManager.html (added) +++ websites/production/directory/content/mavibot/gen-docs/1.0.0-M1/apidocs/org/apache/directory/mavibot/btree/RecordManager.html Tue Aug 13 15:42:13 2013 @@ -0,0 +1,636 @@ + + + + + + +RecordManager (ApacheDS MVCC BTree implementation 1.0.0-M1 API) + + + + + + + + + + + +
+
org.apache.directory.mavibot.btree
+

Class RecordManager

+
+
+ +
+
    +
  • +
    +
    +
    public class RecordManager
    +extends Object
    +
    The RecordManager is used to manage the file in which we will store the BTrees. + A RecordManager will manage more than one BTree.
    + + It stores data in fixed size pages (default size is 512 bytes), which may be linked one to + the other if the data we want to store is too big for a page.
    +
    Author:
    +
    Mavibot labs Project
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        LOG

        +
        protected static final org.slf4j.Logger LOG
        +
        The LoggerFactory used by this class
        +
      • +
      + + + +
        +
      • +

        LOG_CHECK

        +
        protected static final org.slf4j.Logger LOG_CHECK
        +
        A dedicated logger for the check
        +
      • +
      + + + +
        +
      • +

        nbFreedPages

        +
        public AtomicLong nbFreedPages
        +
        A counter to track the number of free pages
        +
      • +
      + + + +
        +
      • +

        nbCreatedPages

        +
        public AtomicLong nbCreatedPages
        +
      • +
      + + + +
        +
      • +

        nbReusedPages

        +
        public AtomicLong nbReusedPages
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        RecordManager

        +
        public RecordManager(String fileName)
        +
        Create a Record manager which will either create the underlying file + or load an existing one. If a folder is provided, then we will create + a file with a default name : mavibot.db
        +
        Parameters:
        name - The file name, or a folder name
        +
      • +
      + + + +
        +
      • +

        RecordManager

        +
        public RecordManager(String fileName,
        +             int pageSize)
        +
        Create a Record manager which will either create the underlying file + or load an existing one. If a folder is provider, then we will create + a file with a default name : mavibot.db
        +
        Parameters:
        name - The file name, or a folder name
        pageSize - the size of a page on disk
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + + + + + + + + + +
        +
      • +

        manage

        +
        public void manage(BTree<?,?> btree,
        +          boolean internalTree)
        +            throws BTreeAlreadyManagedException,
        +                   IOException
        +
        works the same as @see #manage(BTree) except the given tree will not be linked to top level trees that will be + loaded initially if the internalTree flag is set to true
        +
        Parameters:
        btree - The new BTree to manage.
        internalTree - flag indicating if this is an internal tree
        +
        Throws:
        +
        BTreeAlreadyManagedException
        +
        IOException
        +
      • +
      + + + +
        +
      • +

        getPageSize

        +
        public int getPageSize()
        +
        Returns:
        the pageSize
        +
      • +
      + + + +
        +
      • +

        setPageSize

        +
        public void setPageSize(int pageSize)
        +
      • +
      + + + +
        +
      • +

        close

        +
        public void close()
        +           throws IOException
        +
        Close the RecordManager and flush everything on disk
        +
        Throws:
        +
        IOException
        +
      • +
      + + + + + + + +
        +
      • +

        getNbManagedTrees

        +
        public int getNbManagedTrees()
        +
        Get the number of managed trees. We don't count the CopiedPage BTree. and the Revsion BTree
        +
        Returns:
        The number of managed BTrees
        +
      • +
      + + + +
        +
      • +

        getManagedTrees

        +
        public Set<String> getManagedTrees()
        +
        Get the managed trees. We don't return the CopiedPage BTree nor the Revision BTree.
        +
        Returns:
        The managed BTrees
        +
      • +
      + + + +
        +
      • +

        getManagedTree

        +
        public BTree getManagedTree(String name)
        +
        Get one managed trees, knowing its name.
        +
        Returns:
        The managed BTrees
        +
      • +
      + + + +
        +
      • +

        isKeepRevisions

        +
        public boolean isKeepRevisions()
        +
        Returns:
        the keepRevisions
        +
      • +
      + + + +
        +
      • +

        setKeepRevisions

        +
        public void setKeepRevisions(boolean keepRevisions)
        +
        Parameters:
        keepRevisions - the keepRevisions to set
        +
      • +
      + + + + + + + + +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2012-2013 Apache Mavibot Project Parent. All Rights Reserved.

+ +