Package com.linkedin.databus.core.util

Examples of com.linkedin.databus.core.util.IdNamePair


        Map<Long, IdNamePair> sourcesMap = new HashMap<Long, IdNamePair>();
        List<String> sources = new ArrayList<String>();
        for (int i = 1; i <= 1; ++i)
        {
            IdNamePair sourcePair = new IdNamePair((long)i, "source" + i);
            sources.add(sourcePair.getName());
            sourcesMap.put(sourcePair.getId(), sourcePair);
        }

        long consumerTimeBudgetMs = 60*1000;
        DatabusV2ConsumerRegistration consumerReg = new DatabusV2ConsumerRegistration(tConsumer, sources, null);
        List<DatabusV2ConsumerRegistration> allRegistrations =  Arrays.asList(consumerReg);
View Full Code Here


        List<String> sources = new ArrayList<String>();
        Map<Long, IdNamePair> sourcesMap = new HashMap<Long, IdNamePair>();
        for (int i = 1; i <= 3; ++i)
        {
            IdNamePair sourcePair = new IdNamePair((long)i, "source" + i);
            sources.add(sourcePair.getName());
            sourcesMap.put(sourcePair.getId(), sourcePair);
        }

        DatabusV2ConsumerRegistration consumerReg =
                new DatabusV2ConsumerRegistration(sdccMockConsumer, sources, null);
View Full Code Here

        Map<Long, IdNamePair> sourcesMap = new HashMap<Long, IdNamePair>();
        List<String> sources = new ArrayList<String>();
        for (int i = 1; i <= 1; ++i)
        {
            IdNamePair sourcePair = new IdNamePair((long)i, "source" + i);
            sources.add(sourcePair.getName());
            sourcesMap.put(sourcePair.getId(), sourcePair);
        }

        long consumerTimeBudgetMs = 60*1000;
        DatabusV2ConsumerRegistration consumerReg = new DatabusV2ConsumerRegistration(tConsumer, sources, null);
        List<DatabusV2ConsumerRegistration> allRegistrations =  Arrays.asList(consumerReg);
View Full Code Here

      Map<Long, IdNamePair> sourcesMap = new HashMap<Long, IdNamePair>();
      List<String> sources = new ArrayList<String>();
      for (int i = 1; i <= 1; ++i)
      {
          IdNamePair sourcePair = new IdNamePair((long)i, "source" + i);
          sources.add(sourcePair.getName());
          sourcesMap.put(sourcePair.getId(), sourcePair);
      }

      long consumerTimeBudgetMs = 60*1000;
      DatabusV2ConsumerRegistration consumerReg = new DatabusV2ConsumerRegistration(tConsumer, sources, null);
      List<DatabusV2ConsumerRegistration> allRegistrations =  Arrays.asList(consumerReg);
View Full Code Here

      List<String> sources = new ArrayList<String>();
      Map<Long, IdNamePair> sourcesMap = new HashMap<Long, IdNamePair>();
      for (int i = 1; i <= 3; ++i)
      {
        IdNamePair sourcePair = new IdNamePair((long)i, "source" + i);
        sources.add(sourcePair.getName());
        sourcesMap.put(sourcePair.getId(), sourcePair);
      }

      DatabusV2ConsumerRegistration consumerReg =
          new DatabusV2ConsumerRegistration(sdccMockConsumer, sources, null);
View Full Code Here

      List<String> sources = new ArrayList<String>();
      Map<Long, IdNamePair> sourcesMap = new HashMap<Long, IdNamePair>();
      for (int i = 1; i <= 3; ++i)
      {
          IdNamePair sourcePair = new IdNamePair((long)i, "source" + i);
          sources.add(sourcePair.getName());
          sourcesMap.put(sourcePair.getId(), sourcePair);
      }

      DatabusV2ConsumerRegistration consumerReg =
              new DatabusV2ConsumerRegistration(sdccMockConsumer, sources, null);
View Full Code Here

      return ConsumerCallbackResult.ERROR;
    }

    long srcid = e.srcId();
    short lPartitionId = e.logicalPartitionId();
    IdNamePair eventSource = _sourceMap.get(srcid);
    if (null == eventSource)
    {
      _log.error("Unknown source");
      if (_consumerStats != null) _consumerStats.registerSrcErrors();
      return ConsumerCallbackResult.ERROR;
View Full Code Here

        for (String srcIdStr: _sourceName.keySet())
        {
          try
          {
            long srcId = Long.parseLong(srcIdStr);
            sourceIds.add(new IdNamePair(srcId, _sourceName.get(srcIdStr)));
          }
          catch (NumberFormatException nfe)
          {
            throw new InvalidConfigException("Invalid source id: " + srcIdStr);
          }
View Full Code Here

  @Deprecated
  /** Added for legacy reason to transition for the use of IdNamePair for sources. To be used for
   * tracking of those uses*/
  public IdNamePair asIdNamePair()
  {
    return new IdNamePair(Long.valueOf(_id.longValue()), _name);
  }
View Full Code Here

    List<String> sources = new ArrayList<String>();
    Map<Long, IdNamePair> sourcesMap = new HashMap<Long, IdNamePair>();
    for (int i = 1; i <= 3; ++i)
    {
      IdNamePair sourcePair = new IdNamePair((long)i, "source" + i);
      sources.add(sourcePair.getName());
      sourcesMap.put(sourcePair.getId(), sourcePair);
    }

    Hashtable<Long, AtomicInteger> keyCounts = new Hashtable<Long, AtomicInteger>();

    DbusEventBuffer eventsBuf = new DbusEventBuffer(_generic100KBufferStaticConfig);
View Full Code Here

TOP

Related Classes of com.linkedin.databus.core.util.IdNamePair

Copyright © 2018 www.massapicom. 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.