org.apache.rocketmq.namesrv.kvconfig.KVConfigManager Java Examples

The following examples show how to use org.apache.rocketmq.namesrv.kvconfig.KVConfigManager. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: NamesrvController.java    From rocketmq-read with Apache License 2.0 6 votes vote down vote up
/**
 * 初始化NameServerController
 * @param namesrvConfig nameserverconfig
 * @param nettyServerConfig nettyServer
 */
public NamesrvController(NamesrvConfig namesrvConfig, NettyServerConfig nettyServerConfig) {
    //文件配置集
    this.namesrvConfig = namesrvConfig;
    this.nettyServerConfig = nettyServerConfig;
    // kv config管理器
    this.kvConfigManager = new KVConfigManager(this);
    //路由管理器
    this.routeInfoManager = new RouteInfoManager();
    //broker 的心跳长连接保持器,是一个ChannelEventListener
    this.brokerHousekeepingService = new BrokerHousekeepingService(this);
    //配置集
    this.configuration = new Configuration(
            log,
            this.namesrvConfig,
            this.nettyServerConfig
    );
    //设置配置集
    this.configuration.setStorePathFromConfig(this.namesrvConfig, "configStorePath");
}
 
Example #2
Source File: NamesrvController.java    From DDMQ with Apache License 2.0 5 votes vote down vote up
public NamesrvController(NamesrvConfig namesrvConfig, NettyServerConfig nettyServerConfig) {
    this.namesrvConfig = namesrvConfig;
    this.nettyServerConfig = nettyServerConfig;
    this.kvConfigManager = new KVConfigManager(this);
    this.routeInfoManager = new RouteInfoManager();
    this.brokerHousekeepingService = new BrokerHousekeepingService(this);
    this.configuration = new Configuration(
        log,
        this.namesrvConfig, this.nettyServerConfig
    );
    this.configuration.setStorePathFromConfig(this.namesrvConfig, "configStorePath");
}
 
Example #3
Source File: NamesrvController.java    From rocketmq-4.3.0 with Apache License 2.0 5 votes vote down vote up
public NamesrvController(NamesrvConfig namesrvConfig, NettyServerConfig nettyServerConfig) {
        this.namesrvConfig = namesrvConfig;
        this.nettyServerConfig = nettyServerConfig;
        this.kvConfigManager = new KVConfigManager(this);
        this.routeInfoManager = new RouteInfoManager();
        this.brokerHousekeepingService = new BrokerHousekeepingService(this);
//        =》
        this.configuration = new Configuration(
            log,
            this.namesrvConfig, this.nettyServerConfig
        );
//        指定保存namesrv配置的配置文件
        this.configuration.setStorePathFromConfig(this.namesrvConfig, "configStorePath");
    }
 
Example #4
Source File: NamesrvController.java    From rocketmq with Apache License 2.0 5 votes vote down vote up
public NamesrvController(NamesrvConfig namesrvConfig, NettyServerConfig nettyServerConfig) {
    this.namesrvConfig = namesrvConfig;
    this.nettyServerConfig = nettyServerConfig;
    this.kvConfigManager = new KVConfigManager(this);
    this.routeInfoManager = new RouteInfoManager();
    this.brokerHousekeepingService = new BrokerHousekeepingService(this);
    this.configuration = new Configuration(
        log,
        this.namesrvConfig, this.nettyServerConfig
    );
    this.configuration.setStorePathFromConfig(this.namesrvConfig, "configStorePath");
}
 
Example #5
Source File: NamesrvController.java    From DDMQ with Apache License 2.0 5 votes vote down vote up
public NamesrvController(NamesrvConfig namesrvConfig, NettyServerConfig nettyServerConfig) {
    this.namesrvConfig = namesrvConfig;
    this.nettyServerConfig = nettyServerConfig;
    this.kvConfigManager = new KVConfigManager(this);
    this.routeInfoManager = new RouteInfoManager();
    this.brokerHousekeepingService = new BrokerHousekeepingService(this);
    this.configuration = new Configuration(
        log,
        this.namesrvConfig, this.nettyServerConfig
    );
    this.configuration.setStorePathFromConfig(this.namesrvConfig, "configStorePath");
}
 
