Examples of create()


Examples of org.jboss.cache.Cache.create()

    CacheFactory factory = new DefaultCacheFactory();
    Cache cache = factory.createCache(
        "/opt/configurations/cache-configuration.xml", false);
    Configuration config = cache.getConfiguration();
    config.setClusterName("Cluster Test");
    cache.create();
    cache.start();

    return cache;
  }

Examples of org.jboss.cache.CacheSPI.create()

   private CacheSPI createLocalCache() throws Exception
   {
      CacheSPI cache = createCacheUnstarted(true);
      cache.getConfiguration().setCacheLoaderConfig(getCacheLoaderConfig());

      cache.create();
      cache.start();
      return cache;
   }

   public void testPassivationLocal() throws Exception

Examples of org.jboss.cache.factories.ComponentRegistry.create()

   protected VersionAwareMarshaller createVAMandRestartCache(RegionManager rm)
   {
      ComponentRegistry cr = crTL.get();
      if (cr.getState() == CacheStatus.STARTED) cr.stop();
      cr.registerComponent(rm, RegionManager.class);
      cr.create();
      cr.rewire();
      // force cache mode
      VersionAwareMarshaller m = (VersionAwareMarshaller) cr.getComponent(Marshaller.class);
      m.init();
      m.initReplicationVersions();

Examples of org.jboss.cache.jmx.CacheJmxWrapper.create()

         // bind DummyTransactionManager into JNDI, as that will screw
         // up other tests
         wrapper.setTransactionManagerLookupClass(MockTransactionManagerLookup.class.getName());
         wrapper.setCacheMode("REPL_SYNC");
         mbeanServer.registerMBean(wrapper, new ObjectName(CACHE_OBJECT_NAME));
         wrapper.create();
         wrapper.start();
        
         // Build up an SSO infrastructure based on LOCAL_ADDRESS        
         JBossCacheSSOClusterManager localSSOManager = new JBossCacheSSOClusterManager();
        

Examples of org.jboss.cache.pojo.PojoCache.create()

         PojoCache cache = registry.getPojoCache(configName, true);        
         pojoCaches.add(cache);
        
         // Cache shouldn't be started
         assertEquals(CacheStatus.INSTANTIATED, cache.getCache().getCacheStatus());
         cache.create();
         cache.start();
        
         // Config should be a clone
         Configuration rawConfig = configRegistry.getConfiguration(configName);
         Configuration realConfig = cache.getCache().getConfiguration();

Examples of org.jboss.cache.pojo.jmx.PojoCacheJmxWrapper.create()

         // bind DummyTransactionManager into JNDI, as that will screw
         // up other tests
         wrapper.setTransactionManagerLookupClass(MockTransactionManagerLookup.class.getName());
         wrapper.setCacheMode("REPL_SYNC");
         mbeanServer.registerMBean(wrapper, new ObjectName(CACHE_OBJECT_NAME));
         wrapper.create();
         wrapper.start();
        
         // Build up an SSO infrastructure based on LOCAL_ADDRESS        
         JBossCacheSSOClusterManager localSSOManager = new JBossCacheSSOClusterManager();
        

Examples of org.jboss.deployers.vfs.plugins.annotations.ScanningMetaDataDeployer.create()

   }

   public void testSMDRead() throws Exception
   {
      SchemaResolverDeployer<AbstractScanningMetaData> deployer = new ScanningMetaDataDeployer();
      deployer.create();
      try
      {
         VirtualFile file = getVirtualFile("/scanning", "smoke");
         VFSDeploymentContext deployment = new AbstractVFSDeploymentContext(file, "");
         deployment.setMetaDataPath(Collections.singletonList("META-INF"));

Examples of org.jboss.dna.graph.ExecutionContextFactory.create()

        ExecutionContextFactory factory = getRepositoryContext().getExecutionContextFactory();
        CallbackHandler handler = createCallbackHandler();
        try {
            String securityDomain = getSecurityDomain();
            if (securityDomain != null || getUsername() != null) {
                return factory.create(securityDomain, handler);
            }
            return factory.create();
        } catch (LoginException e) {
            I18n msg = FederationI18n.unableToCreateExecutionContext;
            throw new RepositorySourceException(getName(), msg.text(this.sourceName, securityDomain), e);

Examples of org.jboss.dna.graph.Graph.create()

        // Set up the configuration repository ...
        configRepositorySource = new InMemoryRepositorySource();
        configRepositorySource.setName("Configuration Repository");
        configRepositorySource.setDefaultWorkspaceName(configurationWorkspaceName);
        Graph config = Graph.create(configRepositorySource, context);
        config.create("/a").and();
        config.create("/a/b").and();
        config.create("/a/b/Test Repository").and();
        config.create("/a/b/Test Repository/dna:workspaces").and();

        repositoryContext = new RepositoryContext() {

Examples of org.jboss.dna.graph.properties.NameFactory.create()

            if (getRepository.hasError()) {
                throw new FederationException(FederationI18n.federatedRepositoryCannotBeFound.text(repositoryName));
            }

            // Get the first child node of the "dna:cache" node, since this represents the source used as the cache ...
            Path cacheNode = pathFactory.create(configNode, nameFactory.create(DNA_CACHE_SEGMENT));
            BasicGetChildrenCommand getCacheSource = new BasicGetChildrenCommand(cacheNode);

            executor.execute(getCacheSource);
            if (getCacheSource.hasError() || getCacheSource.getChildren().size() < 1) {
                I18n msg = FederationI18n.requiredNodeDoesNotExistRelativeToNode;
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.