You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directmemory.apache.org by "Michael André Pearce (Created JIRA)" <ji...@apache.org> on 2012/02/17 23:04:57 UTC

[jira] [Created] (DIRECTMEMORY-60) EHCache Integration

EHCache Integration
-------------------

                 Key: DIRECTMEMORY-60
                 URL: https://issues.apache.org/jira/browse/DIRECTMEMORY-60
             Project: Apache DirectMemory
          Issue Type: New Feature
            Reporter: Michael André Pearce
            Priority: Minor


Integrate DirectMemory to be used with EHCache.

--
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

       

Re: JCS integration, was: Re: [jira] [Created] (DIRECTMEMORY-60) EHCache Integration

Posted by "Raffaele P. Guidi" <ra...@gmail.com>.
Thanks, Mir, and good to hear from you.

Ciao,
    R
Il giorno 19/feb/2012 18:10, "Mir Tanvir Hossain" <ta...@mirtanvir.com> ha
scritto:

> Hi Raffaele sorry I have been silent for a while. I was put on another
> project before I could finish the whole integration with jcs. I have some
> code that does basic integration with jcs. I have some unit tests as well.
> I will attach whatever code I have as a diff to the jira.
>
> I think ehcache already has support for off the heap memory. I think they
> call it bigmemory.
>
> Thanks,
> Mir
>
> On Sun, Feb 19, 2012 at 8:07 AM, Raffaele P. Guidi <
> raffaele.p.guidi@gmail.com> wrote:
>
> > I didn't have news from mir tanvir hossain in a while
> > Il giorno 19/feb/2012 16:55, "Thomas Vandahl" <tv...@apache.org> ha
> scritto:
> >
> > > On 18.02.12 09:39, Raffaele P. Guidi wrote:
> > > > Of course the idea is that of a separate module- similarly to what
> mir
> > is
> > > > doing with JCS. But having ehcache a very large use base this could
> > > really
> > > > spread adoption.
> > >
> > > Are there any news on the status of the JCS integration?
> > >
> > > Bye, Thomas.
> > >
> >
>

Re: JCS integration, was: Re: [jira] [Created] (DIRECTMEMORY-60) EHCache Integration

Posted by Mir Tanvir Hossain <ta...@mirtanvir.com>.
Hi Raffaele sorry I have been silent for a while. I was put on another
project before I could finish the whole integration with jcs. I have some
code that does basic integration with jcs. I have some unit tests as well.
I will attach whatever code I have as a diff to the jira.

I think ehcache already has support for off the heap memory. I think they
call it bigmemory.

Thanks,
Mir

On Sun, Feb 19, 2012 at 8:07 AM, Raffaele P. Guidi <
raffaele.p.guidi@gmail.com> wrote:

> I didn't have news from mir tanvir hossain in a while
> Il giorno 19/feb/2012 16:55, "Thomas Vandahl" <tv...@apache.org> ha scritto:
>
> > On 18.02.12 09:39, Raffaele P. Guidi wrote:
> > > Of course the idea is that of a separate module- similarly to what mir
> is
> > > doing with JCS. But having ehcache a very large use base this could
> > really
> > > spread adoption.
> >
> > Are there any news on the status of the JCS integration?
> >
> > Bye, Thomas.
> >
>

Re: JCS integration, was: Re: [jira] [Created] (DIRECTMEMORY-60) EHCache Integration

Posted by "Raffaele P. Guidi" <ra...@gmail.com>.
I didn't have news from mir tanvir hossain in a while
Il giorno 19/feb/2012 16:55, "Thomas Vandahl" <tv...@apache.org> ha scritto:

> On 18.02.12 09:39, Raffaele P. Guidi wrote:
> > Of course the idea is that of a separate module- similarly to what mir is
> > doing with JCS. But having ehcache a very large use base this could
> really
> > spread adoption.
>
> Are there any news on the status of the JCS integration?
>
> Bye, Thomas.
>

JCS integration, was: Re: [jira] [Created] (DIRECTMEMORY-60) EHCache Integration

Posted by Thomas Vandahl <tv...@apache.org>.
On 18.02.12 09:39, Raffaele P. Guidi wrote:
> Of course the idea is that of a separate module- similarly to what mir is
> doing with JCS. But having ehcache a very large use base this could really
> spread adoption.

Are there any news on the status of the JCS integration?

Bye, Thomas.

Re: [jira] [Created] (DIRECTMEMORY-60) EHCache Integration

Posted by Simone Tripodi <si...@apache.org>.
Thanks both for the clarification, I will take care of both issues
just after lunch!!!
have a nice we,
-Simo

http://people.apache.org/~simonetripodi/
http://simonetripodi.livejournal.com/
http://twitter.com/simonetripodi
http://www.99soft.org/



On Sat, Feb 18, 2012 at 9:49 AM, Michael André Pearce
<mi...@me.com> wrote:
> Just to clarify guys, the EHCache stuff is sitting in a separate module, created its own module pom etc.
>
> I have added a separate proposed fix at the same time for making your core cache generic, resolving issue jira 43, this though is separate from the ehcache module. For a temp solution in the ehcache module until issue 43 is resolved i have made a generic package in the ehcache module until such time the core cache becomes generic, and this can be managed/removed separately.
>
> Mike
>
>
>
>
> On 18 Feb 2012, at 08:39, Raffaele P. Guidi wrote:
>
>> ea is that of a separate module- similarly to what mir is
>> doing with JCS. But having ehcache a very large use base this could really
>> spread adoption.
>

Re: [jira] [Created] (DIRECTMEMORY-60) EHCache Integration

Posted by Michael André Pearce <mi...@me.com>.
Just to clarify guys, the EHCache stuff is sitting in a separate module, created its own module pom etc.

I have added a separate proposed fix at the same time for making your core cache generic, resolving issue jira 43, this though is separate from the ehcache module. For a temp solution in the ehcache module until issue 43 is resolved i have made a generic package in the ehcache module until such time the core cache becomes generic, and this can be managed/removed separately.

Mike




On 18 Feb 2012, at 08:39, Raffaele P. Guidi wrote:

> ea is that of a separate module- similarly to what mir is
> doing with JCS. But having ehcache a very large use base this could really
> spread adoption.


Re: [jira] [Created] (DIRECTMEMORY-60) EHCache Integration

Posted by "Raffaele P. Guidi" <ra...@gmail.com>.
Of course the idea is that of a separate module- similarly to what mir is
doing with JCS. But having ehcache a very large use base this could really
spread adoption.

Ciao,
    R
Il giorno 18/feb/2012 09:16, "Simone Tripodi" <si...@apache.org> ha
scritto:

> Hi Raf,
> I agree that having this kind of integrations is more than nice,
> anyway I would continue on having a minimal dependencies-set in the
> core module and putting integrations in separated module...
>
> I still haven't had a look at the proposed package, do you see that
> having EHC not part of the core is something affordable or there
> something that forces it has to live in the core module?
>
> TIA,
> -Simo
>
> http://people.apache.org/~simonetripodi/
> http://simonetripodi.livejournal.com/
> http://twitter.com/simonetripodi
> http://www.99soft.org/
>
>
>
> On Sat, Feb 18, 2012 at 12:07 AM, Raffaele P. Guidi
> <ra...@gmail.com> wrote:
> > I asked Michael to directly put this in a jira as he contacted me saying
> he
> > already has a working solution; integration with eh cache have been on my
> > personal roadmap since the early DM days and I think it's great stuff.
> What
> > do you guys think about it?
> >
> > Ciao,
> >     R
> > Il giorno 17/feb/2012 23:05, "Michael André Pearce (Created) (JIRA)" <
> > jira@apache.org> ha scritto:
> >
> >> EHCache Integration
> >> -------------------
> >>
> >>                 Key: DIRECTMEMORY-60
> >>                 URL:
> https://issues.apache.org/jira/browse/DIRECTMEMORY-60
> >>             Project: Apache DirectMemory
> >>          Issue Type: New Feature
> >>            Reporter: Michael André Pearce
> >>            Priority: Minor
> >>
> >>
> >> Integrate DirectMemory to be used with EHCache.
> >>
> >> --
> >> 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
> >>
> >>
> >>
>

Re: [jira] [Created] (DIRECTMEMORY-60) EHCache Integration

Posted by Simone Tripodi <si...@apache.org>.
Hi Raf,
I agree that having this kind of integrations is more than nice,
anyway I would continue on having a minimal dependencies-set in the
core module and putting integrations in separated module...

I still haven't had a look at the proposed package, do you see that
having EHC not part of the core is something affordable or there
something that forces it has to live in the core module?

TIA,
-Simo

http://people.apache.org/~simonetripodi/
http://simonetripodi.livejournal.com/
http://twitter.com/simonetripodi
http://www.99soft.org/



