jas2.jds.module
Interface LocalDIM
-
- All Superinterfaces:
- AbstractDIM, java.io.Serializable
- All Known Subinterfaces:
- LocalDIM2
- All Known Implementing Classes:
- BasicLocalDIM, JHLocal, LocalFlatFileDIM, MultiFileLocalDIM, NoSetupLocalDIM, TestLocal
public interface LocalDIM extends AbstractDIM, java.io.Serializable
When a local job reads in data, it must use a local data interface module to generate an EventSource.- A class that implements this interface
should override the
toString()method. For example, the implementation jas2.jds.module.flatfileserver.LocalFlatFileDIM has the following method:
public String toString()Whatever
{
return "Flat file";
}
toString()returns is displayed in the Local DIM registry, and appeard on the JComboBox where the user selects the LocalDIM to use. - The LocalDIM interface extends java.io.Serializable, so you must define a serializable
class. This means that all objects refered to by member variables of your class will
be serialized unless marked
transient. Be aware that transient variables arenullwhen the object is read from disk, so be sure to initialize them in a readObject() method. - To use a local DIM, you must add your class to the Local DIM registry.
- Give a definition for the following method:
public EventSource openDataSet(String name) throws ModuleExceptionThis method, inherited from the AbstractDIM interface, will be called aftercreateJob()is called in the LocalJobBuilder. It must return an EventSource, which the application will use to access the events in your data set. See the documentation on defining an EventSource.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description JASWizardPagegetSetupPage()Return a setup page for the new job wizard to use when creating a job.voidsetLocalJobBuilder(LocalJobBuilder ljb)Copy over the given object to a member field for use later.-
Methods inherited from interface jas2.jds.module.AbstractDIM
openDataSet
-
-
-
-
Method Detail
-
getSetupPage
JASWizardPage getSetupPage()
Return a setup page for the new job wizard to use when creating a job. See the documentation on defining pages.
-
setLocalJobBuilder
void setLocalJobBuilder(LocalJobBuilder ljb)
Copy over the given object to a member field for use later. When the user selects a DIM, the wizard invokes this method, thereby providing the DIM with access to the application's local job builder. That local job builder already knows which DIM to use and knows the job name, and can be used to create a new job when all setup (on the setup wizard page returned bygetSetupPage()) is complete.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG