|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.vo.TapMetaManager
public class TapMetaManager
Handles asynchronous population of the TAP metadata hierarchy. It owns a TapMetaReader and invokes its methods as required to populate the metadata hiearchy objects, providing methods that allow callbacks to be invoked when the relevant items are available.
Constructor Summary | |
---|---|
TapMetaManager(TapMetaReader rdr)
Constructor. |
Method Summary | |
---|---|
java.util.concurrent.ExecutorService |
getExecutor()
Lazily create and return an executor instance. |
TapMetaReader |
getReader()
Returns the object that performs the actual data reads. |
boolean |
onColumns(TableMeta tmeta,
Runnable callback)
Invokes a runnable on the Event Dispatch Thread when the column metadata is available for a given table metadata object. |
boolean |
onForeignKeys(TableMeta tmeta,
Runnable callback)
Invokes a runnable on the Event Dispatch Thread when the foreign key metadata is available for a given table metadata object. |
boolean |
onTables(SchemaMeta smeta,
Runnable callback)
Invokes a runnable on the Event Dispatch Thread when the table metadata is available for a given schema metadata object. |
void |
shutdown()
Releases resources and terminates any currently running asynchronous metadata reads. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TapMetaManager(TapMetaReader rdr)
rdr
- object that knows how to acquire metadataMethod Detail |
---|
public TapMetaReader getReader()
public boolean onTables(SchemaMeta smeta, Runnable callback)
smeta
- schema metadata itemcallback
- runnable to be invoked on the EDT when
smeta.getTables() has a non-null return
public boolean onColumns(TableMeta tmeta, Runnable callback)
tmeta
- table metadata itemcallback
- runnable to be invoked on the EDT when
tmeta.getColumns() has a non-null return
public boolean onForeignKeys(TableMeta tmeta, Runnable callback)
tmeta
- table metadata itemcallback
- runnable to be invoked on the EDT when
tmeta.getForeignKeys() has a non-null return
public void shutdown()
public java.util.concurrent.ExecutorService getExecutor()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |