Add a valid remote candidate to the list. The remote candidate has been
checked, and the remote

@param remoteCandidate a remote candidate to add
480673
private void addValidRemoteCandidate(TransportCandidate remoteCandidate) {
        // Add the candidate to the list
        if (remoteCandidate != null) {
            synchronized (validRemoteCandidates) {
                LOGGER.fine("Added valid candidate: " + remoteCandidate.getIp() + ":" + remoteCandidate.getPort());
                validRemoteCandidates.add(remoteCandidate);
            }
        }
    }
356079
private void addCandidate(Text attribute) {
		// Copy and trim the attribute
		Text attr = new Text();
		attribute.copy(attr);
		attr.trim();
		
		// Parse the candidate field and add it to list of candidates
		CandidateField candidateField = new CandidateField(attr);
		this.candidates.add(candidateField);
		// Candidates must be listed by weight in descending order
		Collections.sort(this.candidates, Collections.reverseOrder());
	}
518625
public void setRemoteMEUuid(SIBUuid8 remoteMEUuid)
    {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.entry(this, tc, "setRemoteMEUuid", remoteMEUuid);
        this.remoteMEUuid = remoteMEUuid;
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.exit(this, tc, "setRemoteMEUuid");
    }
786012
@Override
    public void remoteInvalidate(String sessionId, boolean backendUpdate) {
        super.remoteInvalidate(sessionId, backendUpdate);

        if (backendUpdate) {
            ((CacheHashMap) _sessions).setMaxInactToZero(sessionId, getId());
        }

        // now clean this session out of cache -- we do this even if not doing db inval
        Enumeration<String> e = Collections.enumeration(Collections.singleton(sessionId));
        ((BackedHashMap) _sessions).handleDiscardedCacheItems(e);
    }
338610
@Override
  public void onNext(final T event) {
    if (LOG.isLoggable(Level.FINE)) {
      LOG.log(Level.FINE, "remoteid: {0}\n{1}", new Object[]{remoteId.getSocketAddress(), event.toString()});
    }
    handler.onNext(new RemoteEvent<T>(myId.getSocketAddress(), remoteId.getSocketAddress(),
        seqGen.getNextSeq(remoteId.getSocketAddress()), event));
  }
1052809
public void addPut(Object key, boolean remote) {
      if (!isEnabled()) {
         return;
      }

      syncOffer(remote ? Stat.REMOTE_PUT : Stat.LOCAL_PUT, key);
   }
477027
public static void runExample(AdManagerServices adManagerServices, AdManagerSession session)
      throws RemoteException {
    // Get the ProductTemplateService.
    ProductTemplateServiceInterface productTemplateService =
        adManagerServices.get(session, ProductTemplateServiceInterface.class);

    // Get the NetworkService.
    NetworkServiceInterface networkService =
        adManagerServices.get(session, NetworkServiceInterface.class);

    // Create a product template.
    ProductTemplate productTemplate = new ProductTemplate();
    productTemplate.setName("Product template #" + new Random().nextInt(Integer.MAX_VALUE));
    productTemplate.setDescription(
        "This product template creates standard proposal line items "
            + "targeting Chrome browsers with product segmentation on ad units and geo targeting.");

    // Set the name macro which will be used to generate the names of the products.
    // This will create a segmentation based on the line item type, ad unit, and location.
    productTemplate.setNameMacro("<line-item-type> - <ad-unit> - <template-name> - <location>");

    // Set the product type so the created proposal line items will be trafficked in Ad Manager.
    productTemplate.setProductType(ProductType.DFP);

    // Set rate type to create CPM priced proposal line items.
    productTemplate.setRateType(RateType.CPM);
    productTemplate.setDeliveryRateType(DeliveryRateType.AS_FAST_AS_POSSIBLE);

    // Optionally set the creative rotation of the product to serve one or more creatives.
    productTemplate.setRoadblockingType(RoadblockingType.ONE_OR_MORE);

    // Create the master creative placeholder.
    CreativePlaceholder creativeMasterPlaceholder = new CreativePlaceholder();
    creativeMasterPlaceholder.setSize(new Size(728, 90, false));

    // Create companion creative placeholders.
    CreativePlaceholder companionCreativePlaceholder = new CreativePlaceholder();
    companionCreativePlaceholder.setSize(new Size(300, 250, false));

    // Set the size of creatives that can be associated with the product template.
    productTemplate.setCreativePlaceholders(
        new CreativePlaceholder[] {creativeMasterPlaceholder, companionCreativePlaceholder});

    // Set the type of proposal line item to be created from the product template.
    productTemplate.setLineItemType(LineItemType.STANDARD);

    // Get the root ad unit ID used to target the whole site.
    String rootAdUnitId = networkService.getCurrentNetwork().getEffectiveRootAdUnitId();

    // Create ad unit targeting for the root ad unit (i.e. the whole network).
    AdUnitTargeting adUnitTargeting = new AdUnitTargeting();
    adUnitTargeting.setAdUnitId(rootAdUnitId);
    adUnitTargeting.setIncludeDescendants(true);

    // Create geo targeting for the US.
    Location countryLocation = new Location();
    countryLocation.setId(2840L);

    // Create geo targeting for Hong Kong.
    Location regionLocation = new Location();
    regionLocation.setId(2344L);

    GeoTargeting geoTargeting = new GeoTargeting();
    geoTargeting.setTargetedLocations(new Location[] {countryLocation, regionLocation});

    // Add browser targeting to Chrome on the product template distinct from product segmentation.
    Browser chromeBrowser = new Browser();
    chromeBrowser.setId(500072L);

    BrowserTargeting browserTargeting = new BrowserTargeting();
    browserTargeting.setBrowsers(new Browser[] {chromeBrowser});

    TechnologyTargeting technologyTargeting = new TechnologyTargeting();
    technologyTargeting.setBrowserTargeting(browserTargeting);

    Targeting productTemplateTargeting = new Targeting();
    productTemplateTargeting.setTechnologyTargeting(technologyTargeting);

    productTemplate.setBuiltInTargeting(productTemplateTargeting);

    // Allow placement targeting to be customized on the proposal line item.
    CustomizableAttributes customizableAttributes = new CustomizableAttributes();
    customizableAttributes.setAllowPlacementTargetingCustomization(true);
    productTemplate.setCustomizableAttributes(customizableAttributes);

    // Add inventory and geo targeting as product segmentation.
    ProductSegmentation productSegmentation = new ProductSegmentation();
    productSegmentation.setAdUnitSegments(new AdUnitTargeting[] {adUnitTargeting});
    productSegmentation.setGeoSegment(geoTargeting);

    productTemplate.setProductSegmentation(productSegmentation);

    // Create the product template on the server.
    ProductTemplate[] productTemplates =
        productTemplateService.createProductTemplates(new ProductTemplate[] {productTemplate});

    for (ProductTemplate createdProductTemplate : productTemplates) {
      System.out.printf(
          "A product template with ID %d and name '%s' was created.%n",
          createdProductTemplate.getId(), createdProductTemplate.getName());
    }
  }
