修改性能

This commit is contained in:
liwen
2021-04-20 16:19:06 +08:00
parent 8ba5431f88
commit 209c8e77a0
6 changed files with 25 additions and 24 deletions

View File

@@ -22,8 +22,6 @@
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>com.fx</groupId> <groupId>com.fx</groupId>
<artifactId>falsework-sever</artifactId> <artifactId>falsework-sever</artifactId>
@@ -36,11 +34,9 @@
<version>11.0.3</version> <version>11.0.3</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>jfoenix</groupId> <groupId>com.jfoenix</groupId>
<artifactId>jfoenix</artifactId> <artifactId>jfoenix</artifactId>
<version>${jfoenix.version}</version> <version>8.0.10</version>
<scope>system</scope>
<systemPath>${pom.basedir}/libs/jfoenix-8.0.10.jar</systemPath>
</dependency> </dependency>
<dependency> <dependency>
<groupId>tilesfx</groupId> <groupId>tilesfx</groupId>

View File

@@ -1,10 +1,10 @@
package com.fx.client; package com.fx.client;
import com.fx.client.gui.uicomponents.control.LFXDecorator;
import com.fx.client.gui.uicomponents.login.LoginController; import com.fx.client.gui.uicomponents.login.LoginController;
import com.fx.client.store.ApplicatonStore; import com.fx.client.store.ApplicatonStore;
import com.fx.client.websocket.WSClient; import com.fx.client.websocket.WSClient;
import com.jfoenix.assets.JFoenixResources; import com.jfoenix.assets.JFoenixResources;
import com.jfoenix.controls.JFXDecorator;
import com.jfoenix.svg.SVGGlyph; import com.jfoenix.svg.SVGGlyph;
import com.jfoenix.svg.SVGGlyphLoader; import com.jfoenix.svg.SVGGlyphLoader;
import com.netflix.config.ConfigurationManager; import com.netflix.config.ConfigurationManager;
@@ -45,7 +45,7 @@ public class AppStartup extends Application {
InputStream in = AppStartup.class.getClassLoader().getResourceAsStream("fonts/msyh.ttf"); InputStream in = AppStartup.class.getClassLoader().getResourceAsStream("fonts/msyh.ttf");
Font font1 = Font.loadFont(in, 12); Font font1 = Font.loadFont(in, 12);
System.err.println(font1.getName() + "\t" + font1.getFamily()); // System.err.println(font1.getName() + "\t" + font1.getFamily());
ConfigurationManager.loadPropertiesFromResources("sample-client.properties"); ConfigurationManager.loadPropertiesFromResources("sample-client.properties");
// //
@@ -74,7 +74,7 @@ public class AppStartup extends Application {
applicationContext.register("ContentFlowHandler", contentFlowHandler); applicationContext.register("ContentFlowHandler", contentFlowHandler);
contentFlowHandler.start(container); contentFlowHandler.start(container);
LFXDecorator wfxDecorator = new LFXDecorator(stage, container.getView(), false, true, true); JFXDecorator wfxDecorator = new JFXDecorator(stage, container.getView());
wfxDecorator.setCustomMaximize(true); wfxDecorator.setCustomMaximize(true);
wfxDecorator.setGraphic(new SVGGlyph("")); wfxDecorator.setGraphic(new SVGGlyph(""));

View File

@@ -179,7 +179,7 @@ public class LoginController {
registeredPane.managedProperty().bind(registeredPane.visibleProperty()); registeredPane.managedProperty().bind(registeredPane.visibleProperty());
initAnimation(); initAnimation();
// loadingImage(); loadingImage();
initAction(); initAction();
} }

View File

@@ -115,8 +115,10 @@ public class Request {
@Override @Override
public LBClient create(String clientName) { public LBClient create(String clientName) {
System.err.println("--------------------"+clientName+"--------------------");
IClientConfig config = ClientFactory.getNamedConfig(clientName); IClientConfig config = ClientFactory.getNamedConfig(clientName);
ILoadBalancer lb = ClientFactory.getNamedLoadBalancer(clientName); ILoadBalancer lb = ClientFactory.getNamedLoadBalancer(clientName);
ZoneAwareLoadBalancer zb = (ZoneAwareLoadBalancer) lb; ZoneAwareLoadBalancer zb = (ZoneAwareLoadBalancer) lb;
zb.setRule(new BestAvailableRule()); zb.setRule(new BestAvailableRule());
LBClient lbClient = LBClient.create(lb, config); LBClient lbClient = LBClient.create(lb, config);

View File

File diff suppressed because one or more lines are too long

View File

File diff suppressed because one or more lines are too long