use of com.linkedin.databus2.core.container.request.ContainerStatsRequestProcessor in project databus by linkedin.
the class JmxShutdownThread method initializeContainerCommandProcessors.
protected void initializeContainerCommandProcessors() throws DatabusException {
_processorRegistry.register(ContainerStatsRequestProcessor.COMMAND_NAME, new ContainerStatsRequestProcessor(null, this));
_processorRegistry.register(JavaStatsRequestProcessor.COMMAND_NAME, new JavaStatsRequestProcessor(null));
String healthcheckPrefix = ContainerAdminRequestProcessor.extractCommandRoot(_containerStaticConfig.getHealthcheckPath());
LOG.info("healthcheck command root: " + healthcheckPrefix);
_processorRegistry.register(healthcheckPrefix, new ContainerAdminRequestProcessor(null, _componentStatus, _containerStaticConfig.getHealthcheckPath()));
}
use of com.linkedin.databus2.core.container.request.ContainerStatsRequestProcessor in project databus by linkedin.
the class HttpRelay method initializeRelayCommandProcessors.
protected void initializeRelayCommandProcessors() throws DatabusException {
/**
* Re-register containerStats to expose DB level aggregate inbound/event stats.
* The ContainerStatsRequestProcessor is registered in ServiceContainer. Since,
* we are overriding the behavior of ContainerStatsRequestProcessor, we are
* re-registering the subclass (RelayContainerStatsRequestProcessor) in place
* of ContainerStatsRequestProcessor.
*/
_processorRegistry.reregister(ContainerStatsRequestProcessor.COMMAND_NAME, new RelayContainerStatsRequestProcessor(null, this));
_processorRegistry.register(ConfigRequestProcessor.COMMAND_NAME, new ConfigRequestProcessor(null, this));
_processorRegistry.register(RelayStatsRequestProcessor.COMMAND_NAME, new RelayStatsRequestProcessor(null, this));
_processorRegistry.register(SourcesRequestProcessor.COMMAND_NAME, new SourcesRequestProcessor(null, this));
_processorRegistry.register(RegisterRequestProcessor.COMMAND_NAME, new RegisterRequestProcessor(null, this));
_processorRegistry.register(ReadEventsRequestProcessor.COMMAND_NAME, new ReadEventsRequestProcessor(null, this));
_processorRegistry.register(PhysicalSourcesRequestProcessor.COMMAND_NAME, new PhysicalSourcesRequestProcessor(null, this));
_processorRegistry.register(PhysicalBuffersRequestProcessor.COMMAND_NAME, new PhysicalBuffersRequestProcessor(null, this));
_processorRegistry.register(BufferInfoRequestProcessor.COMMAND_NAME, new BufferInfoRequestProcessor(null, _eventBufferMult));
_processorRegistry.register(RelayCommandRequestProcessor.COMMAND_NAME, new RelayCommandRequestProcessor(null, this));
}
Aggregations