718404
protected void addToRecentlyInvalidatedList(String id) {
        if (!_smc.getCheckRecentlyInvalidList())
            return;
        if (com.ibm.websphere.ras.TraceComponent.isAnyTracingEnabled() && LoggingUtil.SESSION_LOGGER_WAS.isLoggable(Level.FINE)) {
            LoggingUtil.SESSION_LOGGER_WAS.logp(Level.FINE, methodClassName, "addToRecentlyInvalidatedList", "Adding to recently InvalidatedList");
        }
        synchronized (recentInvalidIds) {
            recentInvalidIds.put(id, id);
        }
    }
123429
public boolean addGrant(
      ClusterNode node, String sessionId, ResourceRequestInfo req) {
    synchronized (node) {
      if (node.deleted) {
        return false;
      }
      if (!node.checkForGrant(Utilities.getUnitResourceRequest(
        req.getType()), resourceLimit)) {
        return false;
      }

      node.addGrant(sessionId, req);
      loadManager.incrementLoad(req.getType());
      hostsToSessions.get(node).add(sessionId);
      if (!node.checkForGrant(Utilities.getUnitResourceRequest(
        req.getType()), resourceLimit)) {
        RunnableIndices r = typeToIndices.get(req.getType());
        r.deleteRunnable(node);
      }
    }
    return true;
  }
863497
public void addLocalCandidates(List<LocalCandidateWrapper> candidatesWrapper) {
		for (LocalCandidateWrapper candidateWrapper : candidatesWrapper) {
			addLocalCandidate(candidateWrapper, false);
		}
		sortCandidates();
	}
915503
public boolean addSnomedId(final Candidate candidate) throws SQLException {
        final SnomedTerm result = findFromCuiAndDesc(candidate.getCandidateCUI(), candidate.getCandidatePreferred());
        if (result != null) {
            candidate.setSnomedId(result.snomedId);
            candidate.setTermType(result.termType);
            return true;
        }
        else {
            // TODO: log this somewhere?
            System.err.printf("WARNING! Could not find the SNOMED CT concept id for UMLS CUI: %s: '%s'\n",
                              candidate.getCandidateCUI(), candidate.getCandidatePreferred());
            return false;
        }
    }
903056
public void addRemoteRepositoryByUrl(String url, String username, String password) throws URLException {
        RemoteRepository remoteRepo;
        try {
            remoteRepo = RepoBuilder.remoteRepositoryFromUrl(url);
        } catch (MalformedURLException e) {
            throw new URLException(e);
        }
        remoteRepo = remoteRepo.setAuthentication(new Authentication(username, password));
        addRemoteRepository(remoteRepo);
    }
421674
protected void addCandidate(TransportCandidate cand) throws NotConnectedException, InterruptedException {
        synchronized (candidates) {
            if (!candidates.contains(cand))
                candidates.add(cand);
        }

        // Notify the listeners
        triggerCandidateAdded(cand);
    }
530904
protected void doAdd(ListAble<ValidatorElement> listAble) {
        validatorElementList.add(listAble);
        LOGGER.debug(listAble + " will be performed");
    }
1326319
protected void triggerCandidateAdded(TransportCandidate cand) throws NotConnectedException, InterruptedException {
        Iterator<TransportResolverListener> iter = getListenersList().iterator();
        while (iter.hasNext()) {
            TransportResolverListener trl = iter.next();
            if (trl instanceof TransportResolverListener.Resolver) {
                TransportResolverListener.Resolver li = (TransportResolverListener.Resolver) trl;
                LOGGER.fine("triggerCandidateAdded : " + cand.getLocalIp());
                li.candidateAdded(cand);
            }
        }
    }
492804
public void init(RemoteTable tableRemote)
    {
        m_tableRemote = tableRemote;
        m_objCurrentPhysicalRecord = NONE;
        m_objCurrentLockedRecord = NONE;
        m_objCurrentCacheRecord = NONE;
        m_iCurrentLogicalPosition = -1;
        m_iPhysicalLastRecordPlusOne = -1;
    }
141164
public void onCandidate(long sessionId, int index, String id, String sdp) {
        send(new RTCCandidate(deviceId, sessionId, index, id, sdp));
    }