On Sat, Feb 18, 2012 at 12:07 AM, Raffaele P. Guidi
<ra...@gmail.com> wrote:
> I asked Michael to directly put this in a jira as he contacted me saying he
> already has a working solution; integration with eh cache have been on my
> personal roadmap since the early DM days and I think it's great stuff. What
> do you guys think about it?
>
> Ciao,
>     R
> Il giorno 17/feb/2012 23:05, "Michael André Pearce (Created) (JIRA)" <
> jira@apache.org> ha scritto:
>
>> EHCache Integration
>> -------------------
>>
>>                 Key: DIRECTMEMORY-60
>>                 URL: https://issues.apache.org/jira/browse/DIRECTMEMORY-60
>>             Project: Apache DirectMemory
>>          Issue Type: New Feature
>>            Reporter: Michael André Pearce
>>            Priority: Minor
>>
>>
>> Integrate DirectMemory to be used with EHCache.
>>
>> --
>> 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
>>
>>
>>

Re: [jira] [Created] (DIRECTMEMORY-60) EHCache Integration

Posted by "Raffaele P. Guidi" <ra...@gmail.com>.
I asked Michael to directly put this in a jira as he contacted me saying he
already has a working solution; integration with eh cache have been on my
personal roadmap since the early DM days and I think it's great stuff. What
do you guys think about it?

Ciao,
     R
Il giorno 17/feb/2012 23:05, "Michael André Pearce (Created) (JIRA)" <
jira@apache.org> ha scritto:

> EHCache Integration
> -------------------
>
>                 Key: DIRECTMEMORY-60
>                 URL: https://issues.apache.org/jira/browse/DIRECTMEMORY-60
>             Project: Apache DirectMemory
>          Issue Type: New Feature
>            Reporter: Michael André Pearce
>            Priority: Minor
>
>
> Integrate DirectMemory to be used with EHCache.
>
> --
> 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
>
>
>

Re: [jira] [Commented] (DIRECTMEMORY-60) EHCache Integration

Posted by "Raffaele P. Guidi" <ra...@gmail.com>.
Really wonderful! Thank you!

Ciao,
    R
Il giorno 25/feb/2012 11:20, "Benoit Perroud (Commented) (JIRA)" <
jira@apache.org> ha scritto:

>
>    [
> https://issues.apache.org/jira/browse/DIRECTMEMORY-60?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13216394#comment-13216394]
>
> Benoit Perroud commented on DIRECTMEMORY-60:
> --------------------------------------------
>
> Thanks for your contribution !
> I had a chance to go through you patch. It's integrated rev 1293567. I
> just reworked a few small pieces :
> - Code formatting
> - Adding ASF Licences headers
> - Remove code duplication in
> MemoryManagerServiceWithAllocationPolicyEhcacheImpl.java to throw an
> exception intead of returing null
> - Assert.fail instead of Assert.assertTrue(false) :)
>
> I really like the trick to have a class called
> net.sf.ehcache.store.offheap.OffHeapStore to enable offHeap in ehcache :)
> Multi-layered cache : here we are !
>
> Anyway, this contribution will be a real big plus for DM. Thanks a lot !
>
> > EHCache Integration
> > -------------------
> >
> >                 Key: DIRECTMEMORY-60
> >                 URL:
> https://issues.apache.org/jira/browse/DIRECTMEMORY-60
> >             Project: Apache DirectMemory
> >          Issue Type: New Feature
> >            Reporter: Michael André Pearce
> >            Priority: Minor
> >              Labels: EHCache, Integration
> >         Attachments: DIRECTMEMORY-60.tidy.zip, DIRECTMEMORY-60.zip,
> directmemory-ehcache.zip
> >
> >
> > Integrate DirectMemory to be used with EHCache.
>
> --
> 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] (DIRECTMEMORY-60) EHCache Integration

Posted by "Hudson (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRECTMEMORY-60?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13216395#comment-13216395 ] 

Hudson commented on DIRECTMEMORY-60:
------------------------------------

Integrated in directmemory-trunk #133 (See [https://builds.apache.org/job/directmemory-trunk/133/])
    DIRECTMEMORY-60 : EHCache Integration, thanks to Michael Andre Pearce for his contribution (Revision 1293567)

     Result = SUCCESS
bperroud : 
Files : 
* /incubator/directmemory/trunk/directmemory-cache/src/main/java/org/apache/directmemory/memory/MemoryManagerServiceWithAllocationPolicyImpl.java
* /incubator/directmemory/trunk/integrations/ehcache
* /incubator/directmemory/trunk/integrations/ehcache/pom.xml
* /incubator/directmemory/trunk/integrations/ehcache/src
* /incubator/directmemory/trunk/integrations/ehcache/src/main
* /incubator/directmemory/trunk/integrations/ehcache/src/main/java
* /incubator/directmemory/trunk/integrations/ehcache/src/main/java/net
* /incubator/directmemory/trunk/integrations/ehcache/src/main/java/net/sf
* /incubator/directmemory/trunk/integrations/ehcache/src/main/java/net/sf/ehcache
* /incubator/directmemory/trunk/integrations/ehcache/src/main/java/net/sf/ehcache/store
* /incubator/directmemory/trunk/integrations/ehcache/src/main/java/net/sf/ehcache/store/offheap
* /incubator/directmemory/trunk/integrations/ehcache/src/main/java/net/sf/ehcache/store/offheap/OffHeapStore.java
* /incubator/directmemory/trunk/integrations/ehcache/src/main/java/org
* /incubator/directmemory/trunk/integrations/ehcache/src/main/java/org/apache
* /incubator/directmemory/trunk/integrations/ehcache/src/main/java/org/apache/directmemory
* /incubator/directmemory/trunk/integrations/ehcache/src/main/java/org/apache/directmemory/ehcache
* /incubator/directmemory/trunk/integrations/ehcache/src/main/java/org/apache/directmemory/ehcache/DirectMemoryCache.java
* /incubator/directmemory/trunk/integrations/ehcache/src/main/java/org/apache/directmemory/ehcache/DirectMemoryStore.java
* /incubator/directmemory/trunk/integrations/ehcache/src/main/java/org/apache/directmemory/ehcache/NotifyingDirectMemoryStore.java
* /incubator/directmemory/trunk/integrations/ehcache/src/main/java/org/apache/directmemory/memory
* /incubator/directmemory/trunk/integrations/ehcache/src/main/java/org/apache/directmemory/memory/MemoryManagerServiceWithAllocationPolicyEhcacheImpl.java
* /incubator/directmemory/trunk/integrations/ehcache/src/test
* /incubator/directmemory/trunk/integrations/ehcache/src/test/java
* /incubator/directmemory/trunk/integrations/ehcache/src/test/java/org
* /incubator/directmemory/trunk/integrations/ehcache/src/test/java/org/apache
* /incubator/directmemory/trunk/integrations/ehcache/src/test/java/org/apache/directmemory
* /incubator/directmemory/trunk/integrations/ehcache/src/test/java/org/apache/directmemory/ehcache
* /incubator/directmemory/trunk/integrations/ehcache/src/test/java/org/apache/directmemory/ehcache/EHCacheTest.java
* /incubator/directmemory/trunk/integrations/ehcache/src/test/resources
* /incubator/directmemory/trunk/integrations/ehcache/src/test/resources/ehcache.xml
* /incubator/directmemory/trunk/integrations/ehcache/src/test/resources/logback-test.xml

                
> EHCache Integration
> -------------------
>
>                 Key: DIRECTMEMORY-60
>                 URL: https://issues.apache.org/jira/browse/DIRECTMEMORY-60
>             Project: Apache DirectMemory
>          Issue Type: New Feature
>            Reporter: Michael André Pearce
>            Priority: Minor
>              Labels: EHCache, Integration
>         Attachments: DIRECTMEMORY-60.tidy.zip, DIRECTMEMORY-60.zip, directmemory-ehcache.zip
>
>
> Integrate DirectMemory to be used with EHCache.

--
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] (DIRECTMEMORY-60) EHCache Integration

Posted by "Michael André Pearce (Updated JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRECTMEMORY-60?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael André Pearce updated DIRECTMEMORY-60:
---------------------------------------------

    Attachment: DIRECTMEMORY-60-ehcache.patch
                DIRECTMEMORY-60-directmemory-cache.patch

just renaming patch files provided with jira issue prefixed.
                
> EHCache Integration
> -------------------
>
>                 Key: DIRECTMEMORY-60
>                 URL: https://issues.apache.org/jira/browse/DIRECTMEMORY-60
>             Project: Apache DirectMemory
>          Issue Type: New Feature
>            Reporter: Michael André Pearce
>            Priority: Minor
>              Labels: EHCache, Integration
>         Attachments: DIRECTMEMORY-60-directmemory-cache.patch, DIRECTMEMORY-60-ehcache.patch, DIRECTMEMORY-60.tidy.zip, DIRECTMEMORY-60.zip, directmemory-ehcache.zip
>
>
> Integrate DirectMemory to be used with EHCache.

