You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@isis.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2015/07/14 06:58:04 UTC

[jira] [Commented] (ISIS-1157) Cache safe Actions results by annotating them

    [ https://issues.apache.org/jira/browse/ISIS-1157?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14625820#comment-14625820 ] 

ASF subversion and git services commented on ISIS-1157:
-------------------------------------------------------

Commit f5ccde834d0ce06adf06b83dd82a4b35e1537eee in isis's branch refs/heads/ISIS-1157 from [~oscarbou]
[ https://git-wip-us.apache.org/repos/asf?p=isis.git;h=f5ccde8 ]

ISIS-1157: Partial implementation proposal

Tests still pending.


> Cache safe Actions results by annotating them
> ---------------------------------------------
>
>                 Key: ISIS-1157
>                 URL: https://issues.apache.org/jira/browse/ISIS-1157
>             Project: Isis
>          Issue Type: Improvement
>          Components: Core
>            Reporter: Oscar Bou
>            Assignee: Oscar Bou
>
> As discussed on the Isis mailing list [1].
> Currently, there's service called QueryResultsCache [2] that allows to cache the results of an Action/method invocation.
> We want to introduce this capability for Safe Actions by simply annotating them.
> Current proposal is to extend the "SemanticsOf" annotation param with a new type: SemanticsOf.SAFE_AND_REQUEST_CACHED
> A usage example would be:
>  
> {code}
>     @Override
>     @Action(semantics = SemanticsOf.SAFE_AND_REQUEST_CACHED)
>     public SortedSet<IESG> relevantSnpGenotypes(final IE inputElement,
>             final Kit kit) {
>         if (kit != null) {
>             return kit.findAllAssociatedSNPGenotypesForInputElement(inputElement, AlgorithmImplementation.this.IESGClass);
>         } else {
>             return Sets.newTreeSet();
>         }
>     }
> {code}
> [1] http://mail-archives.apache.org/mod_mbox/isis-users/201505.mbox/%3C575DA9CB-14E6-4DD0-9565-C03C759BD20E@gesconsultor.com%3E
> [2] https://isis.apache.org/reference/services/query-results-cache.html



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Re: [jira] [Commented] (ISIS-1157) Cache safe Actions results by annotating them

Posted by GESCONSULTOR - Óscar Bou <o....@gesconsultor.com>.
Hi, Dan.

I’ve noticed the merge.

I’ve just updated that branch to reference the originally invoked class and action.

Could you review it again, please?

Many thanks,

Oscar





> El 14/7/2015, a las 6:58, ASF subversion and git services (JIRA) <ji...@apache.org> escribió:
> 
> 
>    [ https://issues.apache.org/jira/browse/ISIS-1157?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14625820#comment-14625820 ] 
> 
> ASF subversion and git services commented on ISIS-1157:
> -------------------------------------------------------
> 
> Commit f5ccde834d0ce06adf06b83dd82a4b35e1537eee in isis's branch refs/heads/ISIS-1157 from [~oscarbou]
> [ https://git-wip-us.apache.org/repos/asf?p=isis.git;h=f5ccde8 ]
> 
> ISIS-1157: Partial implementation proposal
> 
> Tests still pending.
> 
> 
>> Cache safe Actions results by annotating them
>> ---------------------------------------------
>> 
>>                Key: ISIS-1157
>>                URL: https://issues.apache.org/jira/browse/ISIS-1157
>>            Project: Isis
>>         Issue Type: Improvement
>>         Components: Core
>>           Reporter: Oscar Bou
>>           Assignee: Oscar Bou
>> 
>> As discussed on the Isis mailing list [1].
>> Currently, there's service called QueryResultsCache [2] that allows to cache the results of an Action/method invocation.
>> We want to introduce this capability for Safe Actions by simply annotating them.
>> Current proposal is to extend the "SemanticsOf" annotation param with a new type: SemanticsOf.SAFE_AND_REQUEST_CACHED
>> A usage example would be:
>> 
>> {code}
>>    @Override
>>    @Action(semantics = SemanticsOf.SAFE_AND_REQUEST_CACHED)
>>    public SortedSet<IESG> relevantSnpGenotypes(final IE inputElement,
>>            final Kit kit) {
>>        if (kit != null) {
>>            return kit.findAllAssociatedSNPGenotypesForInputElement(inputElement, AlgorithmImplementation.this.IESGClass);
>>        } else {
>>            return Sets.newTreeSet();
>>        }
>>    }
>> {code}
>> [1] http://mail-archives.apache.org/mod_mbox/isis-users/201505.mbox/%3C575DA9CB-14E6-4DD0-9565-C03C759BD20E@gesconsultor.com%3E
>> [2] https://isis.apache.org/reference/services/query-results-cache.html
> 
> 
> 
> --
> This message was sent by Atlassian JIRA
> (v6.3.4#6332)


Óscar Bou Bou
Responsable de Producto
Auditor Jefe de Certificación ISO 27001 en BSI
CISA, CRISC, APMG ISO 20000, ITIL-F

   902 900 231 / 620 267 520
   http://www.twitter.com/oscarbou <http://www.twitter.com/oscarbou>

   http://es.linkedin.com/in/oscarbou <http://es.linkedin.com/in/oscarbou>

   http://www.GesConsultor.com <http://www.gesconsultor.com/> 




Este mensaje y los ficheros anexos son confidenciales. Los mismos contienen información reservada que no puede ser difundida. Si usted ha recibido este correo por error, tenga la amabilidad de eliminarlo de su sistema y avisar al remitente mediante reenvío a su dirección electrónica; no deberá copiar el mensaje ni divulgar su contenido a ninguna persona.
Su dirección de correo electrónico junto a sus datos personales constan en un fichero titularidad de Gesdatos Software, S.L. cuya finalidad es la de mantener el contacto con Ud. Si quiere saber de qué información disponemos de Ud., modificarla, y en su caso, cancelarla, puede hacerlo enviando un escrito al efecto, acompañado de una fotocopia de su D.N.I. a la siguiente dirección: Gesdatos Software, S.L. , Paseo de la Castellana, 153 bajo - 28046 (Madrid), y Avda. Cortes Valencianas num. 50, 1ºC - 46015 (Valencia). Asimismo, es su responsabilidad comprobar que este mensaje o sus archivos adjuntos no contengan virus informáticos, y en caso que los tuvieran eliminarlos.