Search in sources :

Example 11 with RestServerEndpointConfig

use of com.hazelcast.config.RestServerEndpointConfig in project hazelcast by hazelcast.

the class RestInstanceMultiendpointTest method createConfigWithRestEnabled.

@Override
protected Config createConfigWithRestEnabled() {
    Config config = createConfig();
    config.getAdvancedNetworkConfig().setRestEndpointConfig(new RestServerEndpointConfig().enableGroups(RestEndpointGroup.CLUSTER_READ));
    return config;
}
Also used : Config(com.hazelcast.config.Config) RestServerEndpointConfig(com.hazelcast.config.RestServerEndpointConfig) AdvancedNetworkConfig(com.hazelcast.config.AdvancedNetworkConfig) RestServerEndpointConfig(com.hazelcast.config.RestServerEndpointConfig)

Example 12 with RestServerEndpointConfig

use of com.hazelcast.config.RestServerEndpointConfig in project hazelcast by hazelcast.

the class AbstractAdvancedNetworkIntegrationTest method createRestServerSocketConfig.

protected RestServerEndpointConfig createRestServerSocketConfig(int port, String name) {
    RestServerEndpointConfig serverSocketConfig = new RestServerEndpointConfig();
    serverSocketConfig.setPort(port);
    serverSocketConfig.getInterfaces().addInterface("127.0.0.1");
    if (name != null) {
        serverSocketConfig.setName(name);
    }
    serverSocketConfig.enableAllGroups();
    return serverSocketConfig;
}
Also used : RestServerEndpointConfig(com.hazelcast.config.RestServerEndpointConfig)

Aggregations

RestServerEndpointConfig (com.hazelcast.config.RestServerEndpointConfig)12 Config (com.hazelcast.config.Config)9 AdvancedNetworkConfig (com.hazelcast.config.AdvancedNetworkConfig)5 ServerSocketEndpointConfig (com.hazelcast.config.ServerSocketEndpointConfig)5 QuickTest (com.hazelcast.test.annotation.QuickTest)3 Test (org.junit.Test)3 RestApiConfig (com.hazelcast.config.RestApiConfig)2 EndpointConfig (com.hazelcast.config.EndpointConfig)1 EventJournalConfig (com.hazelcast.config.EventJournalConfig)1 JoinConfig (com.hazelcast.config.JoinConfig)1 MemberAddressProviderConfig (com.hazelcast.config.MemberAddressProviderConfig)1 MerkleTreeConfig (com.hazelcast.config.MerkleTreeConfig)1 NearCacheConfig (com.hazelcast.config.NearCacheConfig)1 TcpIpConfig (com.hazelcast.config.TcpIpConfig)1 UserCodeDeploymentConfig (com.hazelcast.config.UserCodeDeploymentConfig)1 WanBatchPublisherConfig (com.hazelcast.config.WanBatchPublisherConfig)1 WanReplicationConfig (com.hazelcast.config.WanReplicationConfig)1 HazelcastInstance (com.hazelcast.core.HazelcastInstance)1 JsonObject (com.hazelcast.internal.json.JsonObject)1 HazelcastTestSupport.smallInstanceConfig (com.hazelcast.test.HazelcastTestSupport.smallInstanceConfig)1