--
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] (DIRECTMEMORY-60) EHCache Integration

Posted by "Hudson (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRECTMEMORY-60?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13216662#comment-13216662 ] 

Hudson commented on DIRECTMEMORY-60:
------------------------------------

Integrated in directmemory-trunk #137 (See [https://builds.apache.org/job/directmemory-trunk/137/])
    DIRECTMEMORY-60 : simplify a bit the code (Revision 1293761)

     Result = SUCCESS
bperroud : 
Files : 
* /incubator/directmemory/trunk/directmemory-cache/src/main/java/org/apache/directmemory/memory/MemoryManagerServiceWithAllocationPolicyImpl.java
* /incubator/directmemory/trunk/integrations/ehcache/src/main/java/org/apache/directmemory/ehcache/DirectMemoryCache.java
* /incubator/directmemory/trunk/integrations/ehcache/src/main/java/org/apache/directmemory/memory

                
> EHCache Integration
> -------------------
>
>                 Key: DIRECTMEMORY-60
>                 URL: https://issues.apache.org/jira/browse/DIRECTMEMORY-60
>             Project: Apache DirectMemory
>          Issue Type: New Feature
>            Reporter: Michael André Pearce
>            Priority: Minor
>              Labels: EHCache, Integration
>         Attachments: DIRECTMEMORY-60.tidy.zip, DIRECTMEMORY-60.zip, directmemory-ehcache.zip
>
>
> Integrate DirectMemory to be used with EHCache.

--
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] (DIRECTMEMORY-60) EHCache Integration

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

Christoph Engelbert updated DIRECTMEMORY-60:
--------------------------------------------

    Assignee: Benoit Perroud
    
> EHCache Integration
> -------------------
>
>                 Key: DIRECTMEMORY-60
>                 URL: https://issues.apache.org/jira/browse/DIRECTMEMORY-60
>             Project: Apache DirectMemory
>          Issue Type: New Feature
>            Reporter: Michael André Pearce
>            Assignee: Benoit Perroud
>            Priority: Minor
>              Labels: EHCache, Integration
>             Fix For: 0.2
>
>         Attachments: DIRECTMEMORY-60-directmemory-cache.patch, DIRECTMEMORY-60-ehcache.patch, DIRECTMEMORY-60.tidy.zip, DIRECTMEMORY-60.zip, directmemory-ehcache.zip
>
>
> Integrate DirectMemory to be used with EHCache.

--
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] (DIRECTMEMORY-60) EHCache Integration

Posted by "Michael André Pearce (Updated JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRECTMEMORY-60?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael André Pearce updated DIRECTMEMORY-60:
---------------------------------------------

    Attachment: DIRECTMEMORY-60.tidy.zip

just a tidy on previous
                
> EHCache Integration
> -------------------
>
>                 Key: DIRECTMEMORY-60
>                 URL: https://issues.apache.org/jira/browse/DIRECTMEMORY-60
>             Project: Apache DirectMemory
>          Issue Type: New Feature
>            Reporter: Michael André Pearce
>            Priority: Minor
>              Labels: EHCache, Integration
>         Attachments: DIRECTMEMORY-60.tidy.zip, DIRECTMEMORY-60.zip, directmemory-ehcache.zip
>
>
> Integrate DirectMemory to be used with EHCache.

--
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] (DIRECTMEMORY-60) EHCache Integration

Posted by "Michael André Pearce (Updated JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRECTMEMORY-60?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael André Pearce updated DIRECTMEMORY-60:
---------------------------------------------

    Attachment: directmemory-ehcache.zip

Proposed new module to support ehcache integration, includes suggestions to make CacheService/CacheServiceImpl generic implementation which is discussed and suggested code presented found in JIRA issue 
https://issues.apache.org/jira/browse/DIRECTMEMORY-43

As temporary work around the suggested altered code is in package "org.apache.directmemory.cache.generic" this can change and the temp work around can be removed when these changes are introduced into the main directmemory-cache module.

Also includes a non-singleton implementation (req for ehcache impl) which can be used instead of the Static signleton Cache found in directmemory-cache, suggest this can be migrated to main cache module.

Lastly the two main files are:

net.sf.ehcache.store.offheap.OffHeapStore 
This is what EHCache is looking for when using off heap ehcache settings, with the reflective methods that get invoked and allows us to wire in our own Store.

org.apache.directmemory.ehcache.DirectMemoryStore
This is our OffHeapStore implementation using the DirectMemoryCache. Currently if using EHCache can only use OffHeap, need to work on further/better integration with the pools provided to allow multitiered cache's.

See tests for example of Ehcache being used, and ehcache.xml config to use the store.
                
> EHCache Integration
> -------------------
>
>                 Key: DIRECTMEMORY-60
>                 URL: https://issues.apache.org/jira/browse/DIRECTMEMORY-60
>             Project: Apache DirectMemory
>          Issue Type: New Feature
>            Reporter: Michael André Pearce
>            Priority: Minor
>              Labels: EHCache, Integration
>         Attachments: directmemory-ehcache.zip
>
>
> Integrate DirectMemory to be used with EHCache.

--
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] (DIRECTMEMORY-60) EHCache Integration

Posted by "Michael André Pearce (Updated JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRECTMEMORY-60?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael André Pearce updated DIRECTMEMORY-60:
---------------------------------------------

    Attachment: DIRECTMEMORY-60.zip

Updated code for 0.6.0-SNAPSHOT - now supports ehcache to configure onheap along with offheap memory now, also.

Many thanks to Simone for pursuing making directmemory core generic, this has allowed me to remove the generic work around class's that were a nasty workaround.

Can someone please review with a view to create the ehcache plugin module.

Next will be looking at either diskstore backing or start to support ttl and tti etc configurations in the offheap. Have noted pointer already has created and lasthit values, if anyone can confirm if these are what was envisaged for these values, and if already working in the core?

Also i want to add some documentation for ehcache stuff for usage and sample examples, if someone wouldn't mind pointing me in the direction of a wiki, i could start documenting this on.

Many thanks
Mike
                
> EHCache Integration
> -------------------
>
>                 Key: DIRECTMEMORY-60
>                 URL: https://issues.apache.org/jira/browse/DIRECTMEMORY-60
>             Project: Apache DirectMemory
>          Issue Type: New Feature
>            Reporter: Michael André Pearce
>            Priority: Minor
>              Labels: EHCache, Integration
>         Attachments: DIRECTMEMORY-60.zip, directmemory-ehcache.zip
>
>
> Integrate DirectMemory to be used with EHCache.

--
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] (DIRECTMEMORY-60) EHCache Integration

Posted by "Michael André Pearce (Commented JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRECTMEMORY-60?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13216826#comment-13216826 ] 

Michael André Pearce commented on DIRECTMEMORY-60:
--------------------------------------------------

containsKey method moved from DirectMemoryCache to CacheService to remove DirectMemoryCache class, this is quite normal that you can check a key exists in a cahce. Also see map implementation interface which essentially most caches are glorified maps, expose a method containsKey.

Also to note proposed JSR107  java cache api, expresses that a method 

boolean containsKey(K key)

I think this is wise we expose these methods where and when we can, so being JSR107 compliant cache later on will bring dividends.
                
> EHCache Integration
> -------------------
>
>                 Key: DIRECTMEMORY-60
>                 URL: https://issues.apache.org/jira/browse/DIRECTMEMORY-60
>             Project: Apache DirectMemory
>          Issue Type: New Feature
>            Reporter: Michael André Pearce
>            Priority: Minor
>              Labels: EHCache, Integration
>         Attachments: DIRECTMEMORY-60-directmemory-cache.patch, DIRECTMEMORY-60-ehcache.patch, DIRECTMEMORY-60.tidy.zip, DIRECTMEMORY-60.zip, directmemory-ehcache.zip
>
>
> Integrate DirectMemory to be used with EHCache.

--
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

       

Re: [jira] [Commented] (DIRECTMEMORY-60) EHCache Integration

Posted by Michael André Pearce <mi...@me.com>.
Thanks, haha yes I need to sort test cases out, especially as I think element is how ehache maintains tti and ttl on the elements, but I need to write test cases and fix things that aren't working. Also just a side note where/how do we document up things like this? I noticed the default wiki isn't started at all yet are we doing something different?

Sent from my iPhone

On 25 Feb 2012, at 10:19, "Benoit Perroud (Commented) (JIRA)" <ji...@apache.org> wrote:

