Examples of containsKey()


Examples of org.infinispan.loaders.CacheLoader.containsKey()

      c.evict(A_D_AGE);
   }

   protected void verifyInitialDataOnLoader(Cache<Object, Object> c) throws Exception {
      CacheLoader l = TestingUtil.extractComponent(c, CacheLoaderManager.class).getCacheLoader();
      assert l.containsKey(A_B_AGE);
      assert l.containsKey(A_B_NAME);
      assert l.containsKey(A_C_AGE);
      assert l.containsKey(A_C_NAME);
      assert l.load(A_B_AGE).getValue().equals(TWENTY);
      assert l.load(A_B_NAME).getValue().equals(JOE);
View Full Code Here

Examples of org.infinispan.loaders.CacheStore.containsKey()

   private void checkCacheStoresEmpty() throws CacheLoaderException {
      for (Cache<Object, Object> cache : caches()) {
         CacheStore store = TestingUtil.extractComponent(cache, CacheLoaderManager.class).getCacheStore();
         for (Person person : persons) {
            assert !store.containsKey(person.getName());
         }
      }
   }

}
View Full Code Here

Examples of org.infinispan.loaders.jdbc.mixed.JdbcMixedCacheStore.containsKey()

         Person person1 = new Person(29, "Mircea");
         Person person2 = new Person(29, "Manik");

         first.put("k", person1);
         assert firstCs.containsKey("k");
         assert !secondCs.containsKey("k");
         assert first.get("k").equals(person1);
         assert second.get("k") == null;

         second.put("k2", person2);
         assert second.get("k2").equals(person2);
View Full Code Here

Examples of org.infinispan.util.TypedProperties.containsKey()

   public HotRodServerConfigurationBuilder withProperties(Properties properties) {
      TypedProperties typed = TypedProperties.toTypedProperties(properties);
      super.withProperties(typed);

      if (typed != null) {
         if (typed.containsKey(Main.PROP_KEY_PROXY_HOST())) {
            this.proxyHost(typed.getProperty(Main.PROP_KEY_PROXY_HOST(), proxyHost, true));
         }
         this.proxyPort(typed.getIntProperty(Main.PROP_KEY_PROXY_PORT(), proxyPort, true));
         this.topologyLockTimeout(typed.getLongProperty(Main.PROP_KEY_TOPOLOGY_LOCK_TIMEOUT(), topologyLockTimeout, true));
         this.topologyReplTimeout(typed.getLongProperty(Main.PROP_KEY_TOPOLOGY_LOCK_TIMEOUT(), topologyReplTimeout, true));
View Full Code Here

Examples of org.ini4j.Profile.Section.containsKey()

    if (sect != null)
    {
      for (String pipename : sect.childrenNames())
      {
        Section pipe = sect.getChild(pipename);
        if (pipe.containsKey(OPT_DATA_STRING))
          data.put(pipename, pipe.get(OPT_DATA_STRING).getBytes());
        else if (pipe.containsKey(OPT_DATA_PATH))
          data.put(pipename, IOUtils.toByteArray(getInputStream(pipe.get(OPT_DATA_PATH), context)));
        else
          throw new Exception("No data source.");
View Full Code Here

Examples of org.jasig.portal.ChannelStaticData.containsKey()

    */
   public boolean isFinished () {
      CGroupsManagerSessionData sessionData = getSessionData();
      ChannelStaticData staticData = sessionData.staticData;
      boolean isFinished = false;
      if (staticData.containsKey("groupManagerFinished") && staticData.getParameter("groupManagerFinished").equals("true")) {
         isFinished = true;
      }
      return  isFinished;
   }

View Full Code Here

Examples of org.jaxen.util.IdentityHashMap.containsKey()

                    // System.err.println( "----> " + eachAxisNode + " // " + eachStep.matches( eachAxisNode, context.getContextSupport()  ) );

                    if ( eachStep.matches( eachAxisNode,
                                           context.getContextSupport() ) )
                    {
                        if ( ! unique.containsKey( eachAxisNode ) )
                        {
                            unique.put( eachAxisNode,
                                        PRESENT );
                            interimSet.add( eachAxisNode );
                        }
View Full Code Here

Examples of org.jboss.cache.DataNode.containsKey()

            // its attributes have been initialized, its children have been loaded,
            // AND it was found in the cache loader (nodeLoaded = true).
            // Then notify the listeners that the node has been activated.
            DataNode n = getNode(fqn); // don't load
            // node not null and attributes have been loaded?
            if (n != null && !n.containsKey(TreeCache.UNINITIALIZED)) {
               if (n.hasChildren()) {
                  if (allInitialized(n)) {
                     log.debug("children all initialized");
                     remove(fqn);
                  }
View Full Code Here

Examples of org.jboss.cache.Node.containsKey()

      assertNotNull(node);

      for (int i = 0; i < 100; i++)
      {
         Integer in = new Integer(i);
         assertTrue(node.containsKey(in));
         assertEquals(in, node.get(in));
      }

      for (int i = 0; i < 100; i++)
      {
View Full Code Here

Examples of org.jboss.com.sun.net.httpserver.Headers.containsKey()

         *
         *  This check is for cross site scripted GET and POST requests.
         */
        final Headers headers = http.getRequestHeaders();
        final URI request = http.getRequestURI();
        if (headers.containsKey(ORIGIN)) {
            String origin = headers.getFirst(ORIGIN);
            String host = headers.getFirst(HOST);
            String protocol = http.getHttpContext().getServer() instanceof HttpServer ? HTTP : HTTPS;
            //This browser set header should not need IPv6 escaping
            String allowedOrigin = protocol + "://" + host;
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.