Examples of Container


Examples of com.tensegrity.palo.gwt.widgets.client.container.Container

        setupHandler = new SetupHandler(this, LayoutRegion.WEST);
//    }
  }
 
  private final void initRepositoryContainer() {
    repositoryContainer = new Container(new DimensionRepositoryRenderer(displayFlags.isHideStaticFilter())){
      protected void onAttach() {
        super.onAttach();
        checkDnDState();
      }     
    };
View Full Code Here

Examples of com.vaadin.data.Container

     */

    @Override
    public void sort(Object[] propertyId, boolean[] ascending)
            throws UnsupportedOperationException {
        final Container c = getContainerDataSource();
        if (c instanceof Container.Sortable) {
            final int pageIndex = getCurrentPageFirstItemIndex();
            boolean refreshingPreviouslyEnabled = disableContentRefreshing();
            ((Container.Sortable) c).sort(propertyId, ascending);
            setCurrentPageFirstItemIndex(pageIndex);
View Full Code Here

Examples of com.vaadin.terminal.gwt.client.Container

        // first render footer so it will be easier to handle relative height of
        // main layout
        if (uidl.getChildCount() > 1
                && !uidl.getChildUIDL(1).getTag().equals("actions")) {
            // render footer
            Container newFooter = (Container) client.getPaintable(uidl
                    .getChildUIDL(1));
            if (footer == null) {
                add((Widget) newFooter, footerContainer);
                footer = newFooter;
            } else if (newFooter != footer) {
                remove((Widget) footer);
                client.unregisterPaintable(footer);
                add((Widget) newFooter, footerContainer);
            }
            footer = newFooter;
            footer.updateFromUIDL(uidl.getChildUIDL(1), client);
            // needed for the main layout to know the space it has available
            updateSize();
        } else {
            if (footer != null) {
                remove((Widget) footer);
                client.unregisterPaintable(footer);
                // needed for the main layout to know the space it has available
                updateSize();
            }
        }

        final UIDL layoutUidl = uidl.getChildUIDL(0);
        Container newLo = (Container) client.getPaintable(layoutUidl);
        if (lo == null) {
            lo = newLo;
            add((Widget) lo, fieldContainer);
        } else if (lo != newLo) {
            client.unregisterPaintable(lo);
View Full Code Here

Examples of com.vmware.bdd.placement.Container

         List<BaseNode> existedNodes) {

      logger.info("Begin to calculate provision plan.");

      logger.info("Calling resource manager to get available vc hosts");
      Container container = new Container();

      List<VcCluster> clusters = resMgr.getAvailableClusters();
      AuAssert.check(clusters != null && clusters.size() != 0);
      for (VcCluster cl : clusters) {
         VcResourceUtils.refreshDatastore(cl);
         container.addResource(cl);
      }

      // check time on hosts
      int maxTimeDiffInSec = Constants.MAX_TIME_DIFF_IN_SEC;
      SoftwareManager softMgr =
            softwareManagerCollector.getSoftwareManager(clusterSpec
                  .getAppManager());
      if (softMgr.hasHbase(clusterSpec.toBlueprint()))
         maxTimeDiffInSec = Constants.MAX_TIME_DIFF_IN_SEC_HBASE;

      List<String> outOfSyncHosts = new ArrayList<String>();
      for (AbstractHost host : container.getAllHosts()) {
         int hostTimeDiffInSec =
               VcResourceUtils.getHostTimeDiffInSec(host.getName());
         if (Math.abs(hostTimeDiffInSec) > maxTimeDiffInSec) {
            logger.info("Host " + host.getName() + " has a time difference of "
                  + hostTimeDiffInSec
                  + " seconds and is dropped from placement.");
            outOfSyncHosts.add(host.getName());
         }
      }
      for (String host : outOfSyncHosts) {
         container.removeHost(host);
      }

      // filter hosts by networks
      List<com.vmware.bdd.spectypes.VcCluster> usedClusters = clusterSpec.getVcClusters();
      List<String> noNetworkHosts = new ArrayList<String>();
      noNetworkHosts = resMgr.filterHostsByNetwork(clusterSpec.getNetworkNames(), usedClusters);

      for (String host : noNetworkHosts) {
         container.removeHost(host);
      }

      Map<String, List<String>> filteredHosts =new HashMap<String, List<String>>();
      if (!outOfSyncHosts.isEmpty()) filteredHosts.put(PlacementUtil.OUT_OF_SYNC_HOSTS, outOfSyncHosts);
      if (!noNetworkHosts.isEmpty()) {
         filteredHosts.put(PlacementUtil.NO_NETWORKS_HOSTS, noNetworkHosts);
         filteredHosts.put(PlacementUtil.NETWORK_NAMES, clusterSpec.getNetworkNames());
      }

      container.SetTemplateNode(templateNode);
      if (clusterSpec.getHostToRackMap() != null
            && clusterSpec.getHostToRackMap().size() != 0) {
         container.addRackMap(clusterSpec.getHostToRackMap());
      }

      // rack topology file validation
      Set<String> validRacks = new HashSet<String>();
      List<AbstractHost> hosts = container.getAllHosts();
      for (AbstractHost host : hosts) {
         if (container.getRack(host) != null) {
            // this rack is valid as it contains at least one host
            validRacks.add(container.getRack(host));
         }
      }

      for (NodeGroupCreate nodeGroup : clusterSpec.getNodeGroups()) {
         if (nodeGroup.getPlacementPolicies() != null
View Full Code Here

Examples of de.ailis.xadrian.data.Container

                    Integer.parseInt(element.attributeValue("avgPrice"));
                final int maxPrice =
                    Integer.parseInt(element.attributeValue("maxPrice"));
                final int volume =
                    Integer.parseInt(element.attributeValue("volume"));
                final Container container =
                    Container.valueOf(element.attributeValue("container"));
                final Ware ware =
                    new Ware(this.game, id, minPrice, avgPrice, maxPrice,
                        volume, container);
                this.wares.add(ware);
View Full Code Here

Examples of de.iritgo.aktera.core.container.Container

   */
  public void doModel(Properties props)
  {
    try
    {
      Container keelContainer = (Container) ServerAppContext.serverInstance().getObject("keel.container");

      Model model = (Model) keelContainer.getService(Model.ROLE, props.getProperty("model"));

      ModelRequest req = (ModelRequest) keelContainer.getService(ModelRequest.ROLE);
      DefaultContext context = new DefaultContext();

      ((KeelContextualizable) req).setKeelContext(context);

      String attributeName = null;
View Full Code Here

Examples of de.javakaffee.kryoserializers.TestClasses.Container

    }

    @Test( enabled = true )
    public void testInnerClass() throws Exception {
        // seems to be related to #15
        final Container container = TestClasses.createContainer();
        final Container deserialized = deserialize( serialize( container ), Container.class );
        assertDeepEquals( deserialized, container );
    }
View Full Code Here

Examples of de.javakaffee.web.msm.serializer.javolution.TestClasses.Container

        assertDeepEquals( deserialize( bytes ), bean );
    }

    @Test( enabled = true )
    public void testInnerClass() throws Exception {
        final Container container = TestClasses.createContainer( "some content" );
        assertDeepEquals( deserialize( serialize( container ) ), container );
    }
View Full Code Here

Examples of de.sebastianbenz.task.Container

    }
    return _builder;
  }
 
  public boolean isFirst(final Task task) {
    Container _parent = task.getParent();
    EList<Content> _children = _parent.getChildren();
    Iterable<Task> tasks = Iterables.<Task>filter(_children, Task.class);
    Iterator<Task> _iterator = tasks.iterator();
    Task _next = _iterator.next();
    return Objects.equal(_next, task);
  }
View Full Code Here

Examples of de.tuclausthal.informatik.winf.mobileagents.container.Container

        info.setPackager(p);

        // put to run
        try
        {
            Container c = ContainerManager.getInstance().getContainer();

            boolean deployed = false;
            int tries = 0;
            while (!deployed && tries < 5)
            {
                tries++;
                try
                {
                    c.loadAgent(info);
                    deployed = true;
                    tries++;
                    Thread.currentThread().wait(100);
                }
                catch (Throwable e)
                {
                    // ignore, we are trying
                }
            }

            if (deployed)
            {
                c.runAgent(info);
                return this.REPLY_OK;
            } else
            {
                return this.REPLY_ERROR;
            }
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.