From e6d293bcc8dadfcce4c12331112515f5061f2de0 Mon Sep 17 00:00:00 2001 From: Stefano Mazzocchi Date: Sun, 5 Sep 2010 06:07:32 +0000 Subject: [PATCH] make it compile again git-svn-id: http://google-refine.googlecode.com/svn/trunk@1260 7d457c2a-affb-35e4-300a-418c747d4874 --- broker/appengine/.classpath | 2 ++ .../broker/AppEngineGridworksBrokerImpl.java | 16 ++++++++++++---- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/broker/appengine/.classpath b/broker/appengine/.classpath index 5d8e8539b..6c0290de8 100644 --- a/broker/appengine/.classpath +++ b/broker/appengine/.classpath @@ -11,5 +11,7 @@ + + diff --git a/broker/appengine/src/com/google/gridworks/broker/AppEngineGridworksBrokerImpl.java b/broker/appengine/src/com/google/gridworks/broker/AppEngineGridworksBrokerImpl.java index 205e7a49a..2e4263975 100644 --- a/broker/appengine/src/com/google/gridworks/broker/AppEngineGridworksBrokerImpl.java +++ b/broker/appengine/src/com/google/gridworks/broker/AppEngineGridworksBrokerImpl.java @@ -55,6 +55,14 @@ public class AppEngineGridworksBrokerImpl extends GridworksBroker { // --------------------------------------------------------------------------------- + protected void expire(HttpServletResponse response) throws Exception { + // TODO: implement + } + + protected void startProject(HttpServletResponse response, String pid, String uid, String lock, byte[] data, String metadata, List transformations) throws Exception { + // TODO: implement + } + protected void expireLocks(HttpServletResponse response) throws Exception { PersistenceManager pm = pmfInstance.getPersistenceManager(); @@ -88,21 +96,21 @@ public class AppEngineGridworksBrokerImpl extends GridworksBroker { } } - protected void getState(HttpServletResponse response, String pid, String rev) throws Exception { + protected void getState(HttpServletResponse response, String pid, String uid, int rev) throws Exception { PersistenceManager pm = pmfInstance.getPersistenceManager(); try { - // FIXME + // TODO: implement respond(response, lockToJSON(getLock(pm,pid))); } finally { pm.close(); } } - protected void obtainLock(HttpServletResponse response, String pid, String uid, String type) throws Exception { + protected void obtainLock(HttpServletResponse response, String pid, String uid, int locktype, String lockvalue) throws Exception { PersistenceManager pm = pmfInstance.getPersistenceManager(); - // FIXME (use type) + // TODO: implement try { Lock lock = getLock(pm, pid);