File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Live data?

 
ryan headley
Ranch Hand
Posts: 156
  • 0
  • Mark post as helpful
  • send pies
  • 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...

 
karl koch
Ranch Hand
Posts: 388
  • 0
  • Mark post as helpful
  • send pies
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • 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?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic