visad.data
Class LinkedDataSource
- java.lang.Object
-
- visad.data.LinkedDataSource
-
- Direct Known Subclasses:
- SocketDataSource
public abstract class LinkedDataSource extends java.lang.ObjectA class for linking a data source (e.g., a URL) with a DataReference. Whenever the data changes at the source, the new data is automatically loaded and the DataReference is set to point to it. VisAD applications can then use a CellImpl with the DataReference object in order to detect changes to the data at its source.
-
-
Constructor Summary
Constructors Constructor and Description LinkedDataSource(java.lang.String name)Construct a LinkedDataSource with the given name.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method and Description voiddataChanged(Data data)Update the data to which this LinkedDataSource is linked.java.lang.StringgetName()Return the name of this LinkedDataSource.DataReferenceImplgetReference()Return the DataReference for this LinkedDataSource.booleanisAlive()Return whether the connection to the data source is still alive.abstract voidopen(java.lang.String id)Load initial data from the given data source and remain linked to the data source, monitoring it for changes to the data.
-
-
-
Constructor Detail
-
LinkedDataSource
public LinkedDataSource(java.lang.String name)
Construct a LinkedDataSource with the given name.
-
-
Method Detail
-
open
public abstract void open(java.lang.String id) throws java.io.IOException, VisADException, java.rmi.RemoteExceptionLoad initial data from the given data source and remain linked to the data source, monitoring it for changes to the data.- Throws:
java.io.IOExceptionVisADExceptionjava.rmi.RemoteException
-
dataChanged
public void dataChanged(Data data) throws VisADException, java.rmi.RemoteException
Update the data to which this LinkedDataSource is linked.- Throws:
VisADExceptionjava.rmi.RemoteException
-
getName
public java.lang.String getName()
Return the name of this LinkedDataSource.
-
getReference
public DataReferenceImpl getReference()
Return the DataReference for this LinkedDataSource.
-
isAlive
public boolean isAlive()
Return whether the connection to the data source is still alive.
-
-
DMelt 3.0 © DataMelt by jWork.ORG