/** Convenience method for reading the list of operations for the current client thread. */ public static OpList getOpList() { Object key = OpListKey + Thread.currentThread().getName(); OpList opList = (OpList) (AsyncMsgBB.getBB().getSharedMap().get(key)); Log.getLogWriter().info("AsyncBB read from shared map key " + key + ", value " + opList); return opList; }
/** Check if an error has been recorded in the blackboard. */ public static void checkForError() { Object error = AsyncMsgBB.getBB().getSharedMap().get(AsyncMsgBB.ErrorKey); if (error != null) { throw new TestException(error.toString()); } }
/** Convenience method for writing a list of operations for the current client thread. */ public static void putOpList(OpList opList) { Object key = OpListKey + Thread.currentThread().getName(); AsyncMsgBB.getBB().getSharedMap().put(key, opList); Log.getLogWriter().info("AsyncBB put into shared map key " + key + ", value " + opList); }