Browse Source

调用isCluster做兼容

feature/big-screen
Maksim 5 years ago
parent
commit
c4dd34ac09
  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