Examples of enable()


Examples of org.infinispan.configuration.global.GlobalAuthorizationConfigurationBuilder.enable()

        AuthorizationConfiguration authorization = this.dependencies.getAuthorizationConfiguration();
        GlobalAuthorizationConfigurationBuilder authorizationBuilder = builder.security().authorization();

        if (authorization != null) {
            authorizationBuilder.enable();
            if (authorization.getPrincipalMapper() != null) {
                try {
                    authorizationBuilder.principalRoleMapper(Class.forName(authorization.getPrincipalMapper(), true, loader).asSubclass(PrincipalRoleMapper.class).newInstance());
                } catch (Exception e) {
                    throw new StartException(e);
View Full Code Here

Examples of org.infinispan.configuration.global.GlobalJmxStatisticsConfigurationBuilder.enable()

        GlobalJmxStatisticsConfigurationBuilder jmxBuilder = builder.globalJmxStatistics().cacheManagerName(this.name);

        MBeanServer server = this.dependencies.getMBeanServer();
        if (server != null) {
            jmxBuilder.enable()
                .mBeanServerLookup(new MBeanServerProvider(server))
                .jmxDomain(EmbeddedCacheManagerService.getServiceName(null).getCanonicalName())
                .allowDuplicateDomains(true)
            ;
        } else {
View Full Code Here

Examples of org.java_bandwidthlimiter.StreamManager.enable()

        StreamManager streamManager = proxy.getStreamManager();
        String upstreamKbps = request.param("upstreamKbps");
        if (upstreamKbps != null) {
            try {
                streamManager.setUpstreamKbps(Integer.parseInt(upstreamKbps));
                streamManager.enable();
            } catch (NumberFormatException e) { }
        }
        String downstreamKbps = request.param("downstreamKbps");
        if (downstreamKbps != null) {
            try {
View Full Code Here

Examples of org.jboss.forge.container.repositories.MutableAddonRepository.enable()

            {
               if (repository instanceof MutableAddonRepository)
               {
                  MutableAddonRepository mutableRepository = (MutableAddonRepository) repository;
                  deploy(mutableRepository, requestedAddonId, requestedAddonNode);
                  mutableRepository.enable(requestedAddonId);
                  break;
               }
            }
            return requestedAddonId;
         }
View Full Code Here

Examples of org.jboss.forge.furnace.repositories.MutableAddonRepository.enable()

      Assert.assertFalse(repository.isDeployed(addon));
      repository.deploy(addon, new ArrayList<AddonDependencyEntry>(), resourceJars);
      Assert.assertTrue(repository.isDeployed(addon));

      Assert.assertFalse(repository.isEnabled(addon));
      repository.enable(addon);
      Assert.assertTrue(repository.isEnabled(addon));

      Assert.assertEquals(0, repository.getAddonDependencies(addon).size());
   }
View Full Code Here

Examples of org.jboss.modcluster.ModClusterServiceMBean.enable()

                    service.disable();

                    context.completeStep(new OperationContext.RollbackHandler() {
                        @Override
                        public void handleRollback(OperationContext context, ModelNode operation) {
                            service.enable();
                        }
                    });
                }
            }, OperationContext.Stage.RUNTIME);
        }
View Full Code Here

Examples of org.jclouds.rackspace.cloudfiles.v1.features.CDNApi.enable()

    */
   private void enableCdnContainer() {
      System.out.format("Enable CDN Container%n");

      CDNApi cdnApi = cloudFiles.getCDNApiForRegion(REGION);
      URI cdnURI = cdnApi.enable(CONTAINER_PUBLISH);

      System.out.format("  Go to %s/%s%s%n", cdnURI, FILENAME, SUFFIX);
   }

   /**
 
View Full Code Here

Examples of org.nasutekds.server.admin.ClassLoaderProvider.enable()

    // Make sure that administration framework definition classes are loaded.
    ClassLoaderProvider provider = ClassLoaderProvider.getInstance();
    if (! provider.isEnabled())
    {
      provider.enable();
    }


    // Load and instantiate the configuration handler class.
    Class handlerClass = configClass;
View Full Code Here

Examples of org.nasutekds.server.replication.plugin.LDAPReplicationDomain.enable()

                                         stringUID(sequence + 1));
        broker.publish(delMsg);
        deleteDN = deleteDN.getParent();
      }

      domain.enable();

      // check that entry just below the base entry was deleted.
      // (we can't delete the base entry because some other tests might
      // have added other children)
      DN node1 = DN.decode("dc=dependency1," + TEST_ROOT_DN_STRING);
View Full Code Here

Examples of org.openqa.selenium.logging.LoggingPreferences.enable()

    JSONObject json = (JSONObject) getCapability(CapabilityType.LOGGING_PREFS);
    if (json != null) {
      for (Object key : ImmutableList.copyOf(json.keys())) {
        String logType = (String) key;
        Level level = Level.parse((String) json.get(logType));
        ret.enable(logType, level);
      }
    }
    return ret;
  }
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.