> 
>    [ https://issues.apache.org/jira/browse/DIRECTMEMORY-60?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13216394#comment-13216394 ] 
> 
> Benoit Perroud commented on DIRECTMEMORY-60:
> --------------------------------------------
> 
> Thanks for your contribution ! 
> I had a chance to go through you patch. It's integrated rev 1293567. I just reworked a few small pieces : 
> - Code formatting
> - Adding ASF Licences headers
> - Remove code duplication in MemoryManagerServiceWithAllocationPolicyEhcacheImpl.java to throw an exception intead of returing null
> - Assert.fail instead of Assert.assertTrue(false) :)
> 
> I really like the trick to have a class called net.sf.ehcache.store.offheap.OffHeapStore to enable offHeap in ehcache :) Multi-layered cache : here we are !
> 
> Anyway, this contribution will be a real big plus for DM. Thanks a lot !
> 
>> EHCache Integration
>> -------------------
>> 
>>                Key: DIRECTMEMORY-60
>>                URL: https://issues.apache.org/jira/browse/DIRECTMEMORY-60
>>            Project: Apache DirectMemory
>>         Issue Type: New Feature
>>           Reporter: Michael André Pearce
>>           Priority: Minor
>>             Labels: EHCache, Integration
>>        Attachments: DIRECTMEMORY-60.tidy.zip, DIRECTMEMORY-60.zip, directmemory-ehcache.zip
>> 
>> 
>> Integrate DirectMemory to be used with EHCache.
> 
> --
> 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] (DIRECTMEMORY-60) EHCache Integration

Posted by "Benoit Perroud (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRECTMEMORY-60?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13216394#comment-13216394 ] 

Benoit Perroud commented on DIRECTMEMORY-60:
--------------------------------------------

Thanks for your contribution ! 
I had a chance to go through you patch. It's integrated rev 1293567. I just reworked a few small pieces : 
- Code formatting
- Adding ASF Licences headers
- Remove code duplication in MemoryManagerServiceWithAllocationPolicyEhcacheImpl.java to throw an exception intead of returing null
- Assert.fail instead of Assert.assertTrue(false) :)

I really like the trick to have a class called net.sf.ehcache.store.offheap.OffHeapStore to enable offHeap in ehcache :) Multi-layered cache : here we are !

Anyway, this contribution will be a real big plus for DM. Thanks a lot !
                
> EHCache Integration
> -------------------
>
>                 Key: DIRECTMEMORY-60
>                 URL: https://issues.apache.org/jira/browse/DIRECTMEMORY-60
>             Project: Apache DirectMemory
>          Issue Type: New Feature
>            Reporter: Michael André Pearce
>            Priority: Minor
>              Labels: EHCache, Integration
>         Attachments: DIRECTMEMORY-60.tidy.zip, DIRECTMEMORY-60.zip, directmemory-ehcache.zip
>
>
> Integrate DirectMemory to be used with EHCache.

--
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] (DIRECTMEMORY-60) EHCache Integration

Posted by "Michael André Pearce (Updated JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRECTMEMORY-60?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael André Pearce updated DIRECTMEMORY-60:
---------------------------------------------

    Attachment:     (was: ehcache.patch)
    
> EHCache Integration
> -------------------
>
>                 Key: DIRECTMEMORY-60
>                 URL: https://issues.apache.org/jira/browse/DIRECTMEMORY-60
>             Project: Apache DirectMemory
>          Issue Type: New Feature
>            Reporter: Michael André Pearce
>            Priority: Minor
>              Labels: EHCache, Integration
>         Attachments: DIRECTMEMORY-60-directmemory-cache.patch, DIRECTMEMORY-60-ehcache.patch, DIRECTMEMORY-60.tidy.zip, DIRECTMEMORY-60.zip, directmemory-ehcache.zip
>
>
> Integrate DirectMemory to be used with EHCache.

--
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] (DIRECTMEMORY-60) EHCache Integration

Posted by "Hudson (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRECTMEMORY-60?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13216397#comment-13216397 ] 

Hudson commented on DIRECTMEMORY-60:
------------------------------------

Integrated in directmemory-trunk #134 (See [https://builds.apache.org/job/directmemory-trunk/134/])
    DIRECTMEMORY-60 : add module to parent pom (Revision 1293568)

     Result = SUCCESS
bperroud : 
Files : 
* /incubator/directmemory/trunk/integrations/pom.xml

                
> EHCache Integration
> -------------------
>
>                 Key: DIRECTMEMORY-60
>                 URL: https://issues.apache.org/jira/browse/DIRECTMEMORY-60
>             Project: Apache DirectMemory
>          Issue Type: New Feature
>            Reporter: Michael André Pearce
>            Priority: Minor
>              Labels: EHCache, Integration
>         Attachments: DIRECTMEMORY-60.tidy.zip, DIRECTMEMORY-60.zip, directmemory-ehcache.zip
>
>
> Integrate DirectMemory to be used with EHCache.

--
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] (DIRECTMEMORY-60) EHCache Integration

Posted by "Hudson (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRECTMEMORY-60?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13216703#comment-13216703 ] 

Hudson commented on DIRECTMEMORY-60:
------------------------------------

Integrated in directmemory-windows #3 (See [https://builds.apache.org/job/directmemory-windows/3/])
    DIRECTMEMORY-60 : simplify a bit the code (Revision 1293761)
DIRECTMEMORY-60 : add module to parent pom (Revision 1293568)
DIRECTMEMORY-60 : EHCache Integration, thanks to Michael Andre Pearce for his contribution (Revision 1293567)

     Result = SUCCESS
bperroud : 
Files : 
* /incubator/directmemory/trunk/directmemory-cache/src/main/java/org/apache/directmemory/memory/MemoryManagerServiceWithAllocationPolicyImpl.java
* /incubator/directmemory/trunk/integrations/ehcache/src/main/java/org/apache/directmemory/ehcache/DirectMemoryCache.java
* /incubator/directmemory/trunk/integrations/ehcache/src/main/java/org/apache/directmemory/memory

bperroud : 
Files : 
* /incubator/directmemory/trunk/integrations/pom.xml

bperroud : 
Files : 
* /incubator/directmemory/trunk/directmemory-cache/src/main/java/org/apache/directmemory/memory/MemoryManagerServiceWithAllocationPolicyImpl.java
* /incubator/directmemory/trunk/integrations/ehcache
* /incubator/directmemory/trunk/integrations/ehcache/pom.xml
* /incubator/directmemory/trunk/integrations/ehcache/src
* /incubator/directmemory/trunk/integrations/ehcache/src/main
* /incubator/directmemory/trunk/integrations/ehcache/src/main/java
* /incubator/directmemory/trunk/integrations/ehcache/src/main/java/net
* /incubator/directmemory/trunk/integrations/ehcache/src/main/java/net/sf
* /incubator/directmemory/trunk/integrations/ehcache/src/main/java/net/sf/ehcache
* /incubator/directmemory/trunk/integrations/ehcache/src/main/java/net/sf/ehcache/store
* /incubator/directmemory/trunk/integrations/ehcache/src/main/java/net/sf/ehcache/store/offheap
* /incubator/directmemory/trunk/integrations/ehcache/src/main/java/net/sf/ehcache/store/offheap/OffHeapStore.java
* /incubator/directmemory/trunk/integrations/ehcache/src/main/java/org
* /incubator/directmemory/trunk/integrations/ehcache/src/main/java/org/apache
* /incubator/directmemory/trunk/integrations/ehcache/src/main/java/org/apache/directmemory
* /incubator/directmemory/trunk/integrations/ehcache/src/main/java/org/apache/directmemory/ehcache
* /incubator/directmemory/trunk/integrations/ehcache/src/main/java/org/apache/directmemory/ehcache/DirectMemoryCache.java
* /incubator/directmemory/trunk/integrations/ehcache/src/main/java/org/apache/directmemory/ehcache/DirectMemoryStore.java
* /incubator/directmemory/trunk/integrations/ehcache/src/main/java/org/apache/directmemory/ehcache/NotifyingDirectMemoryStore.java
* /incubator/directmemory/trunk/integrations/ehcache/src/main/java/org/apache/directmemory/memory
* /incubator/directmemory/trunk/integrations/ehcache/src/main/java/org/apache/directmemory/memory/MemoryManagerServiceWithAllocationPolicyEhcacheImpl.java
* /incubator/directmemory/trunk/integrations/ehcache/src/test
* /incubator/directmemory/trunk/integrations/ehcache/src/test/java
* /incubator/directmemory/trunk/integrations/ehcache/src/test/java/org
* /incubator/directmemory/trunk/integrations/ehcache/src/test/java/org/apache
* /incubator/directmemory/trunk/integrations/ehcache/src/test/java/org/apache/directmemory
* /incubator/directmemory/trunk/integrations/ehcache/src/test/java/org/apache/directmemory/ehcache
* /incubator/directmemory/trunk/integrations/ehcache/src/test/java/org/apache/directmemory/ehcache/EHCacheTest.java
* /incubator/directmemory/trunk/integrations/ehcache/src/test/resources
* /incubator/directmemory/trunk/integrations/ehcache/src/test/resources/ehcache.xml
* /incubator/directmemory/trunk/integrations/ehcache/src/test/resources/logback-test.xml

                
> EHCache Integration
> -------------------
>
>                 Key: DIRECTMEMORY-60
>                 URL: https://issues.apache.org/jira/browse/DIRECTMEMORY-60
>             Project: Apache DirectMemory
>          Issue Type: New Feature
>            Reporter: Michael André Pearce
>            Priority: Minor
>              Labels: EHCache, Integration
>         Attachments: DIRECTMEMORY-60-directmemory-cache.patch, DIRECTMEMORY-60-ehcache.patch, DIRECTMEMORY-60.tidy.zip, DIRECTMEMORY-60.zip, directmemory-ehcache.zip
>
>
> Integrate DirectMemory to be used with EHCache.

