예제 #1
0
 /**
  * Fills a data container with data from the all local objects on the server.
  *
  * @param dc the container to fill
  */
 public void fill(ExtendedDataContainer dc, ClientInfo ci) {
   Map<ClientInfo, LocalObjectList> copy =
       new HashMap<ClientInfo, LocalObjectList>(client2LocalObj);
   if (ci != null) {
     copy.remove(ci);
   }
   for (Iterator<LocalObjectList> itty = copy.values().iterator(); itty.hasNext(); ) {
     LocalObjectList lol = itty.next();
     for (Iterator<LocalObject> itty2 = lol.iterator(); itty2.hasNext(); ) {
       LocalObject lo = itty2.next();
       dc.add(lo);
     }
   }
 }
예제 #2
0
 /**
  * Removes a client completely from the list, i.e. it kills all of its local objects on the
  * server.
  *
  * @param ci the client
  */
 public void remove(ClientInfo ci) {
   client2LocalObj.remove(ci);
 }