Batch processing and maplisteners -detecting when the maplisteners complete

Hi
I have a scenario.
Get data from data source 1 and load to cache (say datasource cache) . on this cache I have set maplistener that does some transformation puts the data to another cache. I want to start another process when data transformation is complete.
Since I have not implemented synchronous listener, I have no way to know when the transformation is complete (as we may not know when all threads for maplistener for the datasource cache completes.
Is there is a way to find out all the tranasformation is complete. (Please note that N record/object in a datasource may form one transformed record, hence counting may not be good ide)
It is possible to do an update a flag in each record in datasource cache and make another thread to check if all records are transformed start the process. But I would like hear from your experience if you have any other better solution, that I can leverage from coherence itself. (in otherways, If I sense some inactivity in tranformed cache, I can safely assume that the transformation process is over). Views welcome !!!!
regards
Ganesan

Hi Ganesan,
Why don't you fire off some events from the transformation threads when they finished?
You should be able to know how many transformation operations were to be done. When you get that many events that they completed, you are done.
Best regards,
Robert

Similar Messages

  • RoboHelp x5 TOC and index missing when the project is converted to RoboHelp 10

    As the title says, RoboHelp x5 TOC and index missing when the project is converted to RoboHelp 10. Any ideas for recovering or importing the x5 TOC and index?
    Before this is suggested, auto-create is not an option.

    Hi there
    Perhaps give this a try. From the Project Manager pod, right-click the Table of Contents area and choose "New Table of Contents". Give it a name and enable the "Copy existing Table of Contents" check box. Then click the Ellipsis icon on the far right side. See if you have a .HHC file in the folder. Odds are, you will. That will be the existing (missing) TOC.
    Hopefully that will work. If so, repeat the process for the index.
    I think when upgrading the project something goes wrong with naming.
    Let us know if this helps... Rick

  • Need to detect when the cursor is outside of the stage

    I need to detect when the cursor is outside of the stage. I
    have tried hitTest() but this doesn't seem to work. Someone must
    have a good solution to this one.

    What about putting either a thin invisible border just inside
    of the frame,
    or it might take 4 separate lines around the border and
    detect if they
    rollover that. Or check if the mouse x is less than 0,
    greater than the
    width, or the same for the top and bottom?
    I might have to code something like this myself in the next
    few days which
    is why it caught my attention.
    Timm
    "nudnic" <[email protected]> wrote in
    message
    news:f2g15n$j2$[email protected]..
    > Yes, I want to detect when the cursor leaves the stage
    area. Someone must
    > have found a good solution to this it has too many
    useful applications.

  • Detecting when the movieClip finished playing

    Hi...
    Does anyone know how to detect when the movieclip is finish playing?
    i want to play an animation that is converted into a movieclip and indicate success of that level and then after the movieclip is finished playing then i want to run a function which will bring user to the next level.
    any suggestion?
    THanksss

    stage.addChild(play_mc);
    play_mc.gotoAndPlay("startPlay");
    play_mc.addEventListener( Event.ENTER_FRAME, onfrm);
    function onfrm( evnt: Event ): void
                    if (play_mc.currenFrame == play_mc.totalFrames )
                        play_mc.removeEventListener( Event.ENTER_FRAME, onfrm);
                        alpCount++;
                        splitWord(alpCount);
                        underlines();

  • How can I email a video clip I downloaded into my iPhoto library to my friends? I tried creating an email and attaching the clip but there is no sound and no picture when the 5 minute attachment "plays." How can I file= export it to them from iPhoto?

    How can I email a video clip I downloaded into my iPhoto library to my friends? I tried creating an email and attaching the clip but there is no sound and no picture when the 5 minute attachment "plays." How can I file=>export it to them from iPhoto?

    Have them install Quicktime on their PC's from Apple's website, that's the easiest fix.

  • TS3694 I keep getting the error message "-42408" and all of my apps got deleted on my iPhone. It says that I need to authorize my computer, so I tried than and that's when the error message showed up. I'm pretty ****** and want my apps to be back on my iP

    I keep getting the error message "-42408" and all of my apps got deleted on my iPhone. It says that I need to authorize my computer, so I tried than and that's when the error message showed up. I'm pretty ****** and want my apps to be back on my iPhone. Please help.

    What version of iTunes are you using?  The error you references seems to be connected with iTunes 9.0.4.  That version of iTunes is not compatible with iOS 6. You need to update to the current version of iTunes.

  • I created a book and tried to place order but failed.  I followed the procedures, when the book completed uploading, the message "An error occured uploading your order" pop up.  There was no error message all along when I created the book.

    I created a book and tried to place order but failed.  I followed the procedures, when the book completed uploading, the message "An error occured uploading  your order" appeard.  There was no error message all along when I created the book. I tried several time but failed.

    preview the order and try again - http://support.apple.com/kb/HT1040
    If it still does not work boot into Safe Mode, preview again and try
    With the number of reports in the last few days it may be server overload - if so trying during a time of lower activity might help
    LN

  • Can iTunes be set to play only one song and then stop when the song is finished and not go on to play another unless commanded?

    Can iTunes be set to play only one song and then stop when the song is finished and not go on to play another unless commanded?

    If you uncheck all of the songs, they will only play if explicitly commanded. Command-click in a checkbox and they will all be unchecked. Command-clicking again will check the all again should you want to do that.

  • My phone displays "Network search". Current time and date. When the SIM is inserted and when there is no sim

    My phone displays "Network search". Current time and date. When the SIM is inserted and when there is no sim.

    Hi, AlexKot.  
    Thank you for visiting Apple Support Communities.
    It sounds like you are experiencing an issue with your iPhone searching for service.  If you have not resolved this issue, I would recommend trying the troubleshooting steps in the article below.
    If you see No Service or Searching in the status bar of your iPhone or iPad
    http://support.apple.com/kb/ts4429
    Cheers,
    Jason H.

  • LR 5.5 upgrade. I only get the the 32 bit set up and an error when the 64 bit set up should be created. It says not enough disk space and no access to write. The disk space is ok and the 32 bit file was indeed created.

    LR 5.5 upgrade. I only get the the 32 bit set up and an error when the 64 bit set up should be created. It says not enough disk space and no access to write. The disk space is okay and the 32 bit file was indeed created. I have Windows 7 Home edition.

    Hi Rob, Thanks for your input. The temp location is on the C drive with 228 GB free space. My other drives have 123 GB and 204 GB of free space. I can see how the 32 bit set up is perfectly extracted when it stops when coming to the 64 bit set up. I have done the exercise several times and also made new downloads. I am using Norton 360 and Malwarebytes anti-malware but the dowload from Adobe should be trusted.

  • HT1918 Hello!  Staff of E4 Group JSC use Apple devices for call, reading email and calendars. When the user open event in calendar of iPhone or iPad, he does not see attachments (picture №1, picture №2). But it is possible on Blackberry (picture №3).

    Hello!
    Staff of E4 Group JSC use Apple devices for call, reading email and calendars. When the user open event in calendar of iPhone or iPad, he does not see attachments (picture №1, picture №2). But it is possible on Blackberry (picture №3). How user of Apple can see these attachments? Recommend please any apps for it.

    Hello!
    Staff of E4 Group JSC use Apple devices for call, reading email and calendars. When the user open event in calendar of iPhone or iPad, he does not see attachments (picture №1, picture №2). But it is possible on Blackberry (picture №3). How user of Apple can see these attachments? Recommend please any apps for it.

  • Itunes shows album in library but tells me I am not authorised to use it - I go through the whole id authorisation process and it still says the same, I purchased it three email addresses ago.

    Itunes shows an album in library but tells me I am not authorised to use it - I go through the whole id authorisation process and it still says the same, I purchased it three email addresses ago.

    What do you mean three email addresses ago? Do you mean that you've had three accounts in the store with three separate email addresses? Purchases must be authorized according the account details under which they were purchased. You can Get Info on the tracks and see the account name they were purchased with. Also...a missing shared folder can prevent authorization. See here: http://support.apple.com/kb/ts1277
    You might also have a look here: http://support.apple.com/kb/ts1389

  • I use internode and imap. When the ipad deletes emails it also removes them from the mac. How can I reverse this so the mac is the master and the ipad is the slave?ipa

    I use internode and imap. When the ipad deletes emails it also removes them from the mac. How can I reverse this so the mac is the master and the ipad is the slave?

    Thanks for the info. - I now know that deletion works both ways!! - (unlike POP where emails deleted from the ipad also deleted them from the mac even before I could read them,  whereas emails deleted from the mac were not removed from the ipad!!! - ie. the ipad was the master over the mac - the slave).  Prior to changing to imap I used to transfer all nongarbage emails from inbox to mailboxes before my husband could ask if he could delete emails on his ipad. I have noticed however if you do this in imap, they are removed from the inbox on the ipad as well (this did not happen with POP). So we still have to check but the number is less so we like imap better than POP.
    Thank again

  • WebView to refresh and update user when the site is updated?

    Anyone know if its possible for WebView to automatically refresh and update user when the site is updated?

    Not without help. WebView is just a brower. You would need to poll or use an asynchronous notification mechanism.

  • I'm running Lion on a Late 2008 MacBook Air.  With no other applications running, I can no longer Check for Software Updates.  It gets abut half way through the checking process and then freezes.  The MBA passes Disk Utility. Thoughts?

    I'm running Lion on a Late 2008 MacBook Air. 
    With no other applications running, I can no longer Check for Software Updates.  It gets about half way through the checking process and then freezes. 
    The MBA passes Disk Utility. Thoughts?
    Thanks
    Jim Taylor

    How long do you leave it?
    Mine can sometimes sit for quite a while (maybe 10 minutes??) before it finally finishes.
    You could look at the relevant logs via Console (Utilities folder) to see if Software Update is complaining about anything.
    charlie

Maybe you are looking for