Browse Source

Merge pull request #1487 in DESIGN/design from ~MAKSIM/design:release/10.0 to release/10.0

* commit 'c4dd34ac0981d508e9580b55df66831c5f478104':
  调用isCluster做兼容
feature/big-screen
Maksim 5 years ago
parent
commit
21c19921ff
  1. 9
      designer-base/src/main/java/com/fr/design/env/RemoteWorkspace.java

9
designer-base/src/main/java/com/fr/design/env/RemoteWorkspace.java vendored

@ -1,6 +1,6 @@
package com.fr.design.env;
import com.fr.cluster.engine.base.FineClusterConfig;
import com.fr.cluster.engine.remote.ClusterOperator;
import com.fr.design.i18n.Toolkit;
import com.fr.base.operator.common.CommonOperator;
import com.fr.rpc.ExceptionHandler;
@ -79,7 +79,12 @@ public class RemoteWorkspace implements Workspace {
@Override
public boolean isCluster() {
return FineClusterConfig.getInstance().isCluster();
return WorkContext.getCurrent().get(ClusterOperator.class, new ExceptionHandler<Boolean>() {
@Override
public Boolean callHandler(RPCInvokerExceptionInfo rpcInvokerExceptionInfo) {
return false;
}
}).isCluster();
}
@Override

Loading…
Cancel
Save