Package com.linkedin.databus.core

Examples of com.linkedin.databus.core.DatabusComponentStatus


        }

        throw new RequestProcessingException(e);
      }

      DatabusComponentStatus componentStatus = _componentStatus.getStatusSnapshot();
      if (!componentStatus.isRunningStatus())
      {
        if (null != bootstrapStatsCollector)
          bootstrapStatsCollector.registerErrBootstrap();

       throw new RequestProcessingException(componentStatus.getMessage());
      }

      String partitionInfoString = request.getParams().getProperty(PARTITION_INFO_PARAM);

      DbusKeyFilter keyFilter = null;
View Full Code Here


    DatabusSourcesConnection sourcesConn2 = EasyMock.createMock(DatabusSourcesConnection.class);
    EasyMock.expect(sourcesConn2.getSourcesNames()).andReturn(Arrays.asList("source1")).anyTimes();
    EasyMock.expect(sourcesConn2.getSubscriptions()).andReturn(sourcesSubList).anyTimes();
    EasyMock.expect(sourcesConn2.getConnectionConfig()).andReturn(srcConnConf).anyTimes();
    EasyMock.expect(sourcesConn2.getConnectionStatus()).andReturn(new DatabusComponentStatus("dummy")).anyTimes();
    EasyMock.expect(sourcesConn2.getLocalRelayCallsStatsCollector()).andReturn(null).anyTimes();
    EasyMock.expect(sourcesConn2.getRelayCallsStatsCollector()).andReturn(null).anyTimes();
    EasyMock.expect(sourcesConn2.getUnifiedClientStats()).andReturn(null).anyTimes();
    EasyMock.expect(sourcesConn2.getBootstrapConnFactory()).andReturn(mockConnFactory).anyTimes();
    EasyMock.expect(sourcesConn2.loadPersistentCheckpoint()).andReturn(null).anyTimes();
View Full Code Here

    //Set up mock for sources connection
    DatabusSourcesConnection sourcesConn2 = EasyMock.createMock(DatabusSourcesConnection.class);
    EasyMock.expect(sourcesConn2.getSourcesNames()).andReturn(Arrays.asList("source1")).anyTimes();
    EasyMock.expect(sourcesConn2.getSubscriptions()).andReturn(sourcesSubList).anyTimes();
    EasyMock.expect(sourcesConn2.getConnectionConfig()).andReturn(srcConnConf).anyTimes();
    EasyMock.expect(sourcesConn2.getConnectionStatus()).andReturn(new DatabusComponentStatus("dummy")).anyTimes();
    EasyMock.expect(sourcesConn2.getLocalRelayCallsStatsCollector()).andReturn(null).anyTimes();
    EasyMock.expect(sourcesConn2.getRelayCallsStatsCollector()).andReturn(null).anyTimes();
    EasyMock.expect(sourcesConn2.getUnifiedClientStats()).andReturn(null).anyTimes();
    EasyMock.expect(sourcesConn2.getBootstrapConnFactory()).andReturn(mockConnFactory).anyTimes();
    EasyMock.expect(sourcesConn2.loadPersistentCheckpoint()).andReturn(null).anyTimes();
View Full Code Here

  protected abstract DatabusComponentAdmin createComponentAdmin();

  protected DatabusComponentStatus createComponentStatus()
  {
    return new DatabusComponentStatus("Relay",
                                      DatabusComponentStatus.Status.INITIALIZING,
                                      DatabusComponentStatus.INITIALIZING_MESSAGE);
  }
View Full Code Here

    _eventBuffer = eventBuffer;
    _name = physicalSourceConfig.getName();
    _maxScnReaderWriter = maxScnReaderWriter;
    _restartScnOffset = physicalSourceConfig.getRestartScnOffset();
    _coldStart=true;
    _status = new DatabusComponentStatus(_name + ".dbPuller", physicalSourceConfig.getRetries());
    _mbeanServer = mbeanServer;
    _statusMBean = new DatabusReadOnlyStatus(_name, _status, -1);
    _statusMBean.registerAsMbean(_mbeanServer);
    _log = Logger.getLogger(getClass().getName() + "_" + _name);
    _eventsLog = Logger.getLogger("com.linkedin.databus2.producers.db.events." + _name);
View Full Code Here

    else
      _servers = new TreeSet<ServerInfo>();

    _eventFactory = eventFactory;
    _mbeanServer = mbeanServer;
    _status = new DatabusComponentStatus(name, pullerRetries);
    _statusMbean = new DatabusReadOnlyStatus(getName(), _status, -1);
    _statusMbean.registerAsMbean(_mbeanServer);
    resetServerRetries();
  }
View Full Code Here

                     Logger log)
  {
    super();
    _name = name;
    _currentLifecycleState = null;
    _componentStatus = new DatabusComponentStatus(name, errorRetriesConf);
    _enablePullerMessageQueueLogging = enablePullerMessageQueueLogging;
    _hasMessages = false;
    if (null != log)
    {
      _log = log;
View Full Code Here

TOP

Related Classes of com.linkedin.databus.core.DatabusComponentStatus

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.