Examples of unload()


Examples of ch.sahits.game.openpatrician.model.ship.IShip.unload()

    int availableAmountShip = ship.getWare(ware).getAmount();
    ITradingOffice office = city.getPlayer().findTradingOffice(city.getCity());
    if (availableAmountShip>0 && office!=null){
      int amount2Move = dialog.getAmount(availableAmountShip); // This is ware specific size
      int avgPrice = ship.getWare(ware).getAVGPrice();
      int moved = ship.unload(ware, amount2Move);
      office.move(ware, moved,avgPrice);
    }

  }
View Full Code Here

Examples of com.bergerkiller.bukkit.tc.controller.MinecartGroup.unload()

    //entities left behind?
    for (World world : WorldUtil.getWorlds()) {
      for (org.bukkit.entity.Entity entity : WorldUtil.getEntities(world)) {
        MinecartGroup group = MinecartGroup.get(entity);
        if (group != null) {
          group.unload();
        }
      }
    }

    save();
View Full Code Here

Examples of com.bergerkiller.bukkit.tc.controller.MinecartGroup.unload()

        if (group.canUnload()) {
          TrainCarts.plugin.log(Level.WARNING, "Train '" + group.getProperties().getTrainName() + "' forcibly unloaded!");
        } else {
          TrainCarts.plugin.log(Level.WARNING, "Train '" + group.getProperties().getTrainName() + "' had to be restored after unexpected unload");
        }
        group.unload();
        // For the next tick: update the storage system to restore trains here and there
        CommonUtil.nextTick(new Runnable() {
          public void run() {
            OfflineGroupManager.refresh();
          }
View Full Code Here

Examples of com.google.gwt.dev.ModuleHandle.unload()

          + moduleName + "' from user agent '" + userAgent + "' at "
          + channel.getRemoteEndpoint(), e);
      if (moduleSpace != null) {
        moduleSpace.dispose();       
      }
      moduleHandle.unload();
      moduleMap.remove(serverChannel);
      moduleHandleMap.remove(serverChannel);
      return null;
    } finally {
      PerfLogger.end();
View Full Code Here

Examples of com.google.gwt.dev.ModuleHandle.unload()

    moduleHandle.getLogger().log(
        TreeLogger.INFO,
        "Unloading module " + moduleSpace.getModuleName() + " (" + moduleName
            + ")", null);
    moduleSpace.dispose();
    moduleHandle.unload();
    moduleMap.remove(serverChannel);
    moduleHandleMap.remove(serverChannel);
  }
}
View Full Code Here

Examples of com.ipc.oce.query.OCQueryResult.unload()

  @Test
  public void getResultAndUnload() throws JIException {
    QueryTemplate qt = new QueryTemplate(app);
    OCQueryResultSelection selection = qt.queryForSelection("SELECT * FROM Catalog.Валюты");
    OCQueryResult result = selection.getOwner();
    OCValueTable vt = result.unload();
    assertTrue(vt.size() > 0);
    OCValueTableColumnCollection vtCC = vt.getColumns();
    int vtCCSZ = vtCC.size();
    assertTrue(vtCCSZ > 0);
    System.out.println(vt.size());
View Full Code Here

Examples of com.orientechnologies.orient.core.record.impl.ODocument.unload()

    Assert.assertFalse(document.isDirty());

    final List<String> trackedList = document.field("embeddedlist");
    trackedList.add("value2");

    document.unload();

    Assert.assertEquals(document.getDirtyFields(), new String[] {});
    Assert.assertFalse(document.isDirty());
    Assert.assertNull(document.getCollectionTimeLine("embeddedlist"));
  }
View Full Code Here

Examples of com.sun.enterprise.deployment.interfaces.pluggable.ArchiveLoader.unload()

                            ((AppArchiveLoader)archiveLoader).
                                                setJ2eeAppBean(j2eeAppBeans[i]);
                            ((AppArchiveLoader)archiveLoader).
                                                setAppsManager(appsManager);
                            try {
                                archiveLoader.unload((ArchiveDescriptor)bd,
                                                                        false);
                            } catch ( Exception ex) {
                                //log the exception
                            }
                        } else {
View Full Code Here

Examples of com.sun.messaging.jmq.jmsserver.core.Destination.unload()

                // Now unload all the destinations that we've loaded so msgs can be routed correctly later on by the broker
                Iterator itr = dstLoadedSet.iterator();
                while (itr.hasNext()) {
                    Destination d = (Destination)itr.next();
                    d.sync(); // Sync changes to disk
                    d.unload(true);
                }
                dstLoadedSet = null;

                // Sync changes to txn tables
                tidList.sync(null);
View Full Code Here

Examples of com.sun.messaging.jmq.jmsserver.core.PacketReference.unload()

                  receivedTime, expiredTime, senderTime) };
             logger.log(Logger.INFO, BrokerResources.I_DMQ_MOVING_TO_DMQ,
                    args);
        }

        ref.unload();
       
    }

    /**
     * replaces the body of the message, adds the addProps (if not null)
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.