• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Live data?

 
Ranch Hand
Posts: 156
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Does anyone here have any experience in querying "live data"?
I have been charged with the task of writing a stand alone java app that will read an ACD (like a hotline of telephones, with several operators), where people will be loggin into phone, logging out of phones, on hold, dialing out and monitoring the incoming call queue.
As you can see the data would change constantly. My question is what path would I need to follow to find out how to retrieve and display dynamically changing data?
At any one time I would need to report the following:
Who is logged into the phone system?
Who is on a call/hold/conference/dailing in/dialing out/ready/not ready?
Number of callers waiting for an operator.
Logged into what priority, etc...
Any information would be useful...

 
Ranch Hand
Posts: 388
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,

try the MVC pattern (find more in the pattern section on this board)
you have classes Modelling the data. the View is notified on changes trough events. so it can update the data displayed everitime something changed.
this is not the only reason to use ModelViewController pattern. it is also very good to separate the data from the representation of the data -> you can have different views from the same data.
this was a bad explanation of MVC ;-) hope you find something more clear on the patern group.

k
 
ryan headley
Ranch Hand
Posts: 156
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I understand MVC architecture but what do I use to monitor changes? Is there some sort of change event that I have in a class that gets notified to update displays on client computers when any field I am watching changes? Does a class already exist or would I have to create my own event? Should I use a thread as well?
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic