Commit aa3531f5 authored by ZWT's avatar ZWT

feat(能源管理系统): 修改架构

1.修改架构添加cse;
2.修改各微服务服务名,启动验证,完成cse注册;

BREAKING CHANGE: 无

Closes 无

[skip ci]
parent 95612579
...@@ -13,9 +13,6 @@ public class PpsCoreBaseModule extends XModule { ...@@ -13,9 +13,6 @@ public class PpsCoreBaseModule extends XModule {
@Override @Override
protected void onStarted(XContext context) { protected void onStarted(XContext context) {
//XProviderManager.setDefaultImplement(context, XApiAccessLogProvider.class, PpsApiAccessLogProviderImpl.class);
//配置信息 自定义实现类
//XProviderManager.setDefaultImplement(context, XConfigProvider.class, PpsConfigProviderImpl.class);
ManifestComponentInfoHelper.init(this.getClass().getClassLoader()); ManifestComponentInfoHelper.init(this.getClass().getClassLoader());
} }
} }
...@@ -15,7 +15,6 @@ import xstartup.feature.rpc.XRpcFeature; ...@@ -15,7 +15,6 @@ import xstartup.feature.rpc.XRpcFeature;
import xstartup.feature.swagger.XSwaggerFeature; import xstartup.feature.swagger.XSwaggerFeature;
import xstartup.service.job.conf.XJobServiceConf; import xstartup.service.job.conf.XJobServiceConf;
//import xstartup.feature.cloud.XCloudHuaweiCseFeature;
public class DeployPpsAllApplication { public class DeployPpsAllApplication {
public static void main(String... args) { public static void main(String... args) {
...@@ -29,16 +28,12 @@ public class DeployPpsAllApplication { ...@@ -29,16 +28,12 @@ public class DeployPpsAllApplication {
startup.enable(XMybatisFeature.class); startup.enable(XMybatisFeature.class);
startup.enable(XRpcFeature.class); startup.enable(XRpcFeature.class);
startup.enable(XCorsFeature.class); startup.enable(XCorsFeature.class);
startup.enable(XJobFeature.class).config(new XJobServiceConf(TestJob.class));
startup.enable(XJobFeature.class).config(new XJobServiceConf(WeatherJob.class));
startup.enable(XJobFeature.class).config(new XJobServiceConf(SpaceOptimizeLongJob.class)); startup.enable(XJobFeature.class).config(new XJobServiceConf(SpaceOptimizeLongJob.class));
startup.enable(XJobFeature.class).config(new XJobServiceConf(SpaceOptimizeMidJob.class)); startup.enable(XJobFeature.class).config(new XJobServiceConf(SpaceOptimizeMidJob.class));
startup.enable(XJobFeature.class).config(new XJobServiceConf(SpaceCalibrationJob.class)); startup.enable(XJobFeature.class).config(new XJobServiceConf(SpaceCalibrationJob.class));
startup.enable(XJobFeature.class).config(new XJobServiceConf(SpaceOptimizeShortJob.class)); startup.enable(XJobFeature.class).config(new XJobServiceConf(SpaceOptimizeShortJob.class));
startup.enable(XJobFeature.class).config(new XJobServiceConf(WeatherReceiveJob.class)); startup.enable(XJobFeature.class).config(new XJobServiceConf(WeatherReceiveJob.class));
startup.enable(XJobFeature.class).config(new XJobServiceConf(PlantPredictedPowerLongTermDataJob.class)); startup.enable(XJobFeature.class).config(new XJobServiceConf(PlantPredictedPowerLongTermDataJob.class));
//startup.enable(XCloudHuaweiCseFeature.class);
startup.run(args); startup.run(args);
} }
} }
...@@ -14,7 +14,7 @@ import xstartup.feature.cloud.XCloudHuaweiCseGatewayFeature; ...@@ -14,7 +14,7 @@ import xstartup.feature.cloud.XCloudHuaweiCseGatewayFeature;
public class DeployPpsGatewayApplication { public class DeployPpsGatewayApplication {
public static void main(String... args) { public static void main(String... args) {
XStartup startup = new XStartupApplication("pps"); XStartup startup = new XStartupApplication("pps");
startup.config(new XServerConf(22068).naming("pps-gateway-service")); startup.config(new XServerConf(22068).naming("pps-gateway"));
startup.enable(XCloudHuaweiCseGatewayFeature.class); startup.enable(XCloudHuaweiCseGatewayFeature.class);
startup.run(args); startup.run(args);
} }
......
server: server:
port: 10079 port: 10079
...@@ -7,119 +6,23 @@ spring: ...@@ -7,119 +6,23 @@ spring:
gateway: gateway:
routes: routes:
- id: pps-system - id: pps-system
uri: lb://pps-base-info uri: lb://pps-system
filters: filters:
- name: governance - name: governance
predicates: predicates:
- Path=/api/pps/system/** - Path=/api/pps/system/**
- id: pps-base - id: pps-base
uri: lb://pps-base-info uri: lb://pps-base
filters:
- name: governance
predicates:
- Path=/api/pps/base/**
- id: pps-common
uri: lb://pps-base-info
filters:
- name: governance
predicates:
- Path=/api/pps/common/**
- id: pps-calc
uri: lb://pps-transportation-calc
filters:
- name: governance
predicates:
- Path=/api/pps/calc/**
- id: pps-plan
uri: lb://pps-plan
filters:
- name: governance
predicates:
- Path=/api/pps/plan/**
- id: pps-dispatch
uri: lb://pps-dispatch
filters:
- name: governance
predicates:
- Path=/api/pps/dispatch/**
- id: pps-online
uri: lb://pps-into-production
filters:
- name: governance
predicates:
- Path=/api/pps/online/**
- id: pps-energy
uri: lb://pps-energy-consumption
filters:
- name: governance
predicates:
- Path=/api/pps/energy/**
- id: pps-measure
uri: lb://pps-measure
filters:
- name: governance
predicates:
- Path=/api/pps/measure/**
- id: pps-frame
uri: lb://pps-base-frame
filters:
- name: governance
predicates:
- Path=/api/pps/baseframe/**
- id: pps-bpm
uri: lb://pps-workflow
filters:
- name: governance
predicates:
- Path=/api/pps/primbpm/**
- id: pps-interface
uri: lb://pps-interface
filters:
- name: governance
predicates:
- Path=/api/pps/interface/**
- id: pps-analysis
uri: lb://pps-analysis
filters:
- name: governance
predicates:
- Path=/api/pps/analysis/**
- id: pps-signature
uri: lb://pps-signature
filters:
- name: governance
predicates:
- Path=/api/pps/signature/**
- id: pps-report
uri: lb://pps-report
filters:
- name: governance
predicates:
- Path=/api/pps/report/**
- id: pps-interface
uri: lb://pps-interface
filters: filters:
- name: governance - name: governance
predicates: predicates:
- Path=/api/pps/iam/** - Path=/api/pps/base/**
- id: pps-transfer
uri: lb://pps-interface
filters:
- name: governance
predicates:
- Path=/api/pps/transfer/**
- id: pps-mdm
uri: lb://pps-interface
filters:
- name: governance
predicates:
- Path=/api/pps/mdm/**
- id: pps-ukey - id: pps-ukey
uri: lb://pps-interface uri: lb://pps-interface
filters: filters:
- name: governance - name: governance
predicates: predicates:
- Path=/api/pps/ukey/** - Path=/api/pps/ukey/**
- id: pps-prediction - id: pps-prediction
uri: lb://pps-prediction uri: lb://pps-prediction
filters: filters:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment