You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Claus Köll (JIRA)" <ji...@apache.org> on 2012/07/17 16:15:35 UTC

[jira] [Created] (JCR-3389) Implement a MultiDataStore

Claus Köll created JCR-3389:
-------------------------------

             Summary: Implement a MultiDataStore
                 Key: JCR-3389
                 URL: https://issues.apache.org/jira/browse/JCR-3389
             Project: Jackrabbit Content Repository
          Issue Type: New Feature
          Components: jackrabbit-core
    Affects Versions: 2.4.2
            Reporter: Claus Köll
            Assignee: Claus Köll


The idea of a multidatastore is to decorate two datastores. It can be used to implement a Primary/Archive DataStore.
New binary files are saved into the primary. A archive task would move files from the primary to the backup datastore. Reading from a MultiDataStore is transparent to the jcr api. So it will always return files either from the primary or from the backup datastore.
The primary datastore can be mapped to a fast storage medium and the archive to a cheap sata or a tape library.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Updated] (JCR-3389) Implement a MultiDataStore

Posted by "Claus Köll (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JCR-3389?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Köll updated JCR-3389:
----------------------------

    Attachment: JCR-3389_3.patch

Final Patch ...
                
> Implement a MultiDataStore
> --------------------------
>
>                 Key: JCR-3389
>                 URL: https://issues.apache.org/jira/browse/JCR-3389
>             Project: Jackrabbit Content Repository
>          Issue Type: New Feature
>          Components: jackrabbit-core
>    Affects Versions: 2.4.2
>            Reporter: Claus Köll
>            Assignee: Claus Köll
>         Attachments: JCR-3389_2.patch, JCR-3389_3.patch, JCR-3389.patch
>
>
> The idea of a multidatastore is to decorate two datastores. It can be used to implement a Primary/Archive DataStore.
> New binary files are saved into the primary. A archive task would move files from the primary to the backup datastore. Reading from a MultiDataStore is transparent to the jcr api. So it will always return files either from the primary or from the backup datastore.
> The primary datastore can be mapped to a fast storage medium and the archive to a cheap sata or a tape library.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Reopened] (JCR-3389) Implement a MultiDataStore

Posted by "Marcel Reutegger (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JCR-3389?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marcel Reutegger reopened JCR-3389:
-----------------------------------


Claus, I noticed that your changes use tabs instead of spaces for indentation. Can you please fix that?

Also, woulnd't it be easier to use DocumentBuilder.newDocument().createElement() instead of implementing your own Element class?
                
> Implement a MultiDataStore
> --------------------------
>
>                 Key: JCR-3389
>                 URL: https://issues.apache.org/jira/browse/JCR-3389
>             Project: Jackrabbit Content Repository
>          Issue Type: New Feature
>          Components: jackrabbit-core
>    Affects Versions: 2.4.2
>            Reporter: Claus Köll
>            Assignee: Claus Köll
>             Fix For: 2.6
>
>         Attachments: JCR-3389_2.patch, JCR-3389_3.patch, JCR-3389.patch
>
>
> The idea of a multidatastore is to decorate two datastores. It can be used to implement a Primary/Archive DataStore.
> New binary files are saved into the primary. A archive task would move files from the primary to the backup datastore. Reading from a MultiDataStore is transparent to the jcr api. So it will always return files either from the primary or from the backup datastore.
> The primary datastore can be mapped to a fast storage medium and the archive to a cheap sata or a tape library.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (JCR-3389) Implement a MultiDataStore

Posted by "Claus Köll (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JCR-3389?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Köll updated JCR-3389:
----------------------------

    Attachment: JCR-3389.patch

First inital patch for the multi datastore. At the moment the param element could have a DataStore Element in it.
Its not generic but we can change this later if we realy need it i think.

                
> Implement a MultiDataStore
> --------------------------
>
>                 Key: JCR-3389
>                 URL: https://issues.apache.org/jira/browse/JCR-3389
>             Project: Jackrabbit Content Repository
>          Issue Type: New Feature
>          Components: jackrabbit-core
>    Affects Versions: 2.4.2
>            Reporter: Claus Köll
>            Assignee: Claus Köll
>         Attachments: JCR-3389.patch
>
>
> The idea of a multidatastore is to decorate two datastores. It can be used to implement a Primary/Archive DataStore.
> New binary files are saved into the primary. A archive task would move files from the primary to the backup datastore. Reading from a MultiDataStore is transparent to the jcr api. So it will always return files either from the primary or from the backup datastore.
> The primary datastore can be mapped to a fast storage medium and the archive to a cheap sata or a tape library.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Updated] (JCR-3389) Implement a MultiDataStore

Posted by "Claus Köll (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JCR-3389?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Köll updated JCR-3389:
----------------------------

    Attachment: JCR-3389_2.patch

Work in progress patch. Some minor code changes are missing ...
                
> Implement a MultiDataStore
> --------------------------
>
>                 Key: JCR-3389
>                 URL: https://issues.apache.org/jira/browse/JCR-3389
>             Project: Jackrabbit Content Repository
>          Issue Type: New Feature
>          Components: jackrabbit-core
>    Affects Versions: 2.4.2
>            Reporter: Claus Köll
>            Assignee: Claus Köll
>         Attachments: JCR-3389_2.patch, JCR-3389.patch
>
>
> The idea of a multidatastore is to decorate two datastores. It can be used to implement a Primary/Archive DataStore.
> New binary files are saved into the primary. A archive task would move files from the primary to the backup datastore. Reading from a MultiDataStore is transparent to the jcr api. So it will always return files either from the primary or from the backup datastore.
> The primary datastore can be mapped to a fast storage medium and the archive to a cheap sata or a tape library.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (JCR-3389) Implement a MultiDataStore

Posted by "Claus Köll (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JCR-3389?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13416244#comment-13416244 ] 

Claus Köll commented on JCR-3389:
---------------------------------

The discussion on the dev list http://markmail.org/message/g3uo6dwau6ds4l4p
                
> Implement a MultiDataStore
> --------------------------
>
>                 Key: JCR-3389
>                 URL: https://issues.apache.org/jira/browse/JCR-3389
>             Project: Jackrabbit Content Repository
>          Issue Type: New Feature
>          Components: jackrabbit-core
>    Affects Versions: 2.4.2
>            Reporter: Claus Köll
>            Assignee: Claus Köll
>
> The idea of a multidatastore is to decorate two datastores. It can be used to implement a Primary/Archive DataStore.
> New binary files are saved into the primary. A archive task would move files from the primary to the backup datastore. Reading from a MultiDataStore is transparent to the jcr api. So it will always return files either from the primary or from the backup datastore.
> The primary datastore can be mapped to a fast storage medium and the archive to a cheap sata or a tape library.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Resolved] (JCR-3389) Implement a MultiDataStore

Posted by "Claus Köll (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JCR-3389?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Köll resolved JCR-3389.
-----------------------------

       Resolution: Fixed
    Fix Version/s: 2.6

Committed revision 1409177
                
> Implement a MultiDataStore
> --------------------------
>
>                 Key: JCR-3389
>                 URL: https://issues.apache.org/jira/browse/JCR-3389
>             Project: Jackrabbit Content Repository
>          Issue Type: New Feature
>          Components: jackrabbit-core
>    Affects Versions: 2.4.2
>            Reporter: Claus Köll
>            Assignee: Claus Köll
>             Fix For: 2.6
>
>         Attachments: JCR-3389_2.patch, JCR-3389_3.patch, JCR-3389.patch
>
>
> The idea of a multidatastore is to decorate two datastores. It can be used to implement a Primary/Archive DataStore.
> New binary files are saved into the primary. A archive task would move files from the primary to the backup datastore. Reading from a MultiDataStore is transparent to the jcr api. So it will always return files either from the primary or from the backup datastore.
> The primary datastore can be mapped to a fast storage medium and the archive to a cheap sata or a tape library.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (JCR-3389) Implement a MultiDataStore

Posted by "Claus Köll (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JCR-3389?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13416236#comment-13416236 ] 

Claus Köll commented on JCR-3389:
---------------------------------

The GarbageCollector would only remove files from the archive datastore. Only the "archive task" would delete (move to archive datastore) files from the primary.
                
