From: jprocter Date: Fri, 23 Sep 2005 09:19:39 +0000 (+0000) Subject: added a pollUpdate method to kick the vamsas Document watcher thread when the applica... X-Git-Tag: Release_0.2~469 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=074762e534ccb9623b6b67e5670644afb651aa7a;p=vamsas.git added a pollUpdate method to kick the vamsas Document watcher thread when the application wants to be immediatly informed of a document update. git-svn-id: https://svn.lifesci.dundee.ac.uk/svn/repository/trunk@51 be28352e-c001-0410-b1a7-c7978e42abec --- diff --git a/src/org/vamsas/client/IClient.java b/src/org/vamsas/client/IClient.java index 6c351e9..cebed2a 100644 --- a/src/org/vamsas/client/IClient.java +++ b/src/org/vamsas/client/IClient.java @@ -89,11 +89,19 @@ public interface IClient { public void storeDocument(java.io.File location); /** * Add a listener to a particular event chain. - * See org.vamsas.client.Events for allowed values for EventChain. - * The EventChain value is passed as the propertyName in the java.bean.PropertyChangeEvent - * TODO: build our own vamsas Event/Listener model. + * See org.vamsas.client.Events for allowed + * values for EventChain. + * The EventChain value is passed as the + * propertyName in the java.bean.PropertyChangeEvent + * TODO: extend class to form own vamsas Event/Listener model. * @param EventChain Name of event. Blank/null registers handler for all events. * @param evt - event handler function. */ public void addVorbaEventHandler(String EventChain, PropertyChangeListener evt); + /** + * client application calls this to force the + * Vorba client to check for updates immediately. + * + */ + public void pollUpdate(); } diff --git a/src/org/vamsas/client/SimpleClient.java b/src/org/vamsas/client/SimpleClient.java index 1f83b6f..4533295 100644 --- a/src/org/vamsas/client/SimpleClient.java +++ b/src/org/vamsas/client/SimpleClient.java @@ -298,6 +298,14 @@ public class SimpleClient implements IClient { } } + /* (non-Javadoc) + * @see org.vamsas.client.IClient#pollUpdate() + */ + public void pollUpdate() { + // TODO wake up UpdateWatcher thread to check for updates. + + } + public static void main(String[] args) { } }