修改性能
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
@@ -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(""));
|
||||||
|
|
||||||
|
|||||||
@@ -179,7 +179,7 @@ public class LoginController {
|
|||||||
registeredPane.managedProperty().bind(registeredPane.visibleProperty());
|
registeredPane.managedProperty().bind(registeredPane.visibleProperty());
|
||||||
|
|
||||||
initAnimation();
|
initAnimation();
|
||||||
// loadingImage();
|
loadingImage();
|
||||||
initAction();
|
initAction();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user