From 074762e534ccb9623b6b67e5670644afb651aa7a Mon Sep 17 00:00:00 2001 From: jprocter Date: Fri, 23 Sep 2005 09:19:39 +0000 Subject: [PATCH] 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 --- src/org/vamsas/client/IClient.java | 14 +++++++++++--- src/org/vamsas/client/SimpleClient.java | 8 ++++++++ 2 files changed, 19 insertions(+), 3 deletions(-) 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) { } } -- 1.7.10.2