jQuery in Action, 2nd edition*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Live data?" Watch "Live data?" New topic
Author

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="http://www.sudovi.com" target="_blank" rel="nofollow">http://www.sudovi.com</a>
karl koch
Ranch Hand

Joined: May 25, 2001
Posts: 388
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

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: http://aspose.com/file-tools
 
subject: Live data?
 
Similar Threads
Android or Iphone?
Dialing from a MIDlet
BusinessDelegate and ServiceLocator pattern
Balancing good design versus performance & memory
Land line sniffer