Examples of contextId()


Examples of com.webobjects.appserver.WOContext.contextID()

   */
  @Override
  public void savePage(WOComponent page) {
    WOContext context = context();
    if (ERXAjaxApplication.shouldNotStorePage(context)) {
      if (logger.isDebugEnabled()) logger.debug("Considering pageReplacementCache for " + context.request().uri() + " with contextID " + context.contextID());
      WORequest request = context.request();
      WOResponse response = context.response();
      String pageCacheKey = null;
      if (response != null) {
        pageCacheKey = response.headerForKey(ERXAjaxSession.PAGE_REPLACEMENT_CACHE_LOOKUP_KEY);
View Full Code Here

Examples of com.webobjects.appserver.WOContext.contextID()

          entryIterator.remove();
          if (logger.isDebugEnabled()) logger.debug(pageCacheKey + "pageReplacementCache too large, removing oldest entry = " + ((TransactionRecord)oldestEntry.getValue()).key());
        }

        TransactionRecord pageRecord = new TransactionRecord(page, context, pageCacheKey);
        pageReplacementCache.put(context.contextID(), pageRecord);
        if (logger.isDebugEnabled()) logger.debug(pageCacheKey + " new context = " + context.contextID());
        if (logger.isDebugEnabled()) logger.debug(pageCacheKey + " = " + pageReplacementCache.keySet());

        ERXAjaxApplication.cleanUpHeaders(response);
      }
View Full Code Here

Examples of com.webobjects.appserver.WOContext.contextID()

          if (logger.isDebugEnabled()) logger.debug(pageCacheKey + "pageReplacementCache too large, removing oldest entry = " + ((TransactionRecord)oldestEntry.getValue()).key());
        }

        TransactionRecord pageRecord = new TransactionRecord(page, context, pageCacheKey);
        pageReplacementCache.put(context.contextID(), pageRecord);
        if (logger.isDebugEnabled()) logger.debug(pageCacheKey + " new context = " + context.contextID());
        if (logger.isDebugEnabled()) logger.debug(pageCacheKey + " = " + pageReplacementCache.keySet());

        ERXAjaxApplication.cleanUpHeaders(response);
      }
      else {
View Full Code Here

Examples of com.webobjects.appserver.WOContext.contextID()

          // A null pageCacheKey should mean an Ajax request that is not returning a content update or an expliclty not cached non-Ajax request
        if (logger.isDebugEnabled()) logger.debug("Not caching as no pageCacheKey found");
      }
    }
    else {
      if (logger.isDebugEnabled()) logger.debug("Calling super.savePage for contextID " + context.contextID());
      super.savePage(page);
    }
  }

  /**
 
View Full Code Here

Examples of com.webobjects.appserver.WOContext.contextID()

  // not sure how, though
    @Override
  public void savePageInPermanentCache(WOComponent wocomponent) {
    if(overridePrivateCache) {
      WOContext wocontext = context();
      String contextID = wocontext.contextID();
      if (logger.isDebugEnabled()) logger.debug("Saving page for contextID: " + contextID);
      NSMutableDictionary permanentPageCache = _permanentPageCache();
      for (int i = WOApplication.application().permanentPageCacheSize(); _permanentContextIDArray.count() >= i; _permanentContextIDArray.removeObjectAtIndex(0)) {
        String s1 = (String) _permanentContextIDArray.objectAtIndex(0);
        WOComponent page = (WOComponent) permanentPageCache.removeObjectForKey(s1);
View Full Code Here

Examples of com.webobjects.appserver.WOContext.contextID()

          if(url.indexOf(sessionIdKey + "=") < 0) {
              url = url + argsChar + sessionIdKey + "=" +sessionID;
              argsChar = "&";
          }
          if(url.indexOf("wocid=") < 0) {
              url = url + argsChar + "wocid=" + context.contextID();
          }
        }
        redirectionResponse = WOApplication.application().createResponseInContext(context);
        redirectionResponse.setHeader(url, "location");
        redirectionResponse.setStatus(302);
View Full Code Here

Examples of io.crate.planner.node.dql.MergeNode.contextId()

    @Test
    public void testSerializationWithContext() throws Exception {
        UUID contextId = UUID.randomUUID();
        MergeNode dummyMergeNode = new MergeNode();
        dummyMergeNode.contextId(contextId);
        dummyMergeNode.inputTypes(Arrays.<DataType>asList(DataTypes.INTEGER, DataTypes.STRING));
        TopNProjection topNProjection = new TopNProjection(10, 0);
        topNProjection.outputs(Arrays.<Symbol>asList(
                new InputColumn(0, DataTypes.INTEGER),
                new InputColumn(1, DataTypes.INTEGER)));
View Full Code Here

Examples of io.crate.planner.node.dql.MergeNode.contextId()

            nodes.add(discoveryNode.getId());
        }

        // select count(*), user ... group by user
        MergeNode mergeNode = new MergeNode("merge1", 2);
        mergeNode.contextId(UUID.randomUUID());
        mergeNode.executionNodes(nodes);
        mergeNode.inputTypes(Arrays.<DataType>asList(DataTypes.UNDEFINED, DataTypes.STRING));

        GroupProjection groupProjection = new GroupProjection();
        groupProjection.keys(Arrays.<DataTypeSymbol>asList(new InputColumn(1, DataTypes.STRING)));
View Full Code Here

Examples of io.crate.planner.node.dql.MergeNode.contextId()

        task.start();

        Iterator<String> iterator = nodes.iterator();
        String firstNode = iterator.next();

        DistributedResultRequest request1 = new DistributedResultRequest(mergeNode.contextId(), mapperOutputStreamer);
        request1.rows(new Object[][] {
                new Object[] { new CountAggregation.CountAggState() {{ value = 1; }}, new BytesRef("bar") },
        });
        DistributedResultRequest request2 = new DistributedResultRequest(mergeNode.contextId(), mapperOutputStreamer);
        request2.rows(new Object[][] {
View Full Code Here

Examples of io.crate.planner.node.dql.MergeNode.contextId()

        DistributedResultRequest request1 = new DistributedResultRequest(mergeNode.contextId(), mapperOutputStreamer);
        request1.rows(new Object[][] {
                new Object[] { new CountAggregation.CountAggState() {{ value = 1; }}, new BytesRef("bar") },
        });
        DistributedResultRequest request2 = new DistributedResultRequest(mergeNode.contextId(), mapperOutputStreamer);
        request2.rows(new Object[][] {
                new Object[] { new CountAggregation.CountAggState() {{ value = 1; }}, new BytesRef("bar") },
                new Object[] { new CountAggregation.CountAggState() {{ value = 3; }}, new BytesRef("bar") },
                new Object[] { new CountAggregation.CountAggState() {{ value = 3; }}, new BytesRef("foobar") },
        });
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.