> Implement a MultiDataStore
> --------------------------
>
>                 Key: JCR-3389
>                 URL: https://issues.apache.org/jira/browse/JCR-3389
>             Project: Jackrabbit Content Repository
>          Issue Type: New Feature
>          Components: jackrabbit-core
>    Affects Versions: 2.4.2
>            Reporter: Claus Köll
>            Assignee: Claus Köll
>
> The idea of a multidatastore is to decorate two datastores. It can be used to implement a Primary/Archive DataStore.
> New binary files are saved into the primary. A archive task would move files from the primary to the backup datastore. Reading from a MultiDataStore is transparent to the jcr api. So it will always return files either from the primary or from the backup datastore.
> The primary datastore can be mapped to a fast storage medium and the archive to a cheap sata or a tape library.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Commented] (JCR-3389) Implement a MultiDataStore

Posted by "Claus Köll (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JCR-3389?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13504463#comment-13504463 ] 

Claus Köll commented on JCR-3389:
---------------------------------

Thank you for the hint ..  i will have a look at your suggestions.
                
> Implement a MultiDataStore
> --------------------------
>
>                 Key: JCR-3389
>                 URL: https://issues.apache.org/jira/browse/JCR-3389
>             Project: Jackrabbit Content Repository
>          Issue Type: New Feature
>          Components: jackrabbit-core
>    Affects Versions: 2.4.2
>            Reporter: Claus Köll
>            Assignee: Claus Köll
>             Fix For: 2.6
>
>         Attachments: JCR-3389_2.patch, JCR-3389_3.patch, JCR-3389.patch
>
>
> The idea of a multidatastore is to decorate two datastores. It can be used to implement a Primary/Archive DataStore.
> New binary files are saved into the primary. A archive task would move files from the primary to the backup datastore. Reading from a MultiDataStore is transparent to the jcr api. So it will always return files either from the primary or from the backup datastore.
> The primary datastore can be mapped to a fast storage medium and the archive to a cheap sata or a tape library.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (JCR-3389) Implement a MultiDataStore

Posted by "Claus Köll (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JCR-3389?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13504580#comment-13504580 ] 

Claus Köll commented on JCR-3389:
---------------------------------

Changed the indentation and also using a DocumentBuilder in revision 1414155.
Thanks for the hint.
                
> Implement a MultiDataStore
> --------------------------
>
>                 Key: JCR-3389
>                 URL: https://issues.apache.org/jira/browse/JCR-3389
>             Project: Jackrabbit Content Repository
>          Issue Type: New Feature
>          Components: jackrabbit-core
>    Affects Versions: 2.4.2
>            Reporter: Claus Köll
>            Assignee: Claus Köll
>             Fix For: 2.6
>
>         Attachments: JCR-3389_2.patch, JCR-3389_3.patch, JCR-3389.patch
>
>
> The idea of a multidatastore is to decorate two datastores. It can be used to implement a Primary/Archive DataStore.
> New binary files are saved into the primary. A archive task would move files from the primary to the backup datastore. Reading from a MultiDataStore is transparent to the jcr api. So it will always return files either from the primary or from the backup datastore.
> The primary datastore can be mapped to a fast storage medium and the archive to a cheap sata or a tape library.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Resolved] (JCR-3389) Implement a MultiDataStore

Posted by "Claus Köll (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JCR-3389?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Köll resolved JCR-3389.
-----------------------------

    Resolution: Fixed
    
> Implement a MultiDataStore
> --------------------------
>
>                 Key: JCR-3389
>                 URL: https://issues.apache.org/jira/browse/JCR-3389
>             Project: Jackrabbit Content Repository
>          Issue Type: New Feature
>          Components: jackrabbit-core
>    Affects Versions: 2.4.2
>            Reporter: Claus Köll
>            Assignee: Claus Köll
>             Fix For: 2.6
>
>         Attachments: JCR-3389_2.patch, JCR-3389_3.patch, JCR-3389.patch
>
>
> The idea of a multidatastore is to decorate two datastores. It can be used to implement a Primary/Archive DataStore.
> New binary files are saved into the primary. A archive task would move files from the primary to the backup datastore. Reading from a MultiDataStore is transparent to the jcr api. So it will always return files either from the primary or from the backup datastore.
> The primary datastore can be mapped to a fast storage medium and the archive to a cheap sata or a tape library.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira