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

Similar Messages

  • 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"

  • 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.

  • 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?  

  • Sync Time Frame Settings

    During the original 7 months using the Z10 my emails and calendar had synced perfectly with Outlook with the Sync Time Frame of 30 days setting. Yesterday I changed the sync time frame to FOREVER and my SENT emails and sub-folders no longer synced. After changing back to 30 days, most folder synced properly immediately except for the DRAFTS folder which is still not syncing a day later.
    Anyone else experience these?
    A sync time frame longer than 30 days and shorter than forever would be a huge improvement - i.e.: 180 days, 365 days, 720 days.

    It seems many people are having email issues with Windows Live/ Hotmail/ Outlook accounts since the Outlook outage last Thursday...I still can't get my emails to my z10, though I can now access my emails over the browser...

  • How to Set Automatic to turn on and off at specified time my TV with STB

    It seems very frustrating talking with Verizon tech support, that's why I turn to you guys to find if anyone knows the answer to my question above.,from my experience calling verizon for my tech support regarding fiosTV and most of my experience from Verizon are either inept and giving the customer the run around by keeping you on hold for the longest and not having the answer after all the time I spend with the tech on the phone or they will tell you that the that there is no such thing; and when you call again when you get another tech on the phone you get completely different answer if not an inept answer. 
    My Specific question is, if  I turned off my STB (top box) and my TV at a particular time; and I like my TV with STB to turn on at a specified time ( example I turned off my STB and TV at 9:00 PM ) and would like my TV with the STB to be turn on like 11:00 PM to turn off at 12:00 midnight by itself, not to record  but just to turn on as reminder and to serve as power saver incase I fall asleep ( this is just example scenario). How would I do that? The manual of either remote control or the STB does not provide that information. My television manual say the TV can but I can not turn it on automatically with the STB connected.
    I called Verizon tech, he first sounded inept and sounded like he just talking from a scripted lines, and would not tell me straight forward that he does not know the answer; I  explained that I switched to Verizon Fios for its claim in high and advance technology as they compare themselves by far higher in technology as compared with Cable or direct TV, and with Cable Vision I was able to used the above automatic turn on and off with the remote; I asked for his supervisor or maybe more expert tech support, He turned over the call to his supervisor, who told me that the STB or the remote Fios TV does not have that level of capability which sounded to me like a joke, he also told me that the STB can not be turn on and off because STB is always set as on; I told him I can see the green light turns on and off on the STB each time I press the ON button on the Verizon Remote; he defended that its always on because the timer is ON, and he told me instead FIOSTV has another feature that although it will not turn the feature on and off automatically, it will serve as reminder, I asked him How to carry out that function, the tech supervisor said  to me to just press the record button on my remote, which I know right away that it will just record, and  I told him that its not what I want to accomplish, this Tech Supervisor insisted that it will not record but will set to notify me, but surely it did record and it just wasted and used my DVR memory capacity the time when he put me on hold for a long period of time, I knew it recorded because the red button on the STB/TVR was on., and it did not notify me in anyway what time the TV and STB will turn on. That was a complete  waste of time, instead of him getting the issue to higher level of their tech support and try to research thru and get back to the client. To me, simple feature as this, is such absurd to claim that fiosTV has more advance features than others, where infact they can not even have their tech support answer such simple question.  
    Any one here has any idea, please help.

    The set top box does not offer any auto on or auto off feature. 
    you can only do that if your TV offers the feature. 
    If neither your TV nor the STB offer that feature (in this case the stb does not offer) then you can go to a radio shack or a similiar store and purchase a AC timer.  they make them and you plug them into your wall, they are very cheap.
    I have had directv and fios and neither of my systems did an automatic on or off. 
    BUT my samsung TV upstairs does have that feature (auto on and off)   and I have not checked my mitsubishi downstairs. 
    so you may want to check your settings on your TV to see if it will do it, like my samsung does. 

  • Chart question with, I'm sure, a simple answer (That I can't seem to figure out). Fixed 'time frame' on time axis.

    Hello all.
    I'm using charts to record data coming from vibration sensors on a bearing testing rig.
    The problem I have (or rather the users have) is that the chart seems to only show a minute or so 'window' of data and it moves along through the day that way.  Adding a scrollbar on the axis helps, but doesn't give a real 'picture' of a specified time range.
    We'd like to have the time range of the chart be about 12 hours.  Is there a simple way in properties that you can set the chart to show 'last X amount of time'?  Or at least something greater than a minute!
    Thanks for bearing with me.  There seemed to be several posts sorta similar to this, but none really addressing the exact issue.
    Still confused after 8 years.

    Hi Ralph,
    > I'm really, really confused.
    Don't feel alone, this was not obvious to me either.
    Here is an example in LV 8.5
    You can set the log interval and the number of hours to be displayed.
    steve
    Help the forum when you get help. Click the "Solution?" icon on the reply that answers your
    question. Give "Kudos" to replies that help.
    Attachments:
    chart time.vi ‏20 KB

  • Time frames are not accurate with data used?

    Why does the time frame of Data used  not correctly  reflect the same on my bill?

        Hi Critch! Thats a great question. The difference in times may be reflective of difference in time zone or usage not reported while on an extended network. Are the times off by a few minutes or several hours? Does this happen with voice and messaging usage as well?
    Thanks,
    AdamE_VZW
    Follow us on Twitter @VZWSupport

  • Lock Frontpanel when user takes no activity in a specified time

    Hello !
    I have a PanelPC with Touchscreen and want to lock the frontpanel when the user doesn't make an input for a specified time. After this time the frontpanel locks and shows a password input to unlock the frontpanel. How do i detect if the user makes no input ? The VI has to run, because it makes an automatic control/ regulation of a factory. I found an example with a password protection, but i don't know how to detect the user input. Can anyone help me ?

    You can monitor the "mouse events" and also the "keypress events (using the keyboard)" and with this FP can be locked/unlocked based on the time out. 
    Create an event structure so that it will be easy to handle the mouse events. Add another frame of this event structure which can be used for handling the timeout and when ever a event occurs on the FP you can reset it to 0
    Regards
    Guru (CLA)
    Attachments:
    timeout.vi ‏13 KB

  • HT201412 After ios7, My iphone4 has gone dead twice in a time frame of around two months...even though its not happening very often but a two month Old phone going dead just after a New update is not acceptable.probably ios7 still has sum bugs dat need to

    After ios7, My iphone4 has gone dead twice in a time frame of around two months...even though its not happening very often but a two month Old phone going dead just after a New update is not acceptable.probably ios7 still has sum bugs dat need to be fixed...Can this bug expected to be fixed in the next update...

    Hi 1283ar.
    Unfortunately, iOS 7 is too hard to push for the iPhone 4 and therefore has a lot of effects turned off to try to get it to run as smoothly as possible.
    However, it becomes better and better with each update coming but it's hard to do anything about the hardware on an already released phones.
    If you still have trouble or think they are too hard. My tip is, if so, to restore your iPhone 4 and make a clean setup with no iCloud backup. But all your photos in a photostream so you can access it later.

  • How do i set the time frame of a waveform chart programmatically to be a 30 sec window or a 24 hour window

    i'm using LV7.0 and what i need to do is to be able to set the time frame or range of a waveform chart programmatically before i start taking and plotting data. sometimes this window needs to be 30s wide and sometimes it needs to be 24 hrs wide. (in the first reference, i need the chart to fill up with 30s of historical data then the whole chart scrolls with each new data point). the data acquisition records data at a rate of once per second. i've tried to use the chart properties of XScale.offset, XScale.Range.Minimum and XScale.Range.Maximum but no matter what i do the time-stamp on the x-axis is always "00:00:00 PM" and "MM/DD/YYYY" even though values are seen being plotted on the right side of the chart as expected.
    Attachments:
    BX0265 ShelfLife DAQmx.vi ‏120 KB

    Okay, there seems to be some confusion here -- the X axis values are of type double, but they can be represented in the HH:MMS MMD:YYYY format if you want in which case it interprets the floating point as the number of seconds since 6pm Dec 31, 1903. 
    You can programmatically set this value using the XScale.Minimum and XScale.Maximum properties, but note that if you wire a waveform to the chart after setting these values the t0 parameter will override what you set using the property node for XScale.Minimum.  If instead you leave the t0 parameter empty you can use the XScale.Offset property and wire the same value in that you wire to XScale.Minimum.  Changing the amount you add to XScale.Minmum to obtain what you wire into XScale.Maximum will determine the time window size.
    Doug M
    Applications Engineer
    National Instruments
    For those unfamiliar with NBC's The Office, my icon is NOT a picture of me

  • Who logged in particular time frame

    I have my query below. I want to find out who logged in particuler time frame. Please help.
    set linesize 80
    ttitle "Current Oracle Users"
    column fname new_value _fname
    column pu format a8 heading 'O/S|Login|ID' justify left
    column su format a20 heading 'Oracle|User ID' justify left
    column stat format a8 heading 'Session|Status' justify left
    column ssid format 999999 heading 'Oracle|Session|ID' justify right
    column sser format 999999 heading 'Oracle|Serial|No' justify right
    column ppid format 999999 heading 'Oracle|Process|ID' justify right
    column spid format 999999 heading 'UNIX|Process|ID' justify right
    column txt format a28 heading 'Current Statment' justify center
    select 'cu'||to_char(sysdate,'yymmddhhmiss') fname
    from dual;
    rem spool &_fname
    spool who_is_on.lis
    select p.username pu,
    s.username su,
    s.status stat,
    s.sid ssid,
    s.serial# sser,
    p.pid ppid,
    lpad(p.spid,7) spid
    from v$process p,
    v$session s
    where p.addr=s.paddr
    and s.username is not null
    order by 1,2,7
    /spool off
    exit

    Please help with what?
    You've told us you have a query, you've told us you want to know the logon time, you haven't told us anything really.
    Is the current problem that you need to add s.LOGON_TIME, to your query?
    Or is the problem that you expect V$session to keep a complete history for you and it does not?
    I'm assuming no one has tried to help you because you haven't really told us the problem you have in any detail.

  • How to apply effect to a certain time frame?

    Hello everyone,
    I was just wondering how can I apply an effect to a full avchd file, but specify what time frame it will effect?
    Say if I want the video to be black and white for the first 5 seconds and then transition from that black and white into color how do I actually do that?
    Do I need to split the video up into pieces and apply the efect to each piece? How do I split the full video into smaller sections in Premiere Pro if so?
    Thanks.

    Is there a way to customize the cross dissolve at all? It seems a bit basic. Or are there any cool techniques you suggest I do with the cross dissolve?
    You can adjust the Duration of the Cross-dissolve. In the stated case, you are trying to add an Effect to only part of the Clip. The reason for the Cross-dissolve is to ease the viewer into the Effect, so you want the Cross-dissolve to be essentially invisible.
    Even with Transitions that are not "easing" the audience into an Effect, I usually keep it very simple. Butt-cut, Dip-to-Black and Cross-dissolve are what I use 99% of the time. Most of the rest have never been used, with perhaps an exception for Titles and their animation.
    The Keyframing can allow for this too. A good, simple approace would be to go to the Effects Control Panel (where you added your Keyframes), and Rt-click on the first one, choosing Ease-Out from the flyout menu. You'll notice that the graph of your Keyframes now looks different, as does the icon for the Keyframe. Go to the next Keyframe, Rt-click and choose Ease-in. Notice the changes to both that icon and also to the graph. If you look closely, you will see that on the graph, each Keyframe now has a pair of "handles." You can click and drag on the point on these handles to alter the velocity of the Ease-Out/Ease-In functions. Note: there are many more ways to alter the velocity, but this is a simple starter example.
    Good luck,
    Hunt

  • Is there any way to see the last local of my phone after the 24 hour time frame post email notification?

    Is it possible to see the last location of my iPhone if its more then the 24 hr time frame after the notification email was sent?

    transon wrote:
    not sure I understand. You're spending your own money to buy a Tivo to use a service Verizon provides? Like instead of expecting them to keep your equipment up to date? (or at least allow you options equal to all other Verizon customers)
    I have one TiVO HD now, and adding another would be great. Have you ever used a TiVO guide and actually got what you wanted to record? I pay TiVO $9.99 a month because my commitment is up, and Verizon $3.99 a month and get everything but Widgets I don't want. VOD they charge to much for, Remote DVR programming that only works when you don't need it. I have a 1TB internal drive I installed. Get my point?
    Under $15 a month and does everything I want. I thought I missed the VOD untill I got it back for 2 months and decided I didn't need it. Multi Room, don't need it. Tried it once and canceled it. The only reason I have MRDVR now was to get the discounted HD boxes which they do now anyway. Shame they started that a month after I picked up the VZ DVR.
    I did sugest that Verizon partner with TiVO and cut their development cost, and that was given a not likely response. Yea if Verizon offered a TiVO with the guide TiVO provides, TiVO VOD options, Verizon VOD options, Verizon Widgets, I would give Verizon $20 a month no problem.
    I had a Verizon 6216 DVR for 4 years, a TiVO still for over a year, and now a 7216 for about 2 months. I like TiVO. Sorry Verizon.

Maybe you are looking for