--
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] (DIRECTMEMORY-60) EHCache Integration

Posted by "Michael André Pearce (Updated JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRECTMEMORY-60?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael André Pearce updated DIRECTMEMORY-60:
---------------------------------------------

    Attachment:     (was: directmemory-cache.patch)
    
> EHCache Integration
> -------------------
>
>                 Key: DIRECTMEMORY-60
>                 URL: https://issues.apache.org/jira/browse/DIRECTMEMORY-60
>             Project: Apache DirectMemory
>          Issue Type: New Feature
>            Reporter: Michael André Pearce
>            Priority: Minor
>              Labels: EHCache, Integration
>         Attachments: DIRECTMEMORY-60-directmemory-cache.patch, DIRECTMEMORY-60-ehcache.patch, DIRECTMEMORY-60.tidy.zip, DIRECTMEMORY-60.zip, directmemory-ehcache.zip
>
>
> Integrate DirectMemory to be used with EHCache.

--
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] (DIRECTMEMORY-60) EHCache Integration

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

Christoph Engelbert resolved DIRECTMEMORY-60.
---------------------------------------------

    Resolution: Fixed
    
> EHCache Integration
> -------------------
>
>                 Key: DIRECTMEMORY-60
>                 URL: https://issues.apache.org/jira/browse/DIRECTMEMORY-60
>             Project: Apache DirectMemory
>          Issue Type: New Feature
>            Reporter: Michael André Pearce
>            Assignee: Benoit Perroud
>            Priority: Minor
>              Labels: EHCache, Integration
>             Fix For: 0.2
>
>         Attachments: DIRECTMEMORY-60-directmemory-cache.patch, DIRECTMEMORY-60-ehcache.patch, DIRECTMEMORY-60.tidy.zip, DIRECTMEMORY-60.zip, directmemory-ehcache.zip
>
>
> Integrate DirectMemory to be used with EHCache.

--
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] (DIRECTMEMORY-60) EHCache Integration

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

Christoph Engelbert updated DIRECTMEMORY-60:
--------------------------------------------

    Fix Version/s: 0.2
    
> EHCache Integration
> -------------------
>
>                 Key: DIRECTMEMORY-60
>                 URL: https://issues.apache.org/jira/browse/DIRECTMEMORY-60
>             Project: Apache DirectMemory
>          Issue Type: New Feature
>            Reporter: Michael André Pearce
>            Priority: Minor
>              Labels: EHCache, Integration
>             Fix For: 0.2
>
>         Attachments: DIRECTMEMORY-60-directmemory-cache.patch, DIRECTMEMORY-60-ehcache.patch, DIRECTMEMORY-60.tidy.zip, DIRECTMEMORY-60.zip, directmemory-ehcache.zip
>
>
> Integrate DirectMemory to be used with EHCache.

--
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] (DIRECTMEMORY-60) EHCache Integration

Posted by "Michael André Pearce (Updated JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRECTMEMORY-60?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael André Pearce updated DIRECTMEMORY-60:
---------------------------------------------

    Attachment: ehcache.patch
                directmemory-cache.patch

Two patches, 

directmemory-cache.patch

This moves the few bits of functionality that DirectMemoryCache was created for, these are generic/reusable methods that should really in the core, and as such updated CacheService and CacheServiceImpl.

ehcache.patch

DirectMemoryStore to directly use CacheService / CacheServiceImpl once above patch has been applied, as no need for intermediary class.
Remove some code that didn't achieve anything and should have been removed and cleaned before initial commit on OffHeapStore.

On commit of the ehcache.patch please remove class 
org.apache.directmemory.ehcache.DirectMemoryCache

                
> EHCache Integration
> -------------------
>
>                 Key: DIRECTMEMORY-60
>                 URL: https://issues.apache.org/jira/browse/DIRECTMEMORY-60
>             Project: Apache DirectMemory
>          Issue Type: New Feature
>            Reporter: Michael André Pearce
>            Priority: Minor
>              Labels: EHCache, Integration
>         Attachments: DIRECTMEMORY-60.tidy.zip, DIRECTMEMORY-60.zip, directmemory-cache.patch, directmemory-ehcache.zip, ehcache.patch
>
>
> Integrate DirectMemory to be used with EHCache.

--
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

       

Re: [jira] [Commented] (DIRECTMEMORY-60) EHCache Integration

Posted by Simone Tripodi <si...@apache.org>.
for EHCache would work like a charm without any issue.

but since we should expose these APIs in the DM core module, their
usage could be not well interpreted and users could apply that pattern
- despite we can report DM correct usage in docs, APIs shouldn't
invite users on misunderstandings.

http://people.apache.org/~simonetripodi/
http://simonetripodi.livejournal.com/
http://twitter.com/simonetripodi
http://www.99soft.org/



