Results 1 to 6 of 6
  1. #1
    JAVAFORUMSGUS is offline Member
    Join Date
    Jun 2011
    Posts
    3
    Rep Power
    0

    Default Defining a frequency to run a process

    Hello,

    I need to do the following calculation. A batch has to be run if Now() follows these conditions:

    -----------------------
    Every day (Tickbox) Monday(Tickbox) Tuesday(Tickbox) Wendsday(Tickbox) Thursday(Tickbox) Friday(Tickbox) Saturday(Tickbox) Sunday(Tickbox)

    Every (specify time, for example, 1 hour or 15 minutes)

    Between StartDate(A date) EndDate(A date)

    ( the user can select any combination)
    --------------------------


    Do you understand what I mean? I need to find a way to do this calculation, which is free, in Java ( a library). and I was wondering there must be a java class to do it.
    I need a library to do this.

    Thanks.

  2. #2
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,434
    Blog Entries
    7
    Rep Power
    20

    Default

    Maybe a cron implementation in Java can help.

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  3. #3
    JAVAFORUMSGUS is offline Member
    Join Date
    Jun 2011
    Posts
    3
    Rep Power
    0

    Default

    Hello, Is there a java class for this? Thanks.

  4. #4
    JAVAFORUMSGUS is offline Member
    Join Date
    Jun 2011
    Posts
    3
    Rep Power
    0

    Default

    Sorry, what is a cron?

  5. #5
    pbrockway2 is offline Moderator
    Join Date
    Feb 2009
    Location
    New Zealand
    Posts
    4,565
    Rep Power
    12

    Default

    Quote Originally Posted by JAVAFORUMSGUS View Post
    Sorry, what is a cron?
    Use wikipedia. People use the term generically (=="job scheduler") even when referring to the "OS" that doesn't provide a cron.

    Google "java cron" will provide you with any number of implementations.

  6. #6
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,434
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by JAVAFORUMSGUS View Post
    Sorry, what is a cron?
    If you'd read the supplied link you'd know; and no, it probably isn't a single class that implements this functionality.

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

Similar Threads

  1. how to count frequency of the color?
    By meth in forum New To Java
    Replies: 4
    Last Post: 02-25-2011, 01:32 PM
  2. Sort Frequency
    By ScaryJello in forum New To Java
    Replies: 7
    Last Post: 03-26-2009, 12:47 AM
  3. Word Frequency
    By capu in forum Advanced Java
    Replies: 2
    Last Post: 10-09-2008, 02:03 PM
  4. Frequency Counter
    By justlearning in forum New To Java
    Replies: 0
    Last Post: 05-07-2008, 10:50 PM
  5. [SOLVED] BST Frequency Counter
    By theonly in forum Advanced Java
    Replies: 7
    Last Post: 04-29-2008, 11:33 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •