Package org.apache.druid.server
Class BrokerDynamicConfigResource
java.lang.Object
org.apache.druid.server.BrokerDynamicConfigResource
Resource for fetching and updating the
CoordinatorDynamicConfig on the Broker.-
Constructor Summary
ConstructorsConstructorDescriptionBrokerDynamicConfigResource(BrokerViewOfCoordinatorConfig brokerViewOfCoordinatorConfig, BrokerViewOfBrokerConfig brokerViewOfBrokerConfig) -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.ResponseReturns the Broker's view of theBrokerDynamicConfig.javax.ws.rs.core.ResponseReturns the Broker's view of theCoordinatorDynamicConfig.javax.ws.rs.core.ResponsesetBrokerDynamicConfig(BrokerDynamicConfig brokerDynamicConfig) Updates theBrokerViewOfBrokerConfigwith the brokerDynamicConfig parameter.javax.ws.rs.core.ResponsesetDynamicConfig(CoordinatorDynamicConfig dynamicConfig) Updates theBrokerViewOfCoordinatorConfigwith the dynamicConfig paramter.
-
Constructor Details
-
BrokerDynamicConfigResource
@Inject public BrokerDynamicConfigResource(BrokerViewOfCoordinatorConfig brokerViewOfCoordinatorConfig, BrokerViewOfBrokerConfig brokerViewOfBrokerConfig)
-
-
Method Details
-
getDynamicConfig
public javax.ws.rs.core.Response getDynamicConfig()Returns the Broker's view of theCoordinatorDynamicConfig. -
setDynamicConfig
Updates theBrokerViewOfCoordinatorConfigwith the dynamicConfig paramter. -
getBrokerDynamicConfig
public javax.ws.rs.core.Response getBrokerDynamicConfig()Returns the Broker's view of theBrokerDynamicConfig. -
setBrokerDynamicConfig
Updates theBrokerViewOfBrokerConfigwith the brokerDynamicConfig parameter.
-