All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.nepxion.discovery.plugin.framework.configuration.ZookeeperAutoConfiguration Maven / Gradle / Ivy

There is a newer version: 6.2.0
Show newest version
package com.nepxion.discovery.plugin.framework.configuration;

/**
 * 

Title: Nepxion Discovery

*

Description: Nepxion Discovery

*

Copyright: Copyright (c) 2017-2050

*

Company: Nepxion

* @author Haojun Ren * @version 1.0 */ import org.springframework.cloud.netflix.ribbon.RibbonClients; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import com.nepxion.discovery.common.constant.DiscoveryConstant; import com.nepxion.discovery.plugin.framework.adapter.PluginAdapter; import com.nepxion.discovery.plugin.framework.adapter.ZookeeperAdapter; import com.nepxion.discovery.plugin.framework.constant.ZookeeperConstant; @Configuration @RibbonClients(defaultConfiguration = { PluginLoadBalanceConfiguration.class, ZookeeperLoadBalanceConfiguration.class }) public class ZookeeperAutoConfiguration { static { String logoShown = System.getProperty("nepxion.logo.shown", "true"); if (Boolean.valueOf(logoShown)) { System.out.println(""); System.out.println("╔═══╗"); System.out.println("╚╗╔╗║"); System.out.println(" ║║║╠╦══╦══╦══╦╗╔╦══╦═╦╗ ╔╗"); System.out.println(" ║║║╠╣══╣╔═╣╔╗║╚╝║║═╣╔╣║ ║║"); System.out.println("╔╝╚╝║╠══║╚═╣╚╝╠╗╔╣║═╣║║╚═╝║"); System.out.println("╚═══╩╩══╩══╩══╝╚╝╚══╩╝╚═╗╔╝"); System.out.println(" ╔═╝║"); System.out.println(" ╚══╝"); System.out.println("Nepxion Discovery - " + ZookeeperConstant.DISCOVERY_PLUGIN + " v" + DiscoveryConstant.DISCOVERY_VERSION); System.out.println(""); } } @Bean public PluginAdapter pluginAdapter() { return new ZookeeperAdapter(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy