Expecting a response within a specified time frame

I need urgent help please.
I am expecting some data from the server within 20 seconds.
If I dont receive this data within the time frame,I exit from
the application else If i receive this data I will display it.
Please can any write a small example for this threading concept.
I am very new to this.
Ajay

Let suppose this is your communication dialog window:
call createTimer(int sleep) after you send a request to the server
class MyDialog  extends JDialog implements ActionListener
    private javax.swing.Timer   m_timer    = null;
    public MyDialog(*********)
        super(*********);
        addActionListener(this);
    private void createTimer(int sleep)
        m_timer = new javax.swing.Timer(sleep, this);
        m_timer.setRepeats(false);
        m_timer.start();
    public void actionPerformed(ActionEvent e)
        if(e.getSource() == m_timer)
            // check your "response flag"
}lic void actionPerformed(ActionEvent e)
if(e.getSource() == m_timer)
// check your "response flag"

Similar Messages

  • Expecting a respone withing a specified time frame

    I need urgent help please.
    I am expecting some data from the server within 20 seconds.
    If I dont receive this data within the time frame,I exit from
    the application else If i receive this data I will display it.
    Please can any write a small example for this threading concept.
    I am very new to this.
    Ajay

    Say, you wouldn't want someone here to do something so unethical as to do your homework assignment now would you?
    see java.util.Timer and java.util.TimerTask

  • How to send the email alert to some users (defined users hasn't post document to a library within a specified time frame)

    Hi,
    Native alert on a document library can setup to email to the predefined user when any changes on the document.
    However, I would like to setup a document library and alert me when
    [email protected] [email protected]
    [email protected] hasn't yet put a document to the library by 2014-07-01 (e.g today is 2014-06-26). The reminder email will send to
    [email protected] [email protected] on 2 days before the dead line (ie. 2014-06-29) because
    [email protected] and [email protected] hasn't put their file to the library on or after 2014-06-29..
    Thanks

    Hi,
    http://stackoverflow.com/questions/17571562/creating-email-alert-workflow-for-sharepoint-file-libraries
    http://stackoverflow.com/questions/18868479/how-to-send-automatic-email-notification-to-user-two-days-before-expiry-date
    http://social.msdn.microsoft.com/Forums/en-US/acb12dd2-d6a5-4b7e-b233-037558bfa2e5/start-workflow-x-days-before-expiry-date?forum=sharepointcustomizationlegacy
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • Error Message : Object could not be scheduled within the specified time interval

    Post Author: mohamed elkashef
    CA Forum: Publishing
    Dear All when i try to run event for daily reports it sometimes take generation status failed with this error  message : Object could not be scheduled within the specified time interval so  i need to know the reason of failure and how can i fix  this error  thanks a lot 

    Post Author: nvnaresh
    CA Forum: Publishing
    Dear jsanzone,
    I'm facing the same error even when the server time out is more than the query execution time of the report.By server time out I assume connection time out of WebI report server which I have set to 180 min.But the actual query takes maximum of 5 min.
    We are using BO XIR2+SP2.
    I scheduled a webI report to get saved in Excel format to an Unmanaged disk location upon a File Event.
    We have 3 such reports to be scheduled on the same event.
    Expected frequency of File Event getting fired in a day is twice.Scheduling frequency I have set it as every one hour with the file event.
    This usually should work fine.
    But frequently 1 or 2 of the above 3 instances are getting failed with the following error "Object could not be scheduled with in specified time interval " after being in Running state for few hours(8). Amazingly this is not happening every time. May be once or twice in a week.This works fine after I restart the BO services and the same thing repeats after 3 or 4 days.
    Do I need to increase any server parameters?
    Why is this happening randomly?  

  • Error submitting tasks: Operation could not be completed within the specified time

    I've created a Batch Application and I'm having an issue running a job.  Its suppose to synchronize 2 azure blob containers.
    In my JobSplitter, I compare 2 azure blob containers and find the files in the first container that need to be copied over to the second one.  Just figuring out which files to copy over can take about 5 to 6 minutes the first time this is run depending
    on the number of files that need to get copied over.
    Once we have the files that need to be copied, we group them into sets and create a task for each set.
    The exe that the TaskProcessor runs doesn't do anything just yet. All it does is write the arguments sent to it into a file. Nothing major.
    On the last run, about 900 tasks were created. Four of the tasks completed successfully. I can download the output files for them just fine. The next 4 tasks failed with an error.
    Looking in the JobLogs, I see this:
    The job orchestrator finished
    Failed to process job ac8dd4a3-d882-4ec1-847d-48844fa3e1f4: Error submitting tasks: Operation could not be completed
    within the specified time. RequestId:27eab612-c8ce-4e4b-8dfb-00e7024c71ec Time:2015-01-29T00:37:03.5943898Z
    Has anyone seen this before?
    Thanks,
    matt

    This error is usually a transient error, typically related to an internal storage timeout.  We're working on a fix for it.
    In the meantime, if you go into the Batch Apps portal, select the failed job and click Reprocess in the command bar, Batch Apps should re-run the failed tasks and the not-run tasks.  (Note that the tasks that already succeeded will not be re-run, and
    we will not re-run the job splitter to create new tasks.)
    Please let us know if you continue to see this problem or if reprocessing the job doesn't work for you.

  • ERROR : Object could not be scheduled within the specified time interval

    I have the next error Object could not be scheduled within the specified time interval.
    When i schedule a report to be refreshed and the moment come when the report have to be refresh appear the error.
    i check the error in the following path in the CMC
    HOME> FOLDERS > USER FOLDERS > ... > "REPORT FOLDER"  Instance Properties
    Why i get this error?
    Anyone can give me a good solution to solve this error?
    Thanks!!!

    Hi Ed,
    The above error message is appearing due to the reason, when a large number of requests are scheduled to start at the same time, this may exceed the Maximum Number of Simultanius Requests that the deployment can support.
    To resolve this error message, increase the end time on the scheduled instance. To increase the end time, use the following steps:
    1. In the Infoview, browse to the desired report and click 'History'.
    2. Find the desired scheduled instance and click 'Reschedule'.
    3. Under the 'When' section, increase the end time for the scheduled instance.
    Upon completing these steps, the error message no longer appears.
    Hope it will help in resolving the error.
    Regards,
    Ritesh Nayyar

  • How to edit within 15 min time frame

    I did a search for how to edit a post and found info that we can do that within 15 minutes.  I just sent a post and wanted to edit it and could not find any place to click that says edit, etc.  so how do I take advantage of this option? 
    Michelld

    rccharles wrote:
    See the last post by crh24 in this thread:
    https://discussions.apple.com/thread/3003399?tstart=0
    Robert ~ It's possible to link to a particular post by Ctrl (or right) clicking its title and choosing Copy Link:
    Then either paste it directly into a post:
    Re: Edit my post
    ...or make a new text link:
    Work-around for editing posts on the iPad

  • Expected schedule jobs in BO in time frame

    Hello,
    information about planed Jobs are all stored in CMS-DB (Crypted form). Is there any possibility to know what are all planed Jobs on the system for a time between X - Y. A kind of standard Reports or Graphic.
    in The Acitivity reports. It s possible to know the failure rate of reports. Is it also possible to know which reports were failed because of missing capacity. ?? That means the reports were  queed for the configured waiting time but the job server was busy for the wohle time. Consequently it failed ..

    Yes there are some report in system folder. These reprots are based on activity universe. Try opening the report which shows the refresh time of reports. Modify the logic a bit and u will be able to get what u want.

  • Track computer changes in a collection within a specified time period.

    I have a typical requirement where I need to find out list of computers that moved in and out of a query based Device Collection.
    The scenario:
    I have few collections, based on the OUs of Computers.
    Collection A lists all machines in OU A
    Collection B lists all machines in OU B
    Now if an administrator moves a machine from OU "A" to OU "B", the collection membership updates and the machine moves from Collection A to Collection B.
    I need a query to find out what machines moved form OU "A" to OU "B"  in last 7 days/1 Month what ever is feasible.
    Any help will be appreciated.
    Regards,
    Abhinav Nishant

    For that attribute no. the easiest way to determine if there is a history. Is look at the Resource Explorer, if there data you are looking for is there then there is a 99% chance
    there is a History view for that data. Software | file Details is an example of one without a history view.
    http://www.enhansoft.com/

  • Time-frame calculation

    Hi all,
    I want to know if a date lies within a given time-frame (marked by end date).
    The problem is, that the user can give the check time frame in days, weeks, months or jears.
    The calculation is actually similar to the best before date calculation in Material Master.
    But how do I calculate with these units.
    Greetings Fred

    Hi Fred!
    First you should convert your input into a date or a number of days. Here a case on the input type should help (if type = weeks, then multiply input * 7...)
    With the number of days you can calculate your ending date (e.g. end_date = start_date + l_days). Then a simple if p_date > start_date and p_date < end_date. should do the job.
    Regards,
    Christian

  • HT1657 after renting a move and starting viewing I can not stop it and come back to in within the time frame. If i stop it it goes away not able to find it. Just like I did not rent it at all.

    after renting a move and starting viewing I can not stop it and come back to in within the time frame. If i stop it it goes away not able to find it. Just like I did not rent it at all.

    Hi,
    We have rolled out a fix for this issue.
    Please log off and log back in to your machine and the issue should be resolved automatically. In case that does not work, please manually run the msi installer posted here (may require reboot).
    For details, please refer to the KB article here: Multiple RunOnce keys created 11.0.10 and 10.1.13 Acrobat | Reader
    Please let us know if you still face any issues.
    Thanks,
    Ashu Mittal

  • When I try to update my iPhone 3Gs to the latest OS I recive an error message that says "the net conection has no response within the time disponible"

    Dear Friends:
    When I try to update my iPhone 3Gs thru iTunes, to the latest OS I receive an error message that says: "The net conection has been without any response within the limit of time.Please see your net settings or try later". I checked my internet settings and all is OK (I have not any proxy connection). I tried lots of time to do this update since some weeks till now and I always have the same error message. Please give me an answer about this problem because I cannot do anything more.
    Best Regards
    Joao Aguiar.

    Are you running modified software on your phone?  This error seems to be common if the firmware has been modified and you're trying to restore the phone again. 

  • This item could not be crawled because the repository did not respond within the specified timeout period. Try to crawl the repository at a later time, or increase the timeout value on the Proxy and Timeout page in search administration. You might also wa

    HI,
    I got the error message in the crawl log as below after performing the Full Crawl
    This item could not be crawled because the repository did not respond within the specified timeout period. Try to crawl the repository at a later time, or increase
    the timeout value on the Proxy and Timeout page in search administration. You might also want to crawl this repository during off-peak usage times.
    To overcome the above error,many forums have suggested me to increase the time out which is under Farm level settings.But if time out gets increased,performance impacts as well.
    So please suggest me to overcome this error without increasing the timeout.Thanks in advance
    Regards,
    Sudheer
    Thanks & Regards, Sudheer

    Hi,
    I understand that you get the error message when performing a full crawl. I have seen similar cases caused by IE proxy settings. You can try to edit the Internet Options>Connections>LAN settings. Uncheck ‘Automatically detect settings’.
    For more information, please refer to this site:
    Search error: crawler could not connect to the repository:
    http://social.technet.microsoft.com/forums/en-US/sharepointadminprevious/thread/c230ab36-8d0b-4c25-bf86-33136d17642b/
    Thanks,
    Entan Ming
    Entan Ming
    TechNet Community Support

  • CSM ret-code time-frame

    A company I work for has a number of CSM modules (WS-X6066-SLB-APC) installed in 6513 chasis switches. The CSM modules are running version
    4.2(14)
    These CSM modules are configured to load-balance a number of vservers via serverfarms, each serverfarm containing multiple real servers.
    Here is some example configuration:
    vserver SITE
      virtual 10.1.2.3 tcp www
      serverfarm SERVERFARM
      persistent rebalance
      inservice
    serverfarm SERVERFARM
      nat server
      no nat client
      predictor leastconns
      failaction reassign
      retcode-map RETCODE-MAP
      real 10.2.3.4
       inservice
      real 10.2.3.5
       inservice
    map RETCODE-MAP retcode
      match protocol http retcode 503 503 action remove 5 reset 300
    The company is facing a problem with what seems to be related to return code checking. Every once in a while a server will suddenly not receive any traffic for 5 minutes. This always occurs right after the server has sent a HTTP 503 return code. However we cannot see in the CSM logs that the CSM module has actually disabled the real server. For other serverfarms which are running regular HTTP and/or ICMP health checks to real servers we can clearly see in the CSM logs when a real server has been temporarily disabled due to health check failures.
    The return code checking is set to disable a real server for 300 seconds after the CSM has received five HTTP 503 responses from the real server. If we check the real server log however we cannot find more than that single 503 return code right before the server stops seeing any incoming traffic unless we move back at least hours in time.
    I have tried to figure out what time frame those 5 return codes must be received within for them to count towards the maximum allowed return codes, but nowhere in no documentation can I find any information about this time frame.
    For all I know the CSM could keep track of every incoming 503 forever, until the maximum of five 503's is reached, and then the server is disabled for 300 seconds.
    Does anyone have any information about the time frame within which those return codes must be received by the CSM to count toward the maximum configured number of return codes before the configured action is taken?

    Hi Christopher
    EDIT: It might actually be me who misunderstood your reply. You probably gave me the correct answer already, that there is no time limit at all to the counter, and the counter will increase until it reaches 5 even if those 503's are spread out over several months time. Could you please confirm that this is what you meant? I'll leave my original reply down below for you to look at.
    ORIGINAL MESSAGE:
    Thanks for your reply, but I think you might have misunderstood my question, and I don't exactly blame you because I had some difficulty explaining what I meant.
    I know what each and every key word in the following line mean, and I understand the command.
    match protocol http retcode 503 503 action remove 5 reset 300
    We match the protocol http, and look for when/if the server sends a return code 503 back to a client. Each time a 503 return code is returned from the real server a counter is increased by one. When the counter reaches 5 we take the action to remove (disable) the server. 300 seconds after the server was disabled it will be enabled again, and the counter will also be reset to zero at this point.
    But I'm asking about the time frame for the counter, or rather if there is a default timer that resets the counter back to zero after a certain amount of time. Let me give you an example.
    I enable return code checking for HTTP 503 and configure it to disable a server after five HTTP 503's have been seen by the CSM
    1 minute later the server sends three HTTP 503 messages to a client. Now the return code check counter is at 3. This is where the "time frame" that I speak of begins.
    Another 6 minutes later the server sends one HTTP 503 message to a client. The time frame within wich the CSM has seen HTTP 503's is now 6 minutes, so the CSM has seen four different HTTP 503's within 6 minutes. The counter would now be at 4.
    5 months later the server sends a fifth HTTP 503 message to a client. The time frame is now five months and six minutes. Will this fifth HTTP 503 message increase the return code check counter to 5? If it does, then the server will be disabled for 300 seconds, even though it was 5 months since the previous four 503's were seen by the CSM.
    What I'm wondering is basically if there is a limited time frame (like a sliding window) after which the return code check counter is reset back to zero? I cannot find any information about this, and as far as I can see there is no command I can use to see what the return code counter is currently at either, so I cannot manually verify this.
    It would have made sense if the feature worked like this instead, and I'm still hoping that someone can provide documentation that says this is the way it is supposed to work (because if the above example is true, then the feature is broken and useless)
    I enable return code checking for HTTP 503 and configure it to disable a server after five HTTP 503's have been seen by the CSM
    1 minute later the server sends three HTTP 503 messages to a client.  Now the return code check counter is at 3. This is where the "time  frame" that I speak of begins.
    5 minutes later the counter is reset to zero, because no 503's have been seen for over five minutes.
    2 months later the server sends a HTTP 503 message to a  client. This increases the counter to one. The server is never disabled. After another 5 minutes the counter is reset back to zero again.
    I hope that the above examples make it a bit clearer what I meant with my original question.

  • Raise an alert after a specified time, if file not found in source folder

    Hi all,
    For a requirement, I need to poll a folder at a specified time say 10.00-10:15 AM and check for a file.
    If the file is not placed in the source folder within this duration. I need to raise a alert.
    How do we handle requirement. Pointers/suggestions to achieve the same would be highly appreciated.
    Thanks in advance,
    Younus

    Hi Abhishek & Swarup,
    Thanks for your response. The timeout option will work if the Transport Protocol is FTP. But take a case where it is NFS.
    Then how will be monitor the source location for a certain period and then raise an alert.
    Please drop in your comments.
    regards,
    Younus

Maybe you are looking for

  • My brother's emails don't appear in my Inbox

    When my brother sends me an email, it does not appear in my general Inbox or in my Gmail account sub Inbox. I can view an email from him only if he calls or texts me to tell me he is sent it and I type his name in Mac Mail's search box. And viewing h

  • DVI to SDI or Component Production Monitor?

    I will be hooking up a new Panasonic HD professional production monitor (BT-LH2600W) to my G5. I only need to monitor from Final Cut Pro's Timeline; no input or output needed (like from a Kona Card). Panasonic monitor: http://catalog2.panasonic.com/w

  • 1-Month Storage

    Hello, everyone! I'd just like to have some clarification on this matter. Please help me if you can. I won't be using my iBook for a month and I'm not sure by how much I should charge the battery and whether I should leave it in or not. So, basically

  • How to boot from an old HD?

    I recently had a new hard drive installed in my macbook. All went well except for my office 2011 software is now looking for the product key which I can't locate (I purchased through my employers MS Home Use  program). I still have the old hard drive

  • Mobile Site Now Takes Over on iPhone

    On my iPhone, this jumped up in place of the normal site this morning: Unfortunately, I cannot seem log in, nor can I find a place where I can just get back the regular standard site. Honestly, I'd just prefer to be able to set an option to allow me