@Experimental public class ClusterManagementServiceBuilder extends org.apache.geode.management.service.internal.api.BaseManagementServiceBuilder<ClusterManagementServiceBuilder>
ConnectionConfig
or a ClusterManagementServiceTransport
. For typical usage it should be
sufficient to only use a ClusterManagementServiceConnectionConfig
. For example:
ClusterManagementService service = new ClusterManagementServiceBuilder() .setPort(7070) .setHost("localhost") .build();
If no transport is set a public transport of
RestTemplateClusterManagementServiceTransport
will be used and configured with the provided config.
Constructor and Description |
---|
ClusterManagementServiceBuilder() |
Modifier and Type | Method and Description |
---|---|
protected ConnectionConfig |
createConnectionConfig() |
ClusterManagementServiceBuilder |
setHost(String hostname) |
ClusterManagementServiceBuilder |
setPort(int port) |
public ClusterManagementServiceBuilder setHost(String hostname)
public ClusterManagementServiceBuilder setPort(int port)
protected ConnectionConfig createConnectionConfig()
createConnectionConfig
in class org.apache.geode.management.service.internal.api.BaseManagementServiceBuilder<ClusterManagementServiceBuilder>