Search in sources :

Example 6 with EurekaServerConfig

use of com.netflix.eureka.EurekaServerConfig in project eureka by Netflix.

the class PeerEurekaNodeTest method createPeerEurekaNode.

private PeerEurekaNode createPeerEurekaNode() {
    EurekaServerConfig config = ClusterSampleData.newEurekaServerConfig();
    peerEurekaNode = new PeerEurekaNode(registry, "test", "http://test.host.com", httpReplicationClient, config, BATCH_SIZE, MAX_BATCHING_DELAY_MS, ClusterSampleData.RETRY_SLEEP_TIME_MS, ClusterSampleData.SERVER_UNAVAILABLE_SLEEP_TIME_MS);
    return peerEurekaNode;
}
Also used : EurekaServerConfig(com.netflix.eureka.EurekaServerConfig)

Aggregations

EurekaServerConfig (com.netflix.eureka.EurekaServerConfig)6 DefaultEurekaServerConfig (com.netflix.eureka.DefaultEurekaServerConfig)3 ApplicationInfoManager (com.netflix.appinfo.ApplicationInfoManager)2 InstanceInfo (com.netflix.appinfo.InstanceInfo)2 DefaultEurekaClientConfig (com.netflix.discovery.DefaultEurekaClientConfig)2 PeerAwareInstanceRegistry (com.netflix.eureka.registry.PeerAwareInstanceRegistry)2 DefaultServerCodecs (com.netflix.eureka.resources.DefaultServerCodecs)2 Before (org.junit.Before)2 AmazonInfo (com.netflix.appinfo.AmazonInfo)1 MyDataCenterInstanceConfig (com.netflix.appinfo.MyDataCenterInstanceConfig)1 DiscoveryClient (com.netflix.discovery.DiscoveryClient)1 EurekaClientConfig (com.netflix.discovery.EurekaClientConfig)1 Application (com.netflix.discovery.shared.Application)1 Applications (com.netflix.discovery.shared.Applications)1 EurekaTransportConfig (com.netflix.discovery.shared.transport.EurekaTransportConfig)1 EurekaServerContext (com.netflix.eureka.EurekaServerContext)1 AwsAsgUtil (com.netflix.eureka.aws.AwsAsgUtil)1 PeerEurekaNode (com.netflix.eureka.cluster.PeerEurekaNode)1 PeerEurekaNodes (com.netflix.eureka.cluster.PeerEurekaNodes)1 JerseyReplicationClient (com.netflix.eureka.transport.JerseyReplicationClient)1