Examples of addResource()


Examples of com.linkedin.helix.HelixAdmin.addResource()

    AssertJUnit.assertTrue(exceptionCaught);

    exceptionCaught = false;
    try
    {
      tool.addResource(clusterName, "resource", 10, "MasterSlave",
          IdealStateModeProperty.AUTO.toString());
    } catch (UnsupportedOperationException e)
    {
      exceptionCaught = true;
    }
View Full Code Here

Examples of com.linkedin.helix.manager.zk.ZKHelixAdmin.addResource()

    // add resource "TestDB" which has 4 partitions and uses MasterSlave state model
    String resourceName = "TestDB";
    if (idealStateMode == IdealStateModeProperty.AUTO
        || idealStateMode == IdealStateModeProperty.AUTO_REBALANCE)
    {
      admin.addResource(clusterName, resourceName, 4, "MasterSlave", idealStateModeStr);

      // rebalance resource "TestDB" using 3 replicas
      admin.rebalance(clusterName, resourceName, 3);
    }
    else if (idealStateMode == IdealStateModeProperty.CUSTOMIZED)
View Full Code Here

Examples of com.mojang.minecraft.player.Player.addResource()

  @Override
  public void playerTouch(Entity entity)
  {
    Player player = (Player)entity;

    if(player.addResource(resource))
    {
      TakeEntityAnim takeEntityAnim = new TakeEntityAnim(level, this, player);

      level.addEntity(takeEntityAnim);
View Full Code Here

Examples of com.narirelays.ems.services.PrivilegeManagementService.addResource()

  public String addResource()//要求资源的path非空
  {
    PrivilegeManagementService privilegeManagementService = (PrivilegeManagementService)StorageService.ctx.getBean("privilegeManagementService");
    if(privilegeManagementService!=null)
    {
      resultInfo = privilegeManagementService.addResource(request.getParameter("category_id"),parameterMap);
    }
    return SUCCESS;
  }
 
  public String modifyResource()
View Full Code Here

Examples of com.sun.enterprise.resource.ResourceInstaller.addResource()

        J2EEResource j2eeRes =
                IASJ2EEResourceFactoryImpl.toMailJ2EEResource(mailResource);
        ResourceInstaller installer =
            getAppServerSwitchObject().getResourceInstaller();
        installer.installMailResource((MailResource) j2eeRes);
        installer.addResource(j2eeRes);
    }
   
    /**
     * Undeploy the resource from the server's runtime naming context
     *
 
View Full Code Here

Examples of com.sun.grid.jgdi.monitoring.filter.ResourceFilter.addResource()

       
        JGDI jgdi = createJGDI();
        try {
            ClusterQueueSummaryOptions options = new ClusterQueueSummaryOptions();
            ResourceFilter rsf = new ResourceFilter();
            rsf.addResource("NoAccessUsers", "lx-x86");
            options.setResourceFilter(rsf);
            List<ClusterQueueSummary> result = jgdi.getClusterQueueSummary(options);
            printResult(result);
        } finally {
            jgdi.close();
View Full Code Here

Examples of com.sun.javafx.tools.packager.CreateJarParams.addResource()

        if (!libDir.exists() && !libDir.mkdirs()) {
            throw new MojoExecutionException("Unable to create app lib dir: " + libDir);
        }

        if (updateExistingJar) {
            createJarParams.addResource(null, new File(build.getDirectory() + File.separator + build.getFinalName() + ".jar"));
        } else {
            createJarParams.addResource(new File(build.getOutputDirectory()), "");
        }

        try {
View Full Code Here

Examples of com.sun.javafx.tools.packager.DeployParams.addResource()

            deployParams.setOutfile(build.getFinalName());

            deployParams.setNeedMenu(needMenu);
            deployParams.setNeedShortcut(needShortcut);

            deployParams.addResource(jfxAppOutputDir, jfxMainAppJarName);
            deployParams.addResource(jfxAppOutputDir, "lib");

            deployParams.setAllPermissions(allPermissions);

            deployParams.setPreloader(preLoader);
View Full Code Here

Examples of com.sun.javafx.tools.packager.SignJarParams.addResource()

                signJarParams.setAlias(keyStoreAlias);
                signJarParams.setStorePass(keyStorePassword);
                signJarParams.setKeyPass(keyPassword);
                signJarParams.setStoreType(keyStoreType);

                signJarParams.addResource(webOutputDir, jfxMainAppJarName);
                signJarParams.addResource(webOutputDir, "lib");

                getPackagerLib().signJar(signJarParams);
            }
View Full Code Here

Examples of com.sun.media.sound.SF2Soundbank.addResource()

        SF2Sample sample = new SF2Sample(soundbank);
        sample.setName("Test Sample");
        sample.setData(bdata);
        sample.setSampleRate((long) format.getSampleRate());
        sample.setOriginalPitch(69);
        soundbank.addResource(sample);

        SF2Layer layer = new SF2Layer(soundbank);
        layer.setName("Test Layer");
        soundbank.addResource(layer);
        SF2LayerRegion region = new SF2LayerRegion();
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.