Example #6
Source File: NamesrvController.java    From rocketmq-all-4.1.0-incubating with Apache License 2.0 5 votes vote down vote up
public NamesrvController(NamesrvConfig namesrvConfig, NettyServerConfig nettyServerConfig) {
    this.namesrvConfig = namesrvConfig;
    this.nettyServerConfig = nettyServerConfig;
    this.kvConfigManager = new KVConfigManager(this);
    this.routeInfoManager = new RouteInfoManager();
    this.brokerHousekeepingService = new BrokerHousekeepingService(this); //接收Broker连接事件
    this.configuration = new Configuration(
        log,
        this.namesrvConfig, this.nettyServerConfig
    );
    this.configuration.setStorePathFromConfig(this.namesrvConfig, "configStorePath");
}
 
Example #7
Source File: NamesrvController.java    From rocketmq_trans_message with Apache License 2.0 5 votes vote down vote up
public NamesrvController(NamesrvConfig namesrvConfig, NettyServerConfig nettyServerConfig) {
    this.namesrvConfig = namesrvConfig;
    this.nettyServerConfig = nettyServerConfig;
    this.kvConfigManager = new KVConfigManager(this);
    this.routeInfoManager = new RouteInfoManager();
    this.brokerHousekeepingService = new BrokerHousekeepingService(this);
    this.configuration = new Configuration(
        log,
        this.namesrvConfig, this.nettyServerConfig
    );
    this.configuration.setStorePathFromConfig(this.namesrvConfig, "configStorePath");
}
 
Example #8
Source File: NamesrvController.java    From rocketmq with Apache License 2.0 5 votes vote down vote up
public NamesrvController(NamesrvConfig namesrvConfig, NettyServerConfig nettyServerConfig) {
    this.namesrvConfig = namesrvConfig;
    this.nettyServerConfig = nettyServerConfig;
    this.kvConfigManager = new KVConfigManager(this);
    this.routeInfoManager = new RouteInfoManager();
    this.brokerHousekeepingService = new BrokerHousekeepingService(this);
    this.configuration = new Configuration(
        log,
        this.namesrvConfig, this.nettyServerConfig
    );
    this.configuration.setStorePathFromConfig(this.namesrvConfig, "configStorePath");
}
 
Example #9
Source File: NamesrvController.java    From DDMQ with Apache License 2.0 4 votes vote down vote up
public KVConfigManager getKvConfigManager() {
    return kvConfigManager;
}
 
Example #10
Source File: NamesrvController.java    From rocketmq-4.3.0 with Apache License 2.0 4 votes vote down vote up
public KVConfigManager getKvConfigManager() {
    return kvConfigManager;
}
 
Example #11
Source File: NamesrvController.java    From rocketmq-read with Apache License 2.0 4 votes vote down vote up
public KVConfigManager getKvConfigManager() {
    return kvConfigManager;
}
 
Example #12
Source File: NamesrvController.java    From rocketmq with Apache License 2.0 4 votes vote down vote up
public KVConfigManager getKvConfigManager() {
    return kvConfigManager;
}
 
Example #13
Source File: NamesrvController.java    From DDMQ with Apache License 2.0 4 votes vote down vote up
public KVConfigManager getKvConfigManager() {
    return kvConfigManager;
}
 
Example #14
Source File: NamesrvController.java    From rocketmq-all-4.1.0-incubating with Apache License 2.0 4 votes vote down vote up
public KVConfigManager getKvConfigManager() {
    return kvConfigManager;
}
 
Example #15
Source File: NamesrvController.java    From rocketmq_trans_message with Apache License 2.0 4 votes vote down vote up
public KVConfigManager getKvConfigManager() {
    return kvConfigManager;
}
 
Example #16
Source File: NamesrvController.java    From rocketmq with Apache License 2.0 4 votes vote down vote up
public KVConfigManager getKvConfigManager() {
    return kvConfigManager;
}