On Sun, Feb 26, 2012 at 9:19 PM, Michael André Pearce
<mi...@me.com> wrote:
> This is within a lock. Thus it cannot be altered my another update or delete until it is completed.
>
> This follows the very similar style used in ehcache on memory store, this ensures behaviour of trying to update or remove an object which didnt exists so that the user knows if on removal or update of a key if an element existed already.
>
>
> On 26 Feb 2012, at 19:58, Simone Tripodi (Commented) (JIRA) wrote:
>
>>
>>    [ https://issues.apache.org/jira/browse/DIRECTMEMORY-60?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13216820#comment-13216820 ]
>>
>> Simone Tripodi commented on DIRECTMEMORY-60:
>> --------------------------------------------
>>
>> I am a little reluctant on adding checks to verify a key exists in a cache, it would induce users on applying the following pattern:
>>
>> {code}
>> if ( cacheService.containsKey( "key" ) )
>> {
>>    // in the meanwhile someone else drops "key"...
>>
>>    Object retrieved = cacheService.retrieve( "key" );
>> }
>> {code}
>>
>> that is the reason why other cache solutions, such as memcached, don't expose such APIs. Just retrieve the value and check something was cached.
>>
>>> EHCache Integration
>>> -------------------
>>>
>>>                Key: DIRECTMEMORY-60
>>>                URL: https://issues.apache.org/jira/browse/DIRECTMEMORY-60
>>>            Project: Apache DirectMemory
>>>         Issue Type: New Feature
>>>           Reporter: Michael André Pearce
>>>           Priority: Minor
>>>             Labels: EHCache, Integration
>>>        Attachments: DIRECTMEMORY-60-directmemory-cache.patch, DIRECTMEMORY-60-ehcache.patch, DIRECTMEMORY-60.tidy.zip, DIRECTMEMORY-60.zip, directmemory-ehcache.zip
>>>
>>>
>>> Integrate DirectMemory to be used with EHCache.
>>
>> --
>> 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
>>
>>
>

Re: [jira] [Commented] (DIRECTMEMORY-60) EHCache Integration

Posted by Michael André Pearce <mi...@me.com>.
just replied as got your reply…. i think checking a key exists should be exposed.


On 26 Feb 2012, at 20:19, Michael André Pearce wrote:

> This is within a lock. Thus it cannot be altered my another update or delete until it is completed.
> 
> This follows the very similar style used in ehcache on memory store, this ensures behaviour of trying to update or remove an object which didnt exists so that the user knows if on removal or update of a key if an element existed already.
> 
> 
> On 26 Feb 2012, at 19:58, Simone Tripodi (Commented) (JIRA) wrote:
> 
>> 
>>   [ https://issues.apache.org/jira/browse/DIRECTMEMORY-60?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13216820#comment-13216820 ] 
>> 
>> Simone Tripodi commented on DIRECTMEMORY-60:
>> --------------------------------------------
>> 
>> I am a little reluctant on adding checks to verify a key exists in a cache, it would induce users on applying the following pattern:
>> 
>> {code}
>> if ( cacheService.containsKey( "key" ) )
>> {
>>   // in the meanwhile someone else drops "key"...
>> 
>>   Object retrieved = cacheService.retrieve( "key" );
>> }
>> {code}
>> 
>> that is the reason why other cache solutions, such as memcached, don't expose such APIs. Just retrieve the value and check something was cached.
>> 
>>> EHCache Integration
>>> -------------------
>>> 
>>>               Key: DIRECTMEMORY-60
>>>               URL: https://issues.apache.org/jira/browse/DIRECTMEMORY-60
>>>           Project: Apache DirectMemory
>>>        Issue Type: New Feature
>>>          Reporter: Michael André Pearce
>>>          Priority: Minor
>>>            Labels: EHCache, Integration
>>>       Attachments: DIRECTMEMORY-60-directmemory-cache.patch, DIRECTMEMORY-60-ehcache.patch, DIRECTMEMORY-60.tidy.zip, DIRECTMEMORY-60.zip, directmemory-ehcache.zip
>>> 
>>> 
>>> Integrate DirectMemory to be used with EHCache.
>> 
>> --
>> 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
>> 
>> 
> 


Re: [jira] [Commented] (DIRECTMEMORY-60) EHCache Integration

Posted by Simone Tripodi <si...@apache.org>.
ConcurrentHashMap doesn’t shield from “data races”. It just keeps the
HashMap data structure thread safe

http://people.apache.org/~simonetripodi/
http://simonetripodi.livejournal.com/
http://twitter.com/simonetripodi
http://www.99soft.org/



On Sun, Feb 26, 2012 at 11:01 PM, Michael André Pearce
<mi...@me.com> wrote:
> Its as safe as doing a containsKey on ConcurrentHashMap and then doing an operation.
>
>
> On 26 Feb 2012, at 21:53, Simone Tripodi wrote:
>
>> that's not what I said, what I'm saying is that *in DM*, given the
>> actual implementation, would be wrong - other cache solutions maybe
>> have smarter keys management.
>>
>> just for the record: Memcached is one of the production ready cache
>> solution that doesn't have a method for checking a key exists in the
>> storage <http://code.sixapart.com/svn/memcached/trunk/server/doc/protocol.txt>
>

Re: [jira] [Commented] (DIRECTMEMORY-60) EHCache Integration

Posted by Michael André Pearce <mi...@me.com>.
Its as safe as doing a containsKey on ConcurrentHashMap and then doing an operation.


On 26 Feb 2012, at 21:53, Simone Tripodi wrote:

> that's not what I said, what I'm saying is that *in DM*, given the
> actual implementation, would be wrong - other cache solutions maybe
> have smarter keys management.
> 
> just for the record: Memcached is one of the production ready cache
> solution that doesn't have a method for checking a key exists in the
> storage <http://code.sixapart.com/svn/memcached/trunk/server/doc/protocol.txt>


Re: [jira] [Commented] (DIRECTMEMORY-60) EHCache Integration

Posted by Simone Tripodi <si...@apache.org>.
that's not what I said, what I'm saying is that *in DM*, given the
actual implementation, would be wrong - other cache solutions maybe
have smarter keys management.

just for the record: Memcached is one of the production ready cache
solution that doesn't have a method for checking a key exists in the
storage <http://code.sixapart.com/svn/memcached/trunk/server/doc/protocol.txt>

http://people.apache.org/~simonetripodi/
http://simonetripodi.livejournal.com/
http://twitter.com/simonetripodi
http://www.99soft.org/



On Sun, Feb 26, 2012 at 10:40 PM, Michael André Pearce
<mi...@me.com> wrote:
> So Cache api's such as ehcache and the jsr107 and quite a few more are wrong?
>
>
>
> On 26 Feb 2012, at 21:33, Simone Tripodi wrote:
>
>> pointless?!? we've been writing about it for more than a hour: it
>> induces users on implementing race conditions!
>>
>> {code}
>> if ( cacheService.containsKey( "key" ) )
>> {
>>   // in the meanwhile someone else drops "key"...
>>
>>   Object retrieved = cacheService.retrieve( "key" ); // got null,
>> expected a value
>> }
>> {code}
>>
>

Re: [jira] [Commented] (DIRECTMEMORY-60) EHCache Integration

Posted by Michael André Pearce <mi...@me.com>.
So Cache api's such as ehcache and the jsr107 and quite a few more are wrong? 



On 26 Feb 2012, at 21:33, Simone Tripodi wrote:

> pointless?!? we've been writing about it for more than a hour: it
> induces users on implementing race conditions!
> 
> {code}
> if ( cacheService.containsKey( "key" ) )
> {
>   // in the meanwhile someone else drops "key"...
> 
>   Object retrieved = cacheService.retrieve( "key" ); // got null,
> expected a value
> }
> {code}
> 


Re: [jira] [Commented] (DIRECTMEMORY-60) EHCache Integration

Posted by Simone Tripodi <si...@apache.org>.
pointless?!? we've been writing about it for more than a hour: it
induces users on implementing race conditions!

{code}
if ( cacheService.containsKey( "key" ) )
{
   // in the meanwhile someone else drops "key"...

   Object retrieved = cacheService.retrieve( "key" ); // got null,
expected a value
}
{code}



http://people.apache.org/~simonetripodi/
http://simonetripodi.livejournal.com/
http://twitter.com/simonetripodi
http://www.99soft.org/



On Sun, Feb 26, 2012 at 10:08 PM, Michael André Pearce
<mi...@me.com> wrote:
> What is pointless is not exposing these methods in the CacheService, when it holds the map of keys and can so speedily expose these, without nasty hacking/work arounds.
>
> If the Cache implementation which is the user exposed cache you dont want to expose this i can understand.
>
>
> On 26 Feb 2012, at 21:00, Simone Tripodi wrote:
>
>> JSR107 will be supported not in the core API, but rather in an
>> external module - as a side note: if you are interested, you are more
>> than welcome on contributing it - that doesn't mean DM has to expose
>> that method.
>>
>> http://people.apache.org/~simonetripodi/
>> http://simonetripodi.livejournal.com/
>> http://twitter.com/simonetripodi
>> http://www.99soft.org/
>>
>>
>>
>> On Sun, Feb 26, 2012 at 9:58 PM, Michael André Pearce
>> <mi...@me.com> wrote:
>>> JSR107 specifies that you expose the method to user also.
>>>
>>> A user should always be aware that checkKey is a snapshot in time and if you need to it is for the developer to lock or single thread, and this is understood by many developers who implement cahce's which expose this.
>>>
>>>
>>>
>>> On 26 Feb 2012, at 20:50, Simone Tripodi wrote:
>>>
>>>> ou still need a shortcut? JSR107 integration module can
>>>> comfortably use that way to check keys.
>>>>
>>>> The use for a key check is potentially dangerous, as it may expire
>>>> between checking for the key, and whatever you want to do with the
>>>> stored object, and produc
>>>
>

Re: [jira] [Commented] (DIRECTMEMORY-60) EHCache Integration

Posted by Michael André Pearce <mi...@me.com>.
What is pointless is not exposing these methods in the CacheService, when it holds the map of keys and can so speedily expose these, without nasty hacking/work arounds.

If the Cache implementation which is the user exposed cache you dont want to expose this i can understand.


On 26 Feb 2012, at 21:00, Simone Tripodi wrote:

> JSR107 will be supported not in the core API, but rather in an
> external module - as a side note: if you are interested, you are more
> than welcome on contributing it - that doesn't mean DM has to expose
> that method.
> 
> http://people.apache.org/~simonetripodi/
> http://simonetripodi.livejournal.com/
> http://twitter.com/simonetripodi
> http://www.99soft.org/
> 
> 
> 
> On Sun, Feb 26, 2012 at 9:58 PM, Michael André Pearce
> <mi...@me.com> wrote:
>> JSR107 specifies that you expose the method to user also.
>> 
>> A user should always be aware that checkKey is a snapshot in time and if you need to it is for the developer to lock or single thread, and this is understood by many developers who implement cahce's which expose this.
>> 
>> 
>> 
>> On 26 Feb 2012, at 20:50, Simone Tripodi wrote:
>> 
>>> ou still need a shortcut? JSR107 integration module can
>>> comfortably use that way to check keys.
>>> 
>>> The use for a key check is potentially dangerous, as it may expire
>>> between checking for the key, and whatever you want to do with the
>>> stored object, and produc
>> 


Re: [jira] [Commented] (DIRECTMEMORY-60) EHCache Integration

Posted by Simone Tripodi <si...@apache.org>.
JSR107 will be supported not in the core API, but rather in an
external module - as a side note: if you are interested, you are more
than welcome on contributing it - that doesn't mean DM has to expose
that method.

http://people.apache.org/~simonetripodi/
http://simonetripodi.livejournal.com/
http://twitter.com/simonetripodi
http://www.99soft.org/



On Sun, Feb 26, 2012 at 9:58 PM, Michael André Pearce
<mi...@me.com> wrote:
> JSR107 specifies that you expose the method to user also.
>
> A user should always be aware that checkKey is a snapshot in time and if you need to it is for the developer to lock or single thread, and this is understood by many developers who implement cahce's which expose this.
>
>
>
> On 26 Feb 2012, at 20:50, Simone Tripodi wrote:
>
>> ou still need a shortcut? JSR107 integration module can
>> comfortably use that way to check keys.
>>
>> The use for a key check is potentially dangerous, as it may expire
>> between checking for the key, and whatever you want to do with the
>> stored object, and produc
>

Re: [jira] [Commented] (DIRECTMEMORY-60) EHCache Integration

Posted by Michael André Pearce <mi...@me.com>.
JSR107 specifies that you expose the method to user also.

A user should always be aware that checkKey is a snapshot in time and if you need to it is for the developer to lock or single thread, and this is understood by many developers who implement cahce's which expose this.


 
On 26 Feb 2012, at 20:50, Simone Tripodi wrote:

> ou still need a shortcut? JSR107 integration module can
> comfortably use that way to check keys.
> 
> The use for a key check is potentially dangerous, as it may expire
> between checking for the key, and whatever you want to do with the
> stored object, and produc


Re: [jira] [Commented] (DIRECTMEMORY-60) EHCache Integration

Posted by Simone Tripodi <si...@apache.org>.
> is it re containsKey method moved from DirectMemoryCache to CacheService to remove DirectMemoryCache class, this is quite normal that you can check a key exists in a cahce. Also see map implementation interface which essentially most caches are glorified maps, expose a method containsKey.

so why you still need a shortcut? JSR107 integration module can
comfortably use that way to check keys.

The use for a key check is potentially dangerous, as it may expire
between checking for the key, and whatever you want to do with the
stored object, and produce a race condition.

http://people.apache.org/~simonetripodi/
http://simonetripodi.livejournal.com/
http://twitter.com/simonetripodi
http://www.99soft.org/

Re: [jira] [Commented] (DIRECTMEMORY-60) EHCache Integration

Posted by Michael André Pearce <mi...@me.com>.
On the other note, proposed JSR107  java cache api, expresses that a method 

boolean containsKey(K key)




On 26 Feb 2012, at 20:30, Michael André Pearce wrote:

> I assume you are talking about remove / update methods?
> 
> If not….
> is it re containsKey method moved from DirectMemoryCache to CacheService to remove DirectMemoryCache class, this is quite normal that you can check a key exists in a cahce. Also see map implementation interface which essentially most caches are glorified maps, expose a method containsKey.
> 
> 
> 
> On 26 Feb 2012, at 20:19, Michael André Pearce wrote:
> 
>> This is within a lock. Thus it cannot be altered my another update or delete until it is completed.
>> 
>> This follows the very similar style used in ehcache on memory store, this ensures behaviour of trying to update or remove an object which didnt exists so that the user knows if on removal or update of a key if an element existed already.
>> 
>> 
>> On 26 Feb 2012, at 19:58, Simone Tripodi (Commented) (JIRA) wrote:
>> 
>>> 
>>>  [ https://issues.apache.org/jira/browse/DIRECTMEMORY-60?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13216820#comment-13216820 ] 
>>> 
>>> Simone Tripodi commented on DIRECTMEMORY-60:
>>> --------------------------------------------
>>> 
>>> I am a little reluctant on adding checks to verify a key exists in a cache, it would induce users on applying the following pattern:
>>> 
>>> {code}
>>> if ( cacheService.containsKey( "key" ) )
>>> {
>>>  // in the meanwhile someone else drops "key"...
>>> 
>>>  Object retrieved = cacheService.retrieve( "key" );
>>> }
>>> {code}
>>> 
>>> that is the reason why other cache solutions, such as memcached, don't expose such APIs. Just retrieve the value and check something was cached.
>>> 
>>>> EHCache Integration
>>>> -------------------
>>>> 
>>>>              Key: DIRECTMEMORY-60
>>>>              URL: https://issues.apache.org/jira/browse/DIRECTMEMORY-60
>>>>          Project: Apache DirectMemory
>>>>       Issue Type: New Feature
>>>>         Reporter: Michael André Pearce
>>>>         Priority: Minor
>>>>           Labels: EHCache, Integration
>>>>      Attachments: DIRECTMEMORY-60-directmemory-cache.patch, DIRECTMEMORY-60-ehcache.patch, DIRECTMEMORY-60.tidy.zip, DIRECTMEMORY-60.zip, directmemory-ehcache.zip
>>>> 
>>>> 
>>>> Integrate DirectMemory to be used with EHCache.
>>> 
>>> --
>>> 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
>>> 
>>> 
>> 
> 


Re: [jira] [Commented] (DIRECTMEMORY-60) EHCache Integration

Posted by Michael André Pearce <mi...@me.com>.
I assume you are talking about remove / update methods?

If not….
is it re containsKey method moved from DirectMemoryCache to CacheService to remove DirectMemoryCache class, this is quite normal that you can check a key exists in a cahce. Also see map implementation interface which essentially most caches are glorified maps, expose a method containsKey.



On 26 Feb 2012, at 20:19, Michael André Pearce wrote:

> This is within a lock. Thus it cannot be altered my another update or delete until it is completed.
> 
> This follows the very similar style used in ehcache on memory store, this ensures behaviour of trying to update or remove an object which didnt exists so that the user knows if on removal or update of a key if an element existed already.
> 
> 
> On 26 Feb 2012, at 19:58, Simone Tripodi (Commented) (JIRA) wrote:
> 
>> 
>>   [ https://issues.apache.org/jira/browse/DIRECTMEMORY-60?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13216820#comment-13216820 ] 
>> 
>> Simone Tripodi commented on DIRECTMEMORY-60:
>> --------------------------------------------
>> 
>> I am a little reluctant on adding checks to verify a key exists in a cache, it would induce users on applying the following pattern:
>> 
>> {code}
>> if ( cacheService.containsKey( "key" ) )
>> {
>>   // in the meanwhile someone else drops "key"...
>> 
>>   Object retrieved = cacheService.retrieve( "key" );
>> }
>> {code}
>> 
>> that is the reason why other cache solutions, such as memcached, don't expose such APIs. Just retrieve the value and check something was cached.
>> 
>>> EHCache Integration
>>> -------------------
>>> 
>>>               Key: DIRECTMEMORY-60
>>>               URL: https://issues.apache.org/jira/browse/DIRECTMEMORY-60
>>>           Project: Apache DirectMemory
>>>        Issue Type: New Feature
>>>          Reporter: Michael André Pearce
>>>          Priority: Minor
>>>            Labels: EHCache, Integration
>>>       Attachments: DIRECTMEMORY-60-directmemory-cache.patch, DIRECTMEMORY-60-ehcache.patch, DIRECTMEMORY-60.tidy.zip, DIRECTMEMORY-60.zip, directmemory-ehcache.zip
>>> 
>>> 
>>> Integrate DirectMemory to be used with EHCache.
>> 
>> --
>> 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
>> 
>> 
> 


Re: [jira] [Commented] (DIRECTMEMORY-60) EHCache Integration

Posted by Michael André Pearce <mi...@me.com>.
This is within a lock. Thus it cannot be altered my another update or delete until it is completed.

This follows the very similar style used in ehcache on memory store, this ensures behaviour of trying to update or remove an object which didnt exists so that the user knows if on removal or update of a key if an element existed already.


On 26 Feb 2012, at 19:58, Simone Tripodi (Commented) (JIRA) wrote:

> 
>    [ https://issues.apache.org/jira/browse/DIRECTMEMORY-60?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13216820#comment-13216820 ] 
> 
> Simone Tripodi commented on DIRECTMEMORY-60:
> --------------------------------------------
> 
> I am a little reluctant on adding checks to verify a key exists in a cache, it would induce users on applying the following pattern:
> 
> {code}
> if ( cacheService.containsKey( "key" ) )
> {
>    // in the meanwhile someone else drops "key"...
> 
>    Object retrieved = cacheService.retrieve( "key" );
> }
> {code}
> 
> that is the reason why other cache solutions, such as memcached, don't expose such APIs. Just retrieve the value and check something was cached.
> 
>> EHCache Integration
>> -------------------
>> 
>>                Key: DIRECTMEMORY-60
>>                URL: https://issues.apache.org/jira/browse/DIRECTMEMORY-60
>>            Project: Apache DirectMemory
>>         Issue Type: New Feature
>>           Reporter: Michael André Pearce
>>           Priority: Minor
>>             Labels: EHCache, Integration
>>        Attachments: DIRECTMEMORY-60-directmemory-cache.patch, DIRECTMEMORY-60-ehcache.patch, DIRECTMEMORY-60.tidy.zip, DIRECTMEMORY-60.zip, directmemory-ehcache.zip
>> 
>> 
>> Integrate DirectMemory to be used with EHCache.
> 
> --
> 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] (DIRECTMEMORY-60) EHCache Integration

Posted by "Simone Tripodi (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRECTMEMORY-60?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13216820#comment-13216820 ] 

Simone Tripodi commented on DIRECTMEMORY-60:
--------------------------------------------

I am a little reluctant on adding checks to verify a key exists in a cache, it would induce users on applying the following pattern:

{code}
if ( cacheService.containsKey( "key" ) )
{
    // in the meanwhile someone else drops "key"...

    Object retrieved = cacheService.retrieve( "key" );
}
{code}

that is the reason why other cache solutions, such as memcached, don't expose such APIs. Just retrieve the value and check something was cached.
                
> EHCache Integration
> -------------------
>
>                 Key: DIRECTMEMORY-60
>                 URL: https://issues.apache.org/jira/browse/DIRECTMEMORY-60
>             Project: Apache DirectMemory
>          Issue Type: New Feature
>            Reporter: Michael André Pearce
>            Priority: Minor
>              Labels: EHCache, Integration
>         Attachments: DIRECTMEMORY-60-directmemory-cache.patch, DIRECTMEMORY-60-ehcache.patch, DIRECTMEMORY-60.tidy.zip, DIRECTMEMORY-60.zip, directmemory-ehcache.zip
>
>
> Integrate DirectMemory to be used with EHCache.

--
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] (DIRECTMEMORY-60) EHCache Integration

Posted by "Hudson (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRECTMEMORY-60?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13219975#comment-13219975 ] 

Hudson commented on DIRECTMEMORY-60:
------------------------------------

Integrated in directmemory-trunk #160 (See [https://builds.apache.org/job/directmemory-trunk/160/])
    DIRECTMEMORY-40, DIRECTMEMORY-60 : separate responsabilities more clearly, set allocation with merging pointers as the default one, add a SLAB's style allocator (fixed buffer size), mark OffHeapMemoryBuffer as deprecated (Revision 1295522)

     Result = SUCCESS
bperroud : 
Files : 
* /incubator/directmemory/trunk/directmemory-cache/src/main/java/org/apache/directmemory/cache/CacheServiceImpl.java
* /incubator/directmemory/trunk/directmemory-cache/src/main/java/org/apache/directmemory/memory/AllocationPolicy.java
* /incubator/directmemory/trunk/directmemory-cache/src/main/java/org/apache/directmemory/memory/MemoryManager.java
* /incubator/directmemory/trunk/directmemory-cache/src/main/java/org/apache/directmemory/memory/MemoryManagerService.java
* /incubator/directmemory/trunk/directmemory-cache/src/main/java/org/apache/directmemory/memory/MemoryManagerServiceImpl.java
* /incubator/directmemory/trunk/directmemory-cache/src/main/java/org/apache/directmemory/memory/MemoryManagerServiceWithAllocationPolicyImpl.java
* /incubator/directmemory/trunk/directmemory-cache/src/main/java/org/apache/directmemory/memory/OffHeapMemoryBuffer.java
* /incubator/directmemory/trunk/directmemory-cache/src/main/java/org/apache/directmemory/memory/OffHeapMemoryBufferImpl.java
* /incubator/directmemory/trunk/directmemory-cache/src/main/java/org/apache/directmemory/memory/OffHeapMergingMemoryBufferImpl.java
* /incubator/directmemory/trunk/directmemory-cache/src/main/java/org/apache/directmemory/memory/PointerImpl.java
* /incubator/directmemory/trunk/directmemory-cache/src/main/java/org/apache/directmemory/memory/RoundRobinAllocationPolicy.java
* /incubator/directmemory/trunk/directmemory-cache/src/main/java/org/apache/directmemory/memory/allocator
* /incubator/directmemory/trunk/directmemory-cache/src/main/java/org/apache/directmemory/memory/allocator/AbstractByteBufferAllocator.java
* /incubator/directmemory/trunk/directmemory-cache/src/main/java/org/apache/directmemory/memory/allocator/ByteBufferAllocator.java
* /incubator/directmemory/trunk/directmemory-cache/src/main/java/org/apache/directmemory/memory/allocator/DirectByteBufferUtils.java
* /incubator/directmemory/trunk/directmemory-cache/src/main/java/org/apache/directmemory/memory/allocator/FixedSizeByteBufferAllocatorImpl.java
* /incubator/directmemory/trunk/directmemory-cache/src/main/java/org/apache/directmemory/memory/allocator/MergingByteBufferAllocatorImpl.java
* /incubator/directmemory/trunk/directmemory-cache/src/main/java/org/apache/directmemory/memory/allocator/SlabByteBufferAllocatorImpl.java
* /incubator/directmemory/trunk/directmemory-cache/src/test/java/org/apache/directmemory/cache/CacheServiceImplTest.java
* /incubator/directmemory/trunk/directmemory-cache/src/test/java/org/apache/directmemory/memory/AbstractOffHeapMemoryBufferTest.java
* /incubator/directmemory/trunk/directmemory-cache/src/test/java/org/apache/directmemory/memory/Concurrent2Test.java
* /incubator/directmemory/trunk/directmemory-cache/src/test/java/org/apache/directmemory/memory/Concurrent3Test.java
* /incubator/directmemory/trunk/directmemory-cache/src/test/java/org/apache/directmemory/memory/MemoryManagerServiceImplTest.java
* /incubator/directmemory/trunk/directmemory-cache/src/test/java/org/apache/directmemory/memory/MemoryManagerServiceImplWithMerginOHMBAndAllocationPolicyTest.java
* /incubator/directmemory/trunk/directmemory-cache/src/test/java/org/apache/directmemory/memory/MemoryManagerServiceImplWithMerginOHMBTest.java
* /incubator/directmemory/trunk/directmemory-cache/src/test/java/org/apache/directmemory/memory/MemoryManagerTest.java
* /incubator/directmemory/trunk/directmemory-cache/src/test/java/org/apache/directmemory/memory/OffHeapMergingMemoryBufferTest.java
* /incubator/directmemory/trunk/directmemory-cache/src/test/java/org/apache/directmemory/memory/RoundRobinAllocationPolicyTest.java
* /incubator/directmemory/trunk/directmemory-cache/src/test/java/org/apache/directmemory/memory/Starter.java
* /incubator/directmemory/trunk/directmemory-cache/src/test/java/org/apache/directmemory/memory/allocator
* /incubator/directmemory/trunk/directmemory-cache/src/test/java/org/apache/directmemory/memory/allocator/FixedSizeByteBufferAllocatorImplTest.java
* /incubator/directmemory/trunk/directmemory-cache/src/test/java/org/apache/directmemory/memory/allocator/MergingByteBufferAllocatorImplTest.java
* /incubator/directmemory/trunk/directmemory-cache/src/test/java/org/apache/directmemory/memory/allocator/SlabByteBufferAllocatorImplTest.java
* /incubator/directmemory/trunk/integrations/ehcache/src/main/java/org/apache/directmemory/ehcache/DirectMemoryCache.java
* /incubator/directmemory/trunk/integrations/ehcache/src/main/java/org/apache/directmemory/ehcache/DirectMemoryStore.java
* /incubator/directmemory/trunk/integrations/ehcache/src/test/java/org/apache/directmemory/ehcache/EHCacheTest.java
* /incubator/directmemory/trunk/itests/osgi/src/test/java/org/apache/directmemory/tests/osgi/cache/CacheServiceExportingActivator.java

                
> EHCache Integration
> -------------------
>
>                 Key: DIRECTMEMORY-60
>                 URL: https://issues.apache.org/jira/browse/DIRECTMEMORY-60
>             Project: Apache DirectMemory
>          Issue Type: New Feature
>            Reporter: Michael André Pearce
>            Priority: Minor
>              Labels: EHCache, Integration
>         Attachments: DIRECTMEMORY-60-directmemory-cache.patch, DIRECTMEMORY-60-ehcache.patch, DIRECTMEMORY-60.tidy.zip, DIRECTMEMORY-60.zip, directmemory-ehcache.zip
>
>
> Integrate DirectMemory to be used with EHCache.

--
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