Ejemplo n.º 1
0
 /** 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;
 }
Ejemplo n.º 2
0
 /** 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());
   }
 }
Ejemplo n.º 3
0
 /** 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);
 }