Expire all local cache entries at specific time of day

Hi,
We have a need for expiring all local cache entries at specific time(s) of the day (all days, like a crontab).
Is it possible thru Coherence config ?
Thanx,

Hi,
AFAIK there is no out of the box solution but certainly you can use Coherence API along with quartz to develop a simple class that can be triggered to remove all the entries from the cache at certain time. You can also define your custom cache factory configuration and an example is available here http://sites.google.com/site/miscellaneouscomponents/Home/time-service-for-oracle-coherence
Hope this helps!
Cheers,
NJ

Similar Messages

  • How to clear Local-Cache Entries for a Query in BW?

    Hi There,
    i`m student und i need please your help for my Thesis!!
    I execute the same Query many times in BEx Web Analyzer und note a Query Response Time under ST03N using each time a different READ Mode and Cache Mode is inactiv (Query Monitor RSRT).
    First time i exectue the Query, it reads also from database, second time it uses the local Cache and  that `s okay!
    My problem is:
    When i change the Read mode and execute the Query again, it uses for the first run also the old entries from the Cache so i get wrong response time for the first run!!
    I know that while the mode cache inactiv , the local cache will still be used, so how can i delete the local cache entries each
    time i change the read mode and execute the Query? In Cache monitor (rsrcache) i find only entries for Global cache etc..
    I've already tried to close the session and login in to the System again but it doesn`t solve the Problem!!
    i don't have a permission (access rights) to switch off the complete Cache (local and global ).
    Any idea please??
    Thanks und Best Regards,
    Rachidoo
    P.S: sorry for my bad english!! i have to refresh it soon:)

    Hi Praba,
    the entries stored in RSRCACHE are for global cache, there is no entry for my query in Cache monitor!
    i execute the query in RSRT using java web button and cache mode inactiv so, the results will be stored in local cache.
    this is as below what i want to do for my performance tests in my Thesis:
    1. run a query for the first time with cache inactiv and note runtime of it
    2. run the query again with cache inactiv and note runtime of it
    3. clear the local cache (i don't know how to do it??)
    4. change the read mode of query in RSRT then run the same query for the first time and note runtime of it
    5. run the query again and note runtime of it.
    i'm doing the same procedure for each Read mode.
    the problem is in step 4 , The olap Processor gets the old results form the cache so i get wrong runtime for my tests.
    Generate the report doesn't help, any idea please?

  • Scheduling specific time of day for automatic software updates

    How can one schedule a specific time of day (i.e. between 11:01 pm to 5.59 am when I have unlimited download availability) for an iMac to search for automatic software updates? System preferences only offer frequency, but no time option. If it is possible to schedule a specific time, will invoking the feature override the sleep function, wake up the machine and perform the software update and then let the machine go back to "sleep?" Thank you for all your help.

    to clarify barney's suggestion, the following terminal command will download all available updates and put them in your Downloads folder.
    softwareupdate -d --all
    so what you need to do is this.
    1. turn off automatic software update in software update system preferences.
    2. make a cron or a launch daemon to run the above terminal command periodically at the time of your choosing. to make a launch daemon I recommend using lingon http://tuppis.com/lingon/
    The daemon will only run if the computer is not asleep at the scheduled time so you might want to set to to wake/start shortly before that. this is done in system preferences->energy saver->schedule.
    to install the updates once they are downloaded double-click on the pkg files and follow the instructions.

  • Render at a Specific Time Every Day

    Is there a way to have a specific Final Cut Pro project to render automatically at a specific time every day?
    I work at a CG house, and shots are updated at random intervals, but are always in a fixed, specific location. So by rendering out the project everyday we would always have an up to date complete edit. And by automating it it could be rendered off hours and be ready first thing in the morning for review.

    Or page 548 of Volume III, if you're on Final Cut Pro 5 (FCStudio 1).
    'Main Menu/Final Cut Pro/User Preferences/General tab'
    FCS2 may allow specific time of day, but FCS1 simply lets you set a period of time (while the program is open, but idle). So set it for 2 hours, leave FCP open when your last editor leaves the office.
    This also offers several choices on which sequences you actually want to 'auto-render'.
    K

  • Is it possible to schedule updates for a specific time of day like 12am?

    Is it possible to schedule updates for a specific time of day like 12am?

    No. If you use Automatic Updates, the apps update when the updates are available. Read this for a little more information.
    http://9to5mac.com/2013/09/20/ios-7-how-to-set-up-automatic-app-updates/

  • Is there a specific time of day that the BTO iMacs become available for pickup?

    As I am sure many people can relate to, I find myself hitting the refresh screen on my Apple order page awaiting the arrive of a built-to-order 27" iMac (3.4 GHz/ 32GB memory/ 3TB fusion/ 680MX graphics). Question for people with an inside scoop.... do the custom macs arrive a specific time of day (many retailers have scheduled deliveries at specic times during the day). The reason I ask is because if my Mac is only going to become "available for pick-up" in the morning, I will know that after... let's say 10am.. there is no reason for me to keep checking because I will know it won't be showing up on this specific business day, if it hasn't already. Any insight on how this works? Thanks fellow Apple fans!

    Goodness gracious.... Not even 5 minutes after I replied to you, my item became available for pickup! It's like they were listening in! haha !

  • Start a process at a specific time of day

    Is there any kind of a time mechanism that will allow a process to be started at a specific time each day?

    There is not a scheduling mechanism native to LC/ADEP. A valid approach would be to use a cron job or WMI (Windows Management Instrumentation) to start a batch file that calls a Java class that uses the LC Java API to invoke the short-lived process.
    See http://help.adobe.com/en_US/enterpriseplatform/10.0/programLC/help/index.html
    Invoking Document Services Using APIs > Invoking Document Services Using the Java API > Quick Start: Invoking a short-lived process using the Invocation API
    Steve

  • Local Cache containing all Distributed Cache entries

    Hello all,
    I am seeing what appears to be some sort of problem. I have 2 JVMS running, one for the application and the other serving as a coherence cache JVM (near-cache scheme).
    When i stop the cache JVM - the local JVM displays all 1200 entries even if the <high-units> for that cache is set to 300.
    Does the local JVM keep a copy of the Distributed Data?
    Can anyone explain this?
    Thanks

    hi,
    i have configured a near-cahe with frontscheme and back scheme.in the front scheme i have used local cache and in the back scheme i have used the distributed cache .my idea is to have a distributed cache on the coherence servers.
    i have 01 jvm which has weblogic app server while i have a 02 jvm which has 4 coherence servers all forming the cluster.
    Q1: where is the local cache data stored.? is it on the weblogic app server or on the coherence servers (SSI)..
    Q2: although i have shutdown my 4 coherence servers..i am still able to get the data in the app.so have a feel that the data is also stored locally..on the 01 jvm which has weblogic server runnng...
    q3: does both the client apps and coherence servers need to use the same coherence-cache-config.xml
    can somebody help me with these questions.Appreciate your time..

  • With Guide - How to see all movies starting at a specific time ????

    Does anyone know how to use the remote/guide to identify all movies starting at a certain time.  I see a ton of movie channels but its next to impossible to wade through all the channels looking for movies starting at a specific time.
    All of my previous digital cable services had a similar serach function?
    Help ?

    I believe you can using the modes.....click on the right arrow on the remote and should bring up modes select Movies just remember to change it back or all you will see in the guide is movies

  • How do I schedule a task at a specific time of day, every day?

    I am trying to use Timer and TimerTask to schedule an event at specific time of the day. It will basically stop all the logging archive the log file and start a new logfile.
    I am just having trouble with scheduling it for every day at specific time (I am new to java and have not worked with date and time much). If someone can point me to some sample code or show me a brief example I would really appreciate it. I am about to pull my hair.
    Thanks in advance!!!

    hi
    I assume you use the swing class. As you suggest, to schedule an event you have to use a timer. The delay of the timer can easy be calculated using GregorianCalendar objects. Create one for the current date/time by instantiating an object. Create a second and set the date to the next schedule date/time. Retrieve the milliseconds from both objects and calculate the differences.
    best regards
    benny

  • Doing something at a specific time of day

    Hi all,
    Basically what I am doing is an alarm clock, to wake me up to some MP3s. It all works fine.
    My only concern is the following:
         private Thread tTimeCheck = new Thread() {
              public void run () {
                   while (true) {
                       cal = new GregorianCalendar();
                       int hour24 = cal.get(Calendar.HOUR_OF_DAY);
                       int min = cal.get(Calendar.MINUTE);
                       if (hour24 == JSelectHour.getValeur() && min == JSelectMinute.getValeur()) {
                            playMusic = true;
                       } else {
                            playMusic = false;
                       try {
                            t.sleep(1000);
                       } catch (InterruptedException e) {
         };Is it unefficient to check every second, to see if the time of day is equal to the set time on the alarm clock? It seems to me that there has to be a better way to do this.

    Thank you for your reply.
    This is my thread that plays the music.
    while (true) {
       if (playMusic && jpnl.getAlarmStatus() == 1) {
           testPlay("C:/Documents and Settings/Seb/Desktop/Music/01-nirvana-smells.like.teen.spirit.mp3"); //hardcoded for now
    }testPlay is executed the the entire song plays before the next iteration.
    Next step: I'll look to put this in the taskbar (windows tray / whatever it's called), never done that before =)
    Thanks,
    Message was edited by:
    Robocrotch

  • Allow RDS Logon during Specific time of day

    Is there a way that we restrict Logon to our Terminal Server so that users can only Logon between specific times...?
    We are using windows Server 2008 R2
    for example between 8AM and 6PM

    You could set up a scheduled task to enable drain mode on the server which will prevent new logons (but not reconnections), This task woud set HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\TSServerDrainMode to 2.  No new sessions
    could be started but disconnected users could reconnect.  Admins ca still connect by running
    mstsc /admin.   Then you would need another scheduled task to disable drain mode, by settinge the above key back to 0.
    HTH,
    Jeremy

  • Quit an Application at a specific time each day.

    I know how to do something as simple as Quiting an application with AS, but what if I want to run it at say 7pm everyday. Not using iCal.
    Any Ideas?

    You can use the unix-side launchd application to trigger execution of an application at a specific time. In your case you'd want it to launch an AppleScript that tells your other app to quit.
    Programming launchd to do this is easy with an app like Lingon (http://lingon.sourceforge.net/), which provides a gui to set schedules in launchd.
    I use to run two applescripts every 30 seconds and a third one once an hour. Works a treat... and it's free.
    Robert

  • Printing a control panel at a specific time of day automatica​lly

    I would like to be able to print out a control panel at a set time each day. I know that I can connect the print data member of the panel to another object. What should that object be?
    Thanks

    Try the "Time-Of-Day" object. Its parameters are on/off, Offset time, duration time and format (all parameters are “yellow” fields except format, which means you can use other object data members). On/off lets you disable the timer, offset time is when in the day to activate the timer (i.e. 17:00:00 for 5:00 PM), duration time is how long to pulse the timer (to tickle a panel to print you would only need 00:00.1) and anything would do for format if you don't intend to display the timer (00:00:00 would be appropriate if you display the timer). Connect the Time-of-day object implicit data member to the panel object writable print data member and you are done. When the offset time is the current time the time-of-day object pulses and the panel prints. Be aware that the area of the panel that prints is based on the Height and Width parameter values, not the position on the screen (the X and Y data members override the parameters if connected). There is more info on timers and panels in the on-line help.

  • Scheduling process chain 3 specific times a day

    Hi ,
    my requirement is to schedule a process chain 3 times a day.
    i have gone through the forum and got the solution EVENTS.
    please provide me how to do this in detail like step by step.
    how to create a event in SM64 and how we will define the time there.
    and creating a ZPROGRAM with the function module (please provide step bystep).
    thanks
    Sridhar

    You create user events in SM62.  In SM62, next to "User even names", click on <b>Maintain</b> and press Enter.  Click on the Create icon to create a new event (let's call it ZEVENT).
    Next, in your process chain, change the Start variant to be scheduled "After event", and put in ZEVENT for the event name.  Also, click on the "Periodic job" at the bottom.  This will automatically reschedule the jobs for the process chain after it executes.
    Next, create an ABAP program (let's call it Z_EVENT_RAISE) to call the function module BP_EVENT_RAISE.  You're code can look like this:
    REPORT Z_EVENT_RAISE.
    PARAMETERS: P_EVENT LIKE TBTCO-EVENTID.
    CALL FUNCTION 'BP_EVENT_RAISE'
    EXPORTING
    EVENTID = P_EVENT.
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    * WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    This ABAP program will prompt for an event name, so you will need to create a variant (let's call it ZEVENT) which will save the value of the event name (also ZEVENT).  You will need the variant name to be able to trigger the event in a batch job.
    Now all you need is the batch job.  Use tcode SM36 to create a batch job where you call the ABAP program (Z_EVENT_RAISE) using the variant (ZEVENT).
    Note, SM64 only triggers an event manually.
    Does this help?
    Oh, and you can copy this job to schedule it three times a day.
    Message was edited by:
            Geo

Maybe you are looking for