Home » Archived » Eclipse SCADA » Synchronous HD Items and Values(Getting HD items and values without listeners.)
| | | | |
Re: Synchronous HD Items and Values [message #1635040 is a reply to message #1634597] |
Wed, 25 February 2015 10:39  |
Eclipse User |
|
|
|
Jen,
Sorry, I meant HD items. Here is the code that am referring to:
import org.eclipse.scada.hd.ItemListListener;
import org.eclipse.scada.hd.client.Connection;
import org.eclipse.scada.hd.data.HistoricalItemInformation;
public class ItemListObserver implements ItemListListener
{
private final Map<String, HistoricalItemInformation> items = new HashMap<String, HistoricalItemInformation> ();
public ItemListObserver ( final Connection connection)
{
synchronized ( this )
{
connection.addListListener ( this );
}
}
@Override
public void listChanged ( final Set<HistoricalItemInformation> addedOrModified, final Set<String> removed, final boolean full )
{
handleUpdate ( addedOrModified, removed, full );
}
Is there a way for me to find if the retrieval is complete in the ItemListListener or should I be using a different approach?
Appreciate your help,
Regards,
Krishna
|
|
|
Goto Forum:
Current Time: Mon Apr 28 04:03:45 EDT 2025
Powered by FUDForum. Page generated in 0.04698 seconds
|