aspose file tools
The moose likes Java in General and the fly likes How to fetch the first data from similar datas? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "How to fetch the first data from similar datas?" Watch "How to fetch the first data from similar datas?" New topic
Author

How to fetch the first data from similar datas?

preethi Ayyappan
Ranch Hand

Joined: Oct 04, 2007
Posts: 518
Hi all,

When i run my java program, i am getting the hangup event as output like the following:


org.asteriskjava.manager.event.HangupEvent[dateReceived=Tue Jan 18 12:35:51 GMT+05:30 2011,privilege='call,all',causetxt='user busy',callerid='null',cause='16',state='null',calleridname='null',timestamp='null',uniqueid='1295334351.25',calleridnum='null',channel='busy',systemHashcode=32680410]

org.asteriskjava.manager.event.HangupEvent[dateReceived=Tue Jan 18 12:35:51 GMT+05:30 2011,privilege='call,all',causetxt='Bearer capability not available',callerid='null',cause='58',state='null',calleridname='null',timestamp='null',uniqueid='1295334351.21',calleridnum='null',channel='OutgoingSpoolFailed',systemHashcode=32680410]



Here i need to take the first hangup event. please assist me to do this.

Thanks.

Ulf Dittmer
Rancher

Joined: Mar 22, 2005
Posts: 42954
    
  73
What do you mean by "take the first hangup event"? Is this a log file that you're parsing, and you somehow need to select some of the log records? If so, what is the logic that distinguishes "some records" from all others?
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 41552
    
  31
Moving discussion as too difficult for "beginning".
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: How to fetch the first data from similar datas?