Examples of containsKey()


Examples of org.apache.uima.aae.monitor.statistics.Statistics.containsKey()

  }

  public void addStatistic(String aComponentName, Statistic aStatistic) {
    if (componentStatistics.containsKey(aComponentName)) {
      Statistics stats = getStatistics(aComponentName);
      if (!stats.containsKey(aStatistic.getName())) {
        stats.put(aStatistic.getName(), aStatistic);
      }
    } else {
      Statistics stats = new Statistics();
      stats.put(aStatistic.getName(), aStatistic);
View Full Code Here

Examples of org.apache.uima.adapter.jms.message.PendingMessage.containsKey()

            CLASS_NAME.getName(), "run",
            JmsConstants.JMS_LOG_RESOURCE_BUNDLE,
            "UIMAJMS_sending_msg_to_endpoint__FINEST",
            new Object[] { destination });
       
        if ( pm.containsKey(AsynchAEMessage.CasReference) )
        {
          ClientRequest cacheEntry = (ClientRequest)
          engine.getCache().get(pm.get(AsynchAEMessage.CasReference));
          if ( cacheEntry != null )
          {
View Full Code Here

Examples of org.apache.uima.ducc.common.persistence.PropertiesFileManager.containsKey()

  @Deprecated
  private void initSeqNo() {
    String location = "initSeqNo";
    DuccId jobid = null;
    PropertiesFileManager pfm = (PropertiesFileManager) propertiesFileManager;
    if(!pfm.containsKey(constSeqNo)) {
      int biggest = -1;
      try {
        int seqno = Integer.valueOf(pfm.get(constJobSeqNo,"-1"));
        if(seqno > biggest) {
          biggest = seqno;
View Full Code Here

Examples of org.apache.uima.ducc.common.utils.DuccProperties.containsKey()

        String[] kids = children.split("\\s+");
        for ( String kid : kids ) {
            DuccProperties kp = clmap.get(kid);

            for ( Object o : cl.keySet() ) {
                if ( ! kp.containsKey(o) ) {
                    String k = (String) o;
                    if ( k.equals("abstract" ) ) continue;       // don't propogate down abstractness
                    if ( k.equals("children" ) ) continue;       // don't propogate down children
                    if ( k.equals("default" ) ) continue;        // don't propogate down default
                    String v = cl.getStringProperty(k);
View Full Code Here

Examples of org.apache.uima.ducc.transport.event.common.IDuccProcessMap.containsKey()

      while(resourceMapIterator.hasNext()) {
        DuccId duccId = resourceMapIterator.next();
        IResource resource = resourceMap.get(duccId);
        Node node = resourceMap.get(duccId).getNode();
        NodeIdentity nodeId = node.getNodeIdentity();
        if(!processMap.containsKey(duccId)) {
          ProcessType processType = null;
          switch(duccWorkJob.getServiceDeploymentType()) {
          case custom:
          case other:
            processType = ProcessType.Pop;
View Full Code Here

Examples of org.apache.uima.ducc.transport.event.common.IDuccReservationMap.containsKey()

        DuccId duccId = resourceMapIterator.next();
        IResource resource = resourceMap.get(duccId);
        Node node = resource.getNode();
        NodeIdentity nodeId = node.getNodeIdentity();
        int shares = resource.countShares();
        if(!reservationMap.containsKey(duccId)) {
          DuccReservation reservation = new DuccReservation(duccId, node, shares);
          reservationMap.addReservation(reservation);
          logger.info(methodName, duccId, messages.fetch("add resource")+" "+messages.fetchLabel("name")+nodeId.getName()+" "+messages.fetchLabel("ip")+nodeId.getIp());
          changes++;
        }
View Full Code Here

Examples of org.apache.velocity.context.Context.containsKey()

        for( int i = 0; i < contextList.size(); i++)
        {
            Context c = (Context) contextList.get( i );

            if ( c.containsKey( key ))
                return true;
        }

        return false;
    }
View Full Code Here

Examples of org.apache.wicket.PageParameters.containsKey()

    DropDownMenuRegistration filters = new DropDownMenuRegistration("gb.filters",
        ActivityPage.class);

    PageParameters currentParameters = getPageParameters();
    int daysBack = app().settings().getInteger(Keys.web.activityDuration, 7);
    if (currentParameters != null && !currentParameters.containsKey("db")) {
      currentParameters.put("db", daysBack);
    }

    // preserve time filter options on repository choices
    filters.menuItems.addAll(getRepositoryFilterItems(currentParameters));
View Full Code Here

Examples of org.apache.wicket.util.value.IValueMap.containsKey()

      {
        attributes.remove(attribute);
      }
      else
      {
        if (attributes.containsKey(attribute))
        {
          final String value = toStringOrNull(attributes.get(attribute));
          if (pattern == null || value.matches(pattern))
          {
            final String newValue = newValue(value, toStringOrNull(replacementValue));
View Full Code Here

Examples of org.apache.wink.json4j.JSONObject.containsKey()

      }
      else
        args = new JSONObject();
     
      Integer acls = null;
      if(args.containsKey("acls"))
        acls = ((Integer)args.get("acls")).intValue();
      else
        acls = SessionAcls.SESS_SEE_BIT;
     
      System.out.println("acls = " + acls);
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.