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="http://www.sudovi.com" target="_blank" rel="nofollow">http://www.sudovi.com</a>
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.
Joined: Jun 28, 2000
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?