Examples of profile()


Examples of io.fabric8.api.FabricRequirements.profile()

    @Test
    public void createProvisionedFabric() throws Exception {
        System.out.println("The fabric has now been created somewhere and we have a controller for it, so lets define our requirements");

        FabricRequirements requirements = new FabricRequirements();
        requirements.profile("mq-default").minimumInstances(1);

        FabricAssertions.assertRequirementsSatisfied(fabricController, requirements);

        // now lets ensure that the autoscaler can scale back down again, stopping the broker
        requirements.profile("mq-default").minimumInstances(0).maximumInstances(0);
View Full Code Here

Examples of io.fabric8.api.FabricRequirements.profile()

        requirements.profile("mq-default").minimumInstances(1);

        FabricAssertions.assertRequirementsSatisfied(fabricController, requirements);

        // now lets ensure that the autoscaler can scale back down again, stopping the broker
        requirements.profile("mq-default").minimumInstances(0).maximumInstances(0);
        FabricAssertions.assertRequirementsSatisfied(fabricController, requirements);
    }
}
View Full Code Here

Examples of org.codehaus.plexus.component.annotations.Component.profile()

        component.setInstantiationStrategy(filterEmptyAsNull(anno.instantiationStrategy()));

        component.setLifecycleHandler(filterEmptyAsNull(anno.lifecycleHandler()));

        component.setComponentProfile(filterEmptyAsNull(anno.profile()));

        component.setComponentComposer(filterEmptyAsNull(anno.composer()));

        component.setComponentConfigurator(filterEmptyAsNull(anno.configurator()));
View Full Code Here

Examples of org.codehaus.plexus.component.annotations.Component.profile()

        component.setInstantiationStrategy(filterEmptyAsNull(anno.instantiationStrategy()));

        component.setLifecycleHandler(filterEmptyAsNull(anno.lifecycleHandler()));

        component.setComponentProfile(filterEmptyAsNull(anno.profile()));

        component.setComponentComposer(filterEmptyAsNull(anno.composer()));

        component.setComponentConfigurator(filterEmptyAsNull(anno.configurator()));
View Full Code Here

Examples of org.omg.GIOP.TargetAddress.profile()

                      org.omg.MIOP.UIPMC_ProfileBody upb = org.omg.MIOP.UIPMC_ProfileBodyHelper.read (this);
                      closeEncapsulation();

                      TaggedProfile uipmc = new TaggedProfile
                         (org.omg.IOP.TAG_UIPMC.value, MulticastUtil.getEncapsulatedUIPMCProfile ((ORB)orb, upb));
                      addr.profile (uipmc);
                   }
                   else
                   {
                      int l = read_long();
                      int x = available();
View Full Code Here

Examples of org.omg.GIOP.TargetAddress.profile()

                TargetAddress addr = new TargetAddress();

                if (isMIOP)
                {
                    TaggedProfile uipmc = new TaggedProfile (org.omg.IOP.TAG_UIPMC.value, MulticastUtil.getEncapsulatedUIPMCProfile (orb, connection));
                    addr.profile (uipmc);
                }
                else
                {
                    addr.object_key( object_key );
                }
View Full Code Here

Examples of org.onesocialweb.model.vcard4.VCard4Factory.profile()

      public void onClick(ClickEvent event) {

        final VCard4Factory profileFactory = OswServiceFactory
            .getService().getProfileFactory();
        final Profile profile = profileFactory.profile();

        try {
          // prepare for updating and check for empty values
          if (avatarF.getAvatarUri().length() > 0)
            profile.addField(profileFactory.photo(avatarF.getAvatarUri()));
View Full Code Here

Examples of profiler.ProfileKB.profile()

      if(WARMUP)
      {
        //Get the estimated time for this test
        double estimatedTime = 0;
        for(Result<Task> result: pkb.profile( files ))
          estimatedTime+=result.getAvgTime();

        //Get the number of warmup iterations to perform, based on the estimated time
        int nWarmupIterations = getNumberOfWarmupIterations(estimatedTime)-1;
View Full Code Here

Examples of profiler.ProfileKB.profile()

        //Get the number of warmup iterations to perform, based on the estimated time
        int nWarmupIterations = getNumberOfWarmupIterations(estimatedTime)-1;

        //Warmup
        for(int i=0; i<nWarmupIterations; i++)
          pkb.profile( files );
      }

      for(int i=0; i<ITERATIONS; i++)
      {
        List<Result<Task>> res = new ArrayList<Result<Task>>(pkb.profile( files ));
View Full Code Here

Examples of profiler.ProfileKB.profile()

          pkb.profile( files );
      }

      for(int i=0; i<ITERATIONS; i++)
      {
        List<Result<Task>> res = new ArrayList<Result<Task>>(pkb.profile( files ));
        List<Result<Task>> previousRes = results.get(name);
        if(previousRes == null)
          results.put(name, res);
        else
        {
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.