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

com.netflix.eureka.Jersey2EurekaBootStrap Maven / Gradle / Ivy

There is a newer version: 1.10.18
Show newest version
package com.netflix.eureka;

import com.netflix.appinfo.ApplicationInfoManager;
import com.netflix.discovery.DiscoveryClient;
import com.netflix.discovery.EurekaClientConfig;
import com.netflix.eureka.cluster.Jersey2PeerEurekaNodes;
import com.netflix.eureka.cluster.PeerEurekaNodes;
import com.netflix.eureka.registry.PeerAwareInstanceRegistry;
import com.netflix.eureka.resources.ServerCodecs;

/**
 * Jersey2 eureka server bootstrapper
 * @author Matt Nelson
 */
public class Jersey2EurekaBootStrap extends EurekaBootStrap {
    
    public Jersey2EurekaBootStrap(DiscoveryClient discoveryClient) {
        super(discoveryClient);
    }

    @Override    
    protected PeerEurekaNodes getPeerEurekaNodes(PeerAwareInstanceRegistry registry, EurekaServerConfig eurekaServerConfig, EurekaClientConfig eurekaClientConfig, ServerCodecs serverCodecs, ApplicationInfoManager applicationInfoManager) {
        PeerEurekaNodes peerEurekaNodes = new Jersey2PeerEurekaNodes(
                registry,
                eurekaServerConfig,
                eurekaClientConfig,
                serverCodecs,
                applicationInfoManager
        );
        
        return peerEurekaNodes;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy