Class ResourceUsageTopicTransportManager
java.lang.Object
org.apache.pulsar.broker.resourcegroup.ResourceUsageTopicTransportManager
- All Implemented Interfaces:
AutoCloseable,ResourceUsageTransportManager
public class ResourceUsageTopicTransportManager
extends Object
implements ResourceUsageTransportManager
Resource Usage Transport Manager
Module to exchange usage information with other brokers. Implements a task to periodically.
publish the usage as well as handlers to process the usage info from other brokers.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.pulsar.broker.resourcegroup.ResourceUsageTransportManager
ResourceUsageTransportManager.ResourceUsageDisabledTransportManager -
Field Summary
Fields inherited from interface org.apache.pulsar.broker.resourcegroup.ResourceUsageTransportManager
DISABLE_RESOURCE_USAGE_TRANSPORT_MANAGER -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ResourceUsageTopicTransportManager
public ResourceUsageTopicTransportManager(PulsarService pulsarService) throws org.apache.pulsar.broker.PulsarServerException, org.apache.pulsar.client.admin.PulsarAdminException, org.apache.pulsar.client.api.PulsarClientException - Throws:
org.apache.pulsar.broker.PulsarServerExceptionorg.apache.pulsar.client.admin.PulsarAdminExceptionorg.apache.pulsar.client.api.PulsarClientException
-
-
Method Details
-
registerResourceUsagePublisher
- Specified by:
registerResourceUsagePublisherin interfaceResourceUsageTransportManager
-
unregisterResourceUsagePublisher
- Specified by:
unregisterResourceUsagePublisherin interfaceResourceUsageTransportManager
-
registerResourceUsageConsumer
- Specified by:
registerResourceUsageConsumerin interfaceResourceUsageTransportManager
-
unregisterResourceUsageConsumer
- Specified by:
unregisterResourceUsageConsumerin interfaceResourceUsageTransportManager
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-