sandynz commented on issue #12485:
URL:
https://github.com/apache/shardingsphere/issues/12485#issuecomment-922174768
Server config check:
```
private static void checkServerConfig() {
ServerConfiguration serverConfig =
ScalingContext.getInstance().getServerConfig();
Preconditions.checkNotNull(serverConfig, "Scaling server
configuration is required.");
Preconditions.checkNotNull(serverConfig.getModeConfiguration(),
"Mode configuration is required.");
Preconditions.checkArgument("Cluster".equals(serverConfig.getModeConfiguration().getType()),
"Mode must be `Cluster`.");
}
```
Call hierarchy:
```
ScalingAPIFactory.checkServerConfig()
(org.apache.shardingsphere.scaling.core.api)
getInstance() in ScalingAPIHolder in ScalingAPIFactory
(org.apache.shardingsphere.scaling.core.api)
ScalingAPIFactory.getScalingAPI()
(org.apache.shardingsphere.scaling.core.api)
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]