ContinuousQueryCache and non-idempotent Filters

From the documentation I read on the ContinuousQueryCache, I assume that it works in two stages. First, it runs the distributed query based on the given Filter and caches the results. Second, it registers MapListeners that update the query result whenever an underlying cache INSERT, DELETE or UPDATE occurs. This will work fine with idempotent Filter implementations. But this may fail if underlying Filter is allowed to produce different results over time.
To give a concrete example. I would like my cached values to have a Publish Time. My NamedCache would have all values in it. And my Filter would check whether System.currentTimeMillis()>value.getPublishTimeMillis(). I would expect my ContinuousQueryCache to show the values whose Publish Time has arrived reasonably soon after the Publish Time.
Naturally, there may be no UPDATE events that would trigger the Filter to be re-applied as soon as the Publish Time arrives. So, the values would not appear in my ContinuousQueryCache.
One workaround I can think of is to have a refresh() method in my ContinuousQueryCache that I could run on a scheduled basis from a separate thread. Such refresh() method would rerun the underlying distributed query.
Is there such capability? Or is there a better way people typically handle Publish Time? (I realize that I could put a dummy value in cache which would expire at Publish Time and then expect the cache to retrieve the real value via a CacheLoader. But for many reasons, I do not like this approach.)

We are JDK 1.4.2, so no AtomicReferences here :o) But
I get your point.
It is available for 1.4.2 as a separate JAR file, AFAIK.
Look at http://g.oswego.edu/dl/classes/EDU/oswego/cs/dl/util/concurrent/intro.html
In my opinion, CQC would still be preferable because
it uses events to attempt to keep the query result up
to date. This will allow me to run query *less
frequently* than I would have to in your solution.I don't see why. The events will in no case will mirror the passing of time, therefore you will need to rerun the query to get entries which became of age since the last running of the query.
This is keeping in mind that my Filter may be more
complex than just by Publish Time. There may be many
other additional complex conditions.If they can be indexed, that might even help if it reduces the result set size significantly.
>
So, do you think there's a way to rerun the
underlying query ad hoc?
I don't know of one, if it is not in the Javadoc, as the intentional purpose of the CQC is exactly not having to rerun that query. However this does not mean that there is not one.
Best regards,
Robert

