Examples of EurekaServerConfig


Examples of com.netflix.eureka.EurekaServerConfig

        PeerAwareInstanceRegistry.getInstance().syncUp();
    }

    @Test
    public void testInvalidate() throws Exception {
        EurekaServerConfig serverConfig = new DefaultEurekaServerConfig();
        EurekaServerConfigurationManager.getInstance().setConfiguration(serverConfig);
        ResponseCache cache = ResponseCache.getInstance();
        ResponseCache.Key key = new ResponseCache.Key(ResponseCache.Key.EntityType.Application, REMOTE_REGION_APP_NAME,
                                                      ResponseCache.KeyType.JSON, Version.V1);
        String response = cache.get(key, true);
View Full Code Here

Examples of com.netflix.eureka.EurekaServerConfig

        Assert.assertNull("Cache after invalidate did not return null.", cache.get(key, true));
    }

    @Test
    public void testInvalidateWithRemoteRegion() throws Exception {
        EurekaServerConfig serverConfig = new DefaultEurekaServerConfig();
        EurekaServerConfigurationManager.getInstance().setConfiguration(serverConfig);
        ResponseCache cache = ResponseCache.getInstance();
        ResponseCache.Key key = new ResponseCache.Key(ResponseCache.Key.EntityType.Application, REMOTE_REGION_APP_NAME,
                                                      new String[] {REMOTE_REGION},
                                                      ResponseCache.KeyType.JSON, Version.V1);
View Full Code Here

Examples of com.netflix.eureka.EurekaServerConfig

        Assert.assertNull("Cache after invalidate did not return null.", cache.get(key, true));
    }

    @Test
    public void testInvalidateWithMultipleRemoteRegions() throws Exception {
        EurekaServerConfig serverConfig = new DefaultEurekaServerConfig();
        EurekaServerConfigurationManager.getInstance().setConfiguration(serverConfig);
        ResponseCache cache = ResponseCache.getInstance();
        ResponseCache.Key key1 = new ResponseCache.Key(ResponseCache.Key.EntityType.Application, REMOTE_REGION_APP_NAME,
                                                      new String[] {REMOTE_REGION, "myregion2"},
                                                      ResponseCache.KeyType.JSON, Version.V1);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.