Examples of toSimpleString()


Examples of com.linkedin.databus.client.pub.ServerInfo.toSimpleString()

      _curServer = serverInfo;

      try
      {
        bootstrapConn = _sourcesConn.getBootstrapConnFactory().createConnection(serverInfo, this, _remoteExceptionHandler);
        _log.info("picked a bootstrap server:" + serverInfo.toSimpleString());
      }
      catch (Exception e)
      {
        _log.error("Unable to get connection to bootstrap server:" + serverInfo, e);
      }
View Full Code Here

Examples of com.linkedin.databus.client.pub.ServerInfo.toSimpleString()

      try
      {
        relayConn = _sourcesConn.getRelayConnFactory().createRelayConnection(
            serverInfo, this, _remoteExceptionHandler);
        _log.info("picked a relay:" + serverInfo.toSimpleString());
      }
      catch (Exception e)
      {
        _log.error("Unable to get connection to relay:" + serverInfo.toSimpleString(), e);
      }
View Full Code Here

Examples of com.linkedin.databus.client.pub.ServerInfo.toSimpleString()

            serverInfo, this, _remoteExceptionHandler);
        _log.info("picked a relay:" + serverInfo.toSimpleString());
      }
      catch (Exception e)
      {
        _log.error("Unable to get connection to relay:" + serverInfo.toSimpleString(), e);
      }
    }

    _status.setRetriesCounter(originalCounter);
View Full Code Here

Examples of com.linkedin.databus.core.data_model.PhysicalPartition.toSimpleString()

    // Get the schema registry service
    SchemaRegistryService schemaRegistryService = getSchemaRegistryService();

    // Get a stats collector per physical source
    addPhysicalPartitionCollectors(pPartition);
    String statsCollectorName = pPartition.toSimpleString();
    /*
     * _inBoundStatsCollectors.addStatsCollector(statsCollectorName, new
     * DbusEventsStatisticsCollector(getContainerStaticConfig().getId(),
     * statsCollectorName+".inbound", true, false, getMbeanServer()));
     *
 
View Full Code Here

Examples of com.linkedin.databus.core.data_model.PhysicalPartition.toSimpleString()

    plist.add(producer);
    // append 'monitoring event producer'
    if (producer instanceof OracleEventProducer) {
      MonitoringEventProducer monitoringProducer = new MonitoringEventProducer(
          "dbMonitor." + pPartition.toSimpleString(),
          pConfig.getName(), pConfig.getUri(),
          ((OracleEventProducer) producer).getMonitoredSourceInfos(),
          getMbeanServer());
      _monitoringProducers.put(pPartition, monitoringProducer);
      plist.add(monitoringProducer);
View Full Code Here

Examples of com.linkedin.databus.core.data_model.PhysicalPartition.toSimpleString()

            String errMsg = "Buffer not found for physicalPartitionKey " + pKey;
            LOG.error(errMsg);
            throw new BufferNotFoundException(errMsg);
          }
          PhysicalPartition pPartition = pKey.getPhysicalPartition();
          DbusEventsStatisticsCollector statsCollector = _statsCollectors == null ? null : _statsCollectors.getStatsCollector(pPartition.toSimpleString());

          Checkpoint cp=null;
          cp = _checkPoints.getCheckpoint(pKey.getPhysicalPartition());// get the corresponding checkpoint
          if(debugEnabled)
            LOG.debug("get Checkpoint by pPartition" + pPartition + ";cp=" + cp);
View Full Code Here

Examples of com.linkedin.databus.core.data_model.PhysicalPartition.toSimpleString()

  @Test
  public void testSimpleStringSerialization()
  {
    PhysicalPartition p1 = new PhysicalPartition(10, "testdb");
    Assert.assertEquals(p1.toSimpleString(), "testdb:10");

    PhysicalPartition p2 = PhysicalPartition.createAnyPartitionWildcard("somedb");
    Assert.assertEquals(p2.toSimpleString(), "somedb:*");
  }

View Full Code Here

Examples of com.linkedin.databus.core.data_model.PhysicalPartition.toSimpleString()

  {
    PhysicalPartition p1 = new PhysicalPartition(10, "testdb");
    Assert.assertEquals(p1.toSimpleString(), "testdb:10");

    PhysicalPartition p2 = PhysicalPartition.createAnyPartitionWildcard("somedb");
    Assert.assertEquals(p2.toSimpleString(), "somedb:*");
  }

  @Test
  public void testSimpleStringDeserialization()
  {
View Full Code Here

Examples of com.linkedin.databus.core.data_model.PhysicalPartition.toSimpleString()

      if ((buf.getMinScn() < 0) && (buf.getPrevScn() < 0)) buf.start(0);

      try
      {
        DbusEventsStatisticsCollector statsCollector = _relay.getInBoundStatsCollectors().getStatsCollector(pPartition.toSimpleString());

        int eventsAppended = 0;
        if (!((eventsAppended = DbusEventSerializable.appendToEventBuffer(in, buf, statsCollector, startWin))>0))
        {
          throw new RequestProcessingException("event loading failed");
View Full Code Here

Examples of com.linkedin.databus.core.data_model.PhysicalPartition.toSimpleString()

          LOG.debug("CPMULT constructor: pPart="+pPart + ";cp="+cp);
        _pPart2Checkpoint.put(pPart, cp);
        if (cp.isPartialWindow()) {
          if (_partialWindowPartition != null) {
            throw new InvalidParameterSpecException("Multiple partitions with partial window:" +
                  _partialWindowPartition.toSimpleString() + " and " + pPart.toSimpleString());
          }
          _partialWindowPartition = pPart;
        }
      }
    }
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.