File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Live data? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Live data?" Watch "Live data?" New topic

Live data?

ryan headley
Ranch Hand

Joined: Jun 28, 2000
Posts: 156
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...

Ryan Headley<br /><a href="" target="_blank" rel="nofollow"></a>
karl koch
Ranch Hand

Joined: May 25, 2001
Posts: 388

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.

ryan headley
Ranch Hand

Joined: Jun 28, 2000
Posts: 156
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?
I agree. Here's the link:
subject: Live data?
It's not a secret anymore!