Similar Messages

  • Idempotent and Non-idempotent activites

    Can you give me the examples for Idempotent and Non-Idempotent activities in BPEL also describe them in brief.
    Send to my mail id - [email protected]
    Regards,
    Hrushi.

    Activities which can be retried are called idempotent activities. Examples are : assign activity, invoke activity etc. So if the BPEL process is recovered from the dehydration store , then these activities are retried again (idempotent activities are not stored in dehydration store if there is no dehydration activity like checkpoint() ) . Non idempotent activities are those which causes the BPEL process to dehydration and so there state is saved into dehydration store. If the BPEL process is recovered from the dehydration store, these activities are not retried . Examples are : wait activity, mid point receive activity, pick activity , checkpoint() etc.
    So when you specify the idempotent property as "false" in the partner link of a BPEL process , this becomes non idempotent and cause the BPEL process for dehydration and so a commit occurs . This is another way of ending the current transaction of a BPEL process and start a new one.
    Hope this helps.

  • Filtering merged and non merged columns

    Hi there,
    I have an excel spreadsheet that has both merged and non merged columns. I want to filter a row that has got merged column and non merged columns. But when I filter it only takes the first line, rather than the merged and non merged columns.
    Any ideas are appriciated.
    Thanks

    As you have found, (vertical) merging and filtering do not go together. The value of a merged area only "lives" in the top left cell of the area, the other cells are blank.
    I would unmerge the cells and fill the values down into the blank cells. You should then be able to filter normally.
    Regards, Hans Vogelaar (http://www.eileenslounge.com)

  • I Dislike the Terms "Destructive" and "Non-Destructive" Editing

    Some folks in the Photoshop realm use the terms "destructive" and "non-destructive" to describe ways of using Photoshop in which transforms are applied directly to pixel values vs. being applied via layers or smart filters or smart objects or other means.
    Do you realize that the term "destructive" is actually mildly offensive to those who know what they're doing and choose to alter their pixel values on purpose?
    I understand that teaching new people to use Photoshop in a way that doesn't "destroy" their original image data is generally a good thing, and I'm willing to overlook the use of the term as long as you don't confront me and tell me what I'm doing when I choose to alter pixel values is "wrong" (or when I choose to advise others on doing so).
    For that people who claim editing pixel values is "destructive", I offer this one response, which is generally valuable advice, in return:
    Never overwrite your original file.
    There.  The "destruction" has ceased utterly.
    It's common sense, really.  You might want to use that file for something else in the future.
    If you shoot in raw mode with a digital camera, then you actually can't overwrite your raw files.  That's a handy side effect, though some don't use raw mode or even start working with digital photographs.
    In any case, when you open your image consider getting in the habit of immediately doing File - Save As and creating a .psd or .tif elsewhere, so that you can subsequently do File - Save to save your intermediate results.
    There can actually be many advantages to altering pixel values, if you know what you're doing and choose to do so.  But sometimes even the most adept Photoshop user might find that a given step created a monster; that's okay, there's a multi-step History palette for going back.  I normally set mine to keep a deep history, to give me a safety net if I DO do something wrong, though I tend to use it rarely.
    And for those who would tout the disadvantages to editing "destructively", there can be huge disadvantages to doing it "non-destructively" as well...  Accumulating a large number of layers slows things down and can use a lot of RAM...  With downsized zooms the mixing can yield posterization that isn't really there, or gee whiz, just TRY finding a computer fast enough to use smart filters in a meaningful way.  Just the concept of layers, if one hasn't worked out how layer data is combined in one's own mind, can be daunting to a new person!
    So I ask that you please stop saying that the "only" or "best" way to use Photoshop is to edit "non-destructively".  There are folks who feel that is offensive and arrogant.  I think the one thing everyone can agree upon is that THERE IS NO ONE OR BEST WAY TO USE PHOTOSHOP!
    You go ahead and do your editing your way.  I prefer to do "constructive" editing. 
    Thanks for listening to my rant.
    -Noel
    Man who say it cannot be done should not interrupt man doing it.

    function(){return A.apply(null,[this].concat($A(arguments)))}
    Aegis Kleais wrote:
    When you alter image data in a manner that cannot be reverted, you have destroyed it.
    Really?
    That's one of those things that one is not supposed to question.  It just sounds so right!
    Problem is, it's insufficient in and of itself, and misleading...  It's a rule of thumb that's way too general.
    What IS "data" anyway?  Arrangement of magnetic spots on a disk?  My disk is still whole, so we're not talking about physical destruction here.
    One could argue that all the data is all still there in many cases of pixel-value-change editing (e.g., where there has been no resizing).  The image file is the same size!  Same amount of data.
    Upsampling, or making a copy of an image is actually creating more data, not destroying data.  Thus there is no general "destruction", but the terms "construction" or "creation" could be used.
    But wait, perhaps you're really talking about destroying information, not data...  Well...
    As it turns out the term "destructive" is still off base.  I have altered the information, possibly even adding important information.  If I make a copy this is a no brainer.  Even if I don't, depending on a person's skill in editing, the altered result could still carry all the original information that was important plus information added by editing, and be quite possibly better for its intended purpose (human consumption) than the image before the edit.  That's the goal!
    So now we're talking about important information vs. unimportant information.  And of course we're talking about fitness for a future purpose.
    As with anything, there are multiple ways to get there and multiple ways to interpret the words.
    The term "destructive" in my opinion was invented to further someone's agenda.
    -Noel

  • Standard and Non-standard exports and queries issue

    Hi,
    We have created a few STANDARD books with standard exports in them. The standard exports use standard queries.
    The ISSUE is that in the Verifications/Filters tab, where we have put in a lot of queries - ONLY the STANDARD queries show up. We would like to have all the queries show up. I am the adminsitrator and still only the standard ones show up.
    I am worried that if I "Save As" the export as a non-standard export, it does not allow me to uncheck the standard tick column and save it but I have to manually change the name of the export. Can we change this in anyway?
    Is there a system preference where I can allow all the queries to show up in the verifications/filter tab at least for the admnistrators if not for all? Thanks
    - Ad

    Thanks for your input but DRM does seem to be behaving what you said or may be I am still missing something here.
    I created a standard query.
    I have a standard export.
    Now, in the verification/filter tab of my Standard export, I am able to see my standard queries.
    But,
    I am unable to see the Non-Standard Queries.
    HOWEVER,
    If I have a Non-Standard export --> I am able to ALL the queries. This makes it a lot more flexible in doing things.
    My question is the WHY are my standard exports not able to reach the non-standard queries. What I wanted to do a twist in my export for analysis purposes for a particular use. If non-standard exports have access to Standard and Non-Standard queries --> it just makes more sense to always use a non-standard export and create non-standard queries.

  • What is non-idempotent?

    What is non-idempotent?

    Hi,
    Just to illustrate... Let's say you have two methods... int sumOfTwoNumbers(int n1, int n2)... and int addToGrandTotal(int n2)...
    sumOfTwoNumbers will be idempotent, you can pass the same numbers as many times as you want and it will give you always the same result...
    addToGrandTotal is non-idempotent as it is adding a value to a grand total that's internal to the class, if called twice it will probably return different results... and alter the internal class value as well...
    The concept is important in SOA, because idempotent operations are safer than non-idempotent operations... You can always safely resubmit a message to an idempotent operation, on the other hand you will need to perform every possible check in order to avoid double-submission for non-idempotent operations...
    Cheers,
    Vlad

  • SSO for SAP and Non-SAP applications without Enterprise Portal

    Dear all,
    Is it possible to implement SSO for both SAP and non-SAP applications without involvement of EP at all?
    I have gone through this link.
    <a href="http://help.sap.com/saphelp_nw04s/helpdata/en/e5/4344b6d24a05408ca4faa94554e851/frameset.htm">http://help.sap.com/saphelp_nw04s/helpdata/en/e5/4344b6d24a05408ca4faa94554e851/frameset.htm</a>
    But I still i am not able to get the precise answer on how to enable SSO for both  SAP and non-SAP applications without EP.
    We have decided not to implement EP in first phase of SAP implementation. But we need to enable SSO for other SAP and Non-SAP applications.
    A detailed description on how to deal this kind of scenarios will be helpful.
    Thanks.

    A client of our's uses <b>SAP Enterprise Portal</b>, and is using the SAP SSO, which is implemented with tickets, and requires the use of SAPSECULIB.  My company provides an application for this client, and our application in hosted in our data center for the client, as a Software as a Service application, obviously across the internet.  Our client, which owns a SAP license, has asked that we support the SAP SSO as a non-SAP SSO application.  The client user's SSO ticket will be created from SAP EP, and then passed across the internet to our application, and we are to use that SSO ticket as an authentication ticket to our application.  I beleive I know how to do this work technically, having reviewed the SAP document named: "Dynamic Library for Verifying SSO Tickets in Third-Party Software"   Specification   Version 2.00  December 2005.
    My question is, does my company have the right to use the SAPSECULIB?  Where is the official download and <b>license</b> download, that indicates we can download this library, and use it to support a SAP customer?  We do not own a SAP license.  Thank you for your help.  I have searched many places in SAP support.<b></b>

  • OWSM 10.1.3.4 and Non-SOAP XML-based web service

    Hi all,
    According to the OWSM 10.1.3.4 Administrator's Guide, "all Web services registered with an Oracle WSM Gateway are virtualized as both a SOAP and non-SOAP Web service." To access the non-SOAP (XML-only) web service, the documentation states "The non-SOAP virtualized URL can be determined from the virtualized SOAP URL by replacing the services keyword in the URL with the xml keyword."
    For example, if the SOAP virtualized endpoint is:
    http://host:port/gateway/services/SID0003001
    then, the non-SOAP XML service endpoint is:
    http://host:port/gateway/xml/SID0003001
    I have several web services registered with an OWSM gateway, running on SOA Suite 10.1.3.4, and can access those without any problem. However, when I attempt to access the "/gateway/xml" version of these services, I simply get an HTTP 200 response header with a null body.
    Does anyone have any ideas what could be causing this or what the secret is to get the non-SOAP XML service feature of OWSM to work?
    Thanks!
    --Gary                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Hi all,
    According to the OWSM 10.1.3.4 Administrator's Guide, "all Web services registered with an Oracle WSM Gateway are virtualized as both a SOAP and non-SOAP Web service." To access the non-SOAP (XML-only) web service, the documentation states "The non-SOAP virtualized URL can be determined from the virtualized SOAP URL by replacing the services keyword in the URL with the xml keyword."
    For example, if the SOAP virtualized endpoint is:
    http://host:port/gateway/services/SID0003001
    then, the non-SOAP XML service endpoint is:
    http://host:port/gateway/xml/SID0003001
    I have several web services registered with an OWSM gateway, running on SOA Suite 10.1.3.4, and can access those without any problem. However, when I attempt to access the "/gateway/xml" version of these services, I simply get an HTTP 200 response header with a null body.
    Does anyone have any ideas what could be causing this or what the secret is to get the non-SOAP XML service feature of OWSM to work?
    Thanks!
    --Gary                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Key fields and non-key field of condition table

    Hello Gurus,
          what is key fields and non-key field of condition table?
    thanks very much!

    Key field
    Each condition table contains keys that can be used for creating dependent condition records.
    for example let take condition type PR00.
    PR00 uses access sequence PR02 .
    Access sequence PR02 has following tables associated with it namely 304, 305 & 306
    When you create a conditon record for PR00 with transaction VK11 or VK31, you have a button 'key combination' which is nothing but fields associated with tables 304, 305 & 306.
    In brief, Condition records are always created using specific keys. Condition tables are used to define the structure of the keys of a condition record.
    Non key field
    For example take condition table 144 - sales deal basic data.
    Table 144 is associated with access sequence PBUD.
    If you check the fields associated with this table (click technical view button), there are three fields at bottom which do not have 'key' check mark -KDATU, PLTYP, KSTAF
    So, when you create a condition record for PBUD, system does not propose these 3 fields in 'key combination' and hence are non key fields.
    Please reward points for good answers as this would help increase the total donation that SAP will make to the United Nations World Food Programme.

  • When playing games on my iPod touch.  Some are stutters and non responsive

    Trying to play games on my iPod touch and they are slow, stuttery and non responsive. iPod software is up to date

    Do the games require an internet connection? If so then maybe slow connection.
    otherwise:
    Try:
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:                                 
    iOS: How to back up           
    - Restore to factory settings/new iOS device.

  • My yahoo e-mail not pushing to iPhone4, again.  Had this same problem in October for several weeks.  My kids and husband have 3 other types of smart phones, and none of them are experiencing this problems.  This has been going on for 2 weeks so far.

    My yahoo e-mail is not pushing to my iPhone4, again.  Had this same problem for several weeks in October/November 2011.  It's been a problem again for two weeks now.  My kids and husband have three other types of smart phones, and none of them have had this problem.  I'm NOT impressed.  I've seen that others in the iPhone community have also been having this problem.  Is Apple doing anything about it?

    Read this: https://discussions.apple.com/message/17333604#17333604
    It's a yahoo issue. Nothing you can do on your phone to fix it.

  • Report for Excisable and Non Excisable vendor

    Hello
    Is there any Std report is there....it can give us the list of Excisable and Non excisable Vendors based on the Perticular Purchase Orgnisation.
    Regards
    sapman man

    Hi
    I do not think in SAP this kind of report is available.
    what you can do , if your vendor master has different  accounting group for Excisable and Non excisable vendor then you can check in standard table of vendor master like LFA1  and LFM1 or create Z report or Query.
    Awaiting your feedback.
    Kishor Rudani

  • Connect b/w SAP and Non SAP -system

    Hi All,
    I have a requirement where i need to connect between a SAP system and Non-Sap System.
    the front end is an E-Build tool (for construction Industry) from where the user will pick the data and the data should get store at the backend i.e in the SAP system.
    E-build is a tool for construction industry with lots of flexible options for the user to check for their house, along with their prices.
    These all data needs to be captured and store at the backend.
    Can any one suggest me which method shall i go for this in ABAP(and How)  or need to go for the XI-Netweaver or EP technology.
    Thanks & Regards
    Mona

    you better to go for middleware tools .  keep files( whichs contains data to be stored in SAP)  in one folder at 3p systems  and  middleware adapters will pick that filles automatically and sent it to Application server or then process the data into SAP.
    tks.. venkat

  • Difference between Valuated and Non valuated Sale order stock

    Hi All,
    Can anybody tell me the difference between the above said subject with the steps involved in each scenario.
    That is valuated sale order stock and Non valuated sale order stock in Product cost by Sale Order.
    With Journal entries at each step and whether any WIP or variances at Production order level and sale order level and all the financial entries related to them
    Thanks in Advance,
    Ravi Kumar

    Hi Shail,
    Thans for your inputs,
    But I wanted to know it in more detail. In what scenarios they are used with financial entries in both the cases.
    I will give you my scenario. It goes like this,
    My client is in pipe coating business, who receives pipes from customers and does only coating work(which is considered as service) and despatches it to the customer. this process is carried on the basis of work order(Sale order).
    Now Production order is created and work is done on that with reference to Sale order for that particular customer.
    So the pipe which my client receives should be non valuated stock as it will not be a raw material to them and the cost incurred on it is booked on production order like chemicals as raw material consumption, activity cost etc.
    now in this scenario just tell me how and at which stage FI entries get generated at Production order and Sale order level, and also at wat level Standard cost estimate should be created i,e at production order level or sale order level(sale order cost estimate).
    Will there be any entries at goods isssue and GR against production order. If no then how the COGM account will get hit.
    Please tell me this scenario in both cases Valuated sale order stock and Non valuated sale order stock with financial entries in Sale order costing.
    Thanks & Regards,
    Ravi Kumar

  • My Firefox crashes every time I open it and none of the steps in the database solve the problem. My crash signature is PaintFrame(nsIRenderingContext*, nsIFrame*, nsRegion const&, unsigned int, unsigned int)

    I tried opening it in safe mode and none of the other help tips in the database on firefox crashes when I open it apply to me. I also ran a couple of virus programs to check for any infections and found nothing. I had been having issues with java previous to firefox beginning to crash. So I attempted to uninstall java from my computer but it did not help.
    My crash signature is PaintFrame(nsIRenderingContext*, nsIFrame*, nsRegion const&, unsigned int, unsigned int) and a search of this term on Mozilla Support pulled up no results.
    I'm not terribly knowledgeable with programming so any suggestions would help!

    I read online about a "clean reinstall" of firefox which seems to have worked! They should include direction on this on their page: https://support.mozilla.com/en-US/kb/Firefox+crashes+when+you+open+it

Maybe you are looking for

  • How do I save a "bash" script? (in attempt to fix one of my other problems)

    Here is my original problem: http://discussions.apple.com/thread.jspa?threadID=2195627&tstart=0 I came across this that sounds like it will help my issue: http://www.macosxhints.com/article.php?story=20090316190817357 However, what am I supposed to d

  • Windows 98 se java install error

    I am in need of assistance. I am trying to help a friend install Java and am having problems with the install. They are using SBC Yahoo for their internet provider, and are using wiindows 98 second edition. I can find the Java folder but cannot find

  • Canonical Form on XML Message

    Is there a way of producing a canonical form of an XML message from Java? Also, does anyone know of a good tutorial about canonical form. I have tried reading the W3C paper on it and found it completely illegible. Thanks in advance, Adrian

  • Error in CC by invoice history

    When I login on my account. Since april I can't see my CC billing history and get an error about displaying the invoices. Can you fix this error ?

  • [SOLVED]3.18.5-1-ARCH + system-modules-load.service on Macbook Pro 9,2

    After upgrading from 3.18.4-1-ARCH to 3.18.5-1-ARCH this weekend, my systemd service system-modules-load fails during bootup. I checked out # systemctl status system-modules-load and found nothing but a warning that my journal has been rotated and th