From fa0b04aaeb835448ee73e6492585aeda8b56764d Mon Sep 17 00:00:00 2001 From: zeoio Date: Sun, 26 Apr 2020 15:07:52 +0800 Subject: [PATCH] distributed-depoly: add copyright to codes, configs file Signed-off-by: zeoio --- .../api/controller/InstallController.java | 13 +++++++++++++ .../api/controller/RegisterController.java | 13 +++++++++++++ .../com/cgb/bcpinstall/biz/InitializeBiz.java | 13 +++++++++++++ .../java/com/cgb/bcpinstall/biz/InstallBiz.java | 13 +++++++++++++ .../com/cgb/bcpinstall/biz/InstallMode.java | 13 +++++++++++++ .../com/cgb/bcpinstall/biz/NewInstallBiz.java | 13 +++++++++++++ .../cgb/bcpinstall/biz/OrdererExtendBiz.java | 13 +++++++++++++ .../cgb/bcpinstall/biz/OrdererRemoveBiz.java | 13 +++++++++++++ .../com/cgb/bcpinstall/biz/PeerExtendBiz.java | 13 +++++++++++++ .../com/cgb/bcpinstall/biz/PeerRemoveBiz.java | 13 +++++++++++++ .../java/com/cgb/bcpinstall/biz/RolesBiz.java | 13 +++++++++++++ .../cgb/bcpinstall/biz/UpdateNetworkBiz.java | 13 +++++++++++++ .../bcpinstall/biz/helper/YamlRepresenter.java | 13 +++++++++++++ .../cgb/bcpinstall/config/ConfigFileGen.java | 13 +++++++++++++ .../cgb/bcpinstall/config/DockerConfigGen.java | 13 +++++++++++++ .../cgb/bcpinstall/config/FabricConfigGen.java | 13 +++++++++++++ .../com/cgb/bcpinstall/config/GlobalConfig.java | 13 +++++++++++++ .../configGenImpl/DockerConfigGenImpl.java | 13 +++++++++++++ .../configGenImpl/FabricConfigGenImpl.java | 13 +++++++++++++ .../com/cgb/bcpinstall/db/CheckPointDb.java | 13 +++++++++++++ .../com/cgb/bcpinstall/db/ConnectionPool.java | 13 +++++++++++++ .../com/cgb/bcpinstall/db/table/NodeDO.java | 13 +++++++++++++ .../com/cgb/bcpinstall/db/util/MapperUtil.java | 13 +++++++++++++ .../db/util/annotation/ColumnAnnotation.java | 13 +++++++++++++ .../db/util/annotation/TableAnnotation.java | 13 +++++++++++++ .../cgb/bcpinstall/db/util/object/BaseDO.java | 13 +++++++++++++ .../cgb/bcpinstall/db/util/object/Column.java | 13 +++++++++++++ .../cgb/bcpinstall/db/util/object/Table.java | 13 +++++++++++++ .../bcpinstall/service/EnvironmentService.java | 13 +++++++++++++ .../bcpinstall/service/FabricCliService.java | 13 +++++++++++++ .../com/cgb/bcpinstall/service/FileService.java | 13 +++++++++++++ .../bcpinstall/service/InitConfigService.java | 13 +++++++++++++ .../cgb/bcpinstall/service/InstallService.java | 13 +++++++++++++ .../com/cgb/bcpinstall/service/ModeService.java | 13 +++++++++++++ .../cgb/bcpinstall/service/RemoteService.java | 13 +++++++++++++ .../com/cgb/bcpinstall/service/RoleService.java | 13 +++++++++++++ .../cgb/bcpinstall/service/UpdateService.java | 13 +++++++++++++ .../cgb/bcpinstall/service/YamlFileService.java | 13 +++++++++++++ .../bcpinstall/common/annotation/InvokeLog.java | 14 +++++++++++++- .../common/constant/DateConstant.java | 13 +++++++++++++ .../common/constant/LoginConstant.java | 14 +++++++++++++- .../common/constant/ToolsConstant.java | 13 +++++++++++++ .../common/context/RequestContextHandler.java | 14 +++++++++++++- .../bcpinstall/common/entity/BaseEntity.java | 13 +++++++++++++ .../common/entity/DiffHostConfigs.java | 13 +++++++++++++ .../cgb/bcpinstall/common/entity/EndCmd.java | 13 +++++++++++++ .../bcpinstall/common/entity/InstallCmd.java | 13 +++++++++++++ .../bcpinstall/common/entity/InstallResult.java | 13 +++++++++++++ .../common/entity/InstallStatusEnum.java | 13 +++++++++++++ .../cgb/bcpinstall/common/entity/OSEnum.java | 13 +++++++++++++ .../cgb/bcpinstall/common/entity/RemoveCmd.java | 13 +++++++++++++ .../cgb/bcpinstall/common/entity/RoleEnum.java | 13 +++++++++++++ .../bcpinstall/common/entity/RoleRegEntity.java | 13 +++++++++++++ .../bcpinstall/common/entity/ServerEntity.java | 13 +++++++++++++ .../cgb/bcpinstall/common/entity/UpdateCmd.java | 13 +++++++++++++ .../common/entity/init/InitConfigEntity.java | 13 +++++++++++++ .../common/exception/DownloadFileException.java | 13 +++++++++++++ .../common/fastJson/BaseFastJsonConfig.java | 14 +++++++++++++- .../common/fastJson/CustomSerializeConfig.java | 14 +++++++++++++- .../common/fastJson/JodaTimeDeserializer.java | 14 +++++++++++++- .../common/fastJson/StatusCodeDeserializer.java | 13 +++++++++++++ .../common/fastJson/StatusCodeSerializer.java | 14 +++++++++++++- .../bcpinstall/common/log/AbstractPrintLog.java | 14 +++++++++++++- .../bcpinstall/common/log/InvokeLogAspect.java | 16 +++++++++++++--- .../common/response/BaseResponse.java | 13 +++++++++++++ .../common/response/HttpInstallResponse.java | 13 +++++++++++++ .../common/response/ResponseCode.java | 15 +++++++++++++-- .../bcpinstall/common/response/StatusCode.java | 16 +++++++++++++--- .../cgb/bcpinstall/common/util/CacheUtil.java | 13 +++++++++++++ .../cgb/bcpinstall/common/util/EPlatform.java | 13 +++++++++++++ .../common/util/FileDataChangeUtil.java | 14 +++++++++++++- .../cgb/bcpinstall/common/util/FileUtil.java | 13 +++++++++++++ .../bcpinstall/common/util/HttpClientUtil.java | 13 +++++++++++++ .../com/cgb/bcpinstall/common/util/NetUtil.java | 13 +++++++++++++ .../com/cgb/bcpinstall/common/util/OSinfo.java | 13 +++++++++++++ .../cgb/bcpinstall/common/util/ProcessUtil.java | 13 +++++++++++++ .../bcpinstall/common/util/RequestIpUtil.java | 17 +++++++++++++---- .../cgb/bcpinstall/common/util/SpringUtil.java | 14 +++++++++++++- .../com/cgb/bcpinstall/common/util/Utils.java | 13 +++++++++++++ .../fabric-net/dockerFile/.gitkeep | 0 .../masterPackage/generate.sh | 5 +++++ .../masterPackage/init.sh | 5 +++++ .../start-installService-master.sh | 5 +++++ .../masterPackage/template/.gitkeep | 0 .../masterPackage/template/cli.yaml | 4 ++++ .../masterPackage/template/create-update-pb.sh | 9 +++++++-- .../masterPackage/template/fetch-config.sh | 8 +++++++- .../masterPackage/template/fetchGenesisBlock.sh | 9 ++++++++- .../masterPackage/template/list-channels.sh | 5 +++++ .../template/newPeerJoinChannel.sh | 5 +++++ .../masterPackage/template/orderer.yaml | 5 +++++ .../masterPackage/template/peer.yaml | 5 +++++ .../masterPackage/template/start-peer.sh | 5 +++++ .../masterPackage/template/stopNode.sh | 5 +++++ .../template/update-channel-config.sh | 8 +++++++- .../masterPackage/template/updateOrdererHost.sh | 5 +++++ .../slavePackage/start-installService-slave.sh | 5 +++++ .../cgb/bcpinstall/main/MainApplication.java | 13 +++++++++++++ .../config/FastJson2JsonRedisSerializer.java | 13 +++++++++++++ .../main/config/WebConfiguration.java | 13 +++++++++++++ .../main/interceptor/RefererInterceptor.java | 13 +++++++++++++ .../main/interceptor/UserInterceptor.java | 13 +++++++++++++ .../src/main/resources/application.yml | 5 +++++ .../src/test/java/InitTest.java | 13 +++++++++++++ .../src/test/java/InstallTest.java | 13 +++++++++++++ 105 files changed, 1211 insertions(+), 27 deletions(-) delete mode 100644 distributed-deploy/bcp-install-main/resources/generateInstallPackage/masterPackage/fabric-net/dockerFile/.gitkeep delete mode 100644 distributed-deploy/bcp-install-main/resources/generateInstallPackage/masterPackage/template/.gitkeep diff --git a/distributed-deploy/bcp-install-api/src/main/java/com/cgb/bcpinstall/api/controller/InstallController.java b/distributed-deploy/bcp-install-api/src/main/java/com/cgb/bcpinstall/api/controller/InstallController.java index c0e37f17..6f74fc9e 100644 --- a/distributed-deploy/bcp-install-api/src/main/java/com/cgb/bcpinstall/api/controller/InstallController.java +++ b/distributed-deploy/bcp-install-api/src/main/java/com/cgb/bcpinstall/api/controller/InstallController.java @@ -1,3 +1,16 @@ +/* + * Copyright CGB Corp All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.cgb.bcpinstall.api.controller; import com.alibaba.fastjson.JSONObject; diff --git a/distributed-deploy/bcp-install-api/src/main/java/com/cgb/bcpinstall/api/controller/RegisterController.java b/distributed-deploy/bcp-install-api/src/main/java/com/cgb/bcpinstall/api/controller/RegisterController.java index 44fe235d..1c245db0 100644 --- a/distributed-deploy/bcp-install-api/src/main/java/com/cgb/bcpinstall/api/controller/RegisterController.java +++ b/distributed-deploy/bcp-install-api/src/main/java/com/cgb/bcpinstall/api/controller/RegisterController.java @@ -1,3 +1,16 @@ +/* + * Copyright CGB Corp All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.cgb.bcpinstall.api.controller; import com.cgb.bcpinstall.biz.InstallBiz; diff --git a/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/biz/InitializeBiz.java b/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/biz/InitializeBiz.java index da857f84..da84d645 100644 --- a/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/biz/InitializeBiz.java +++ b/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/biz/InitializeBiz.java @@ -1,3 +1,16 @@ +/* + * Copyright CGB Corp All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.cgb.bcpinstall.biz; import com.cgb.bcpinstall.common.entity.init.InitConfigEntity; diff --git a/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/biz/InstallBiz.java b/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/biz/InstallBiz.java index 6bea3c3a..94b73d8d 100644 --- a/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/biz/InstallBiz.java +++ b/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/biz/InstallBiz.java @@ -1,3 +1,16 @@ +/* + * Copyright CGB Corp All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.cgb.bcpinstall.biz; import com.alibaba.fastjson.JSON; diff --git a/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/biz/InstallMode.java b/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/biz/InstallMode.java index bad086a8..7ac44227 100644 --- a/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/biz/InstallMode.java +++ b/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/biz/InstallMode.java @@ -1,3 +1,16 @@ +/* + * Copyright CGB Corp All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.cgb.bcpinstall.biz; import com.cgb.bcpinstall.common.entity.init.InitConfigEntity; diff --git a/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/biz/NewInstallBiz.java b/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/biz/NewInstallBiz.java index 1ef2204d..5edb246e 100644 --- a/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/biz/NewInstallBiz.java +++ b/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/biz/NewInstallBiz.java @@ -1,3 +1,16 @@ +/* + * Copyright CGB Corp All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.cgb.bcpinstall.biz; import com.alibaba.fastjson.JSON; diff --git a/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/biz/OrdererExtendBiz.java b/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/biz/OrdererExtendBiz.java index 83c3e30e..737d540b 100644 --- a/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/biz/OrdererExtendBiz.java +++ b/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/biz/OrdererExtendBiz.java @@ -1,3 +1,16 @@ +/* + * Copyright CGB Corp All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.cgb.bcpinstall.biz; import com.alibaba.fastjson.JSON; diff --git a/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/biz/OrdererRemoveBiz.java b/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/biz/OrdererRemoveBiz.java index 1ea4a73e..e935b2bc 100644 --- a/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/biz/OrdererRemoveBiz.java +++ b/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/biz/OrdererRemoveBiz.java @@ -1,3 +1,16 @@ +/* + * Copyright CGB Corp All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.cgb.bcpinstall.biz; import com.alibaba.fastjson.JSON; diff --git a/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/biz/PeerExtendBiz.java b/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/biz/PeerExtendBiz.java index 4a1c0f40..8f357562 100644 --- a/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/biz/PeerExtendBiz.java +++ b/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/biz/PeerExtendBiz.java @@ -1,3 +1,16 @@ +/* + * Copyright CGB Corp All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.cgb.bcpinstall.biz; import com.alibaba.fastjson.JSON; diff --git a/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/biz/PeerRemoveBiz.java b/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/biz/PeerRemoveBiz.java index 87639cc3..d72c3846 100644 --- a/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/biz/PeerRemoveBiz.java +++ b/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/biz/PeerRemoveBiz.java @@ -1,3 +1,16 @@ +/* + * Copyright CGB Corp All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.cgb.bcpinstall.biz; import com.alibaba.fastjson.JSONObject; diff --git a/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/biz/RolesBiz.java b/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/biz/RolesBiz.java index 63c2a126..f1a7d5ca 100644 --- a/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/biz/RolesBiz.java +++ b/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/biz/RolesBiz.java @@ -1,3 +1,16 @@ +/* + * Copyright CGB Corp All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.cgb.bcpinstall.biz; import com.cgb.bcpinstall.common.entity.InstallResult; diff --git a/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/biz/UpdateNetworkBiz.java b/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/biz/UpdateNetworkBiz.java index 28c35750..9ffa7b28 100644 --- a/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/biz/UpdateNetworkBiz.java +++ b/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/biz/UpdateNetworkBiz.java @@ -1,3 +1,16 @@ +/* + * Copyright CGB Corp All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.cgb.bcpinstall.biz; import com.cgb.bcpinstall.common.entity.*; diff --git a/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/biz/helper/YamlRepresenter.java b/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/biz/helper/YamlRepresenter.java index 8e07ba8d..4db3c129 100644 --- a/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/biz/helper/YamlRepresenter.java +++ b/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/biz/helper/YamlRepresenter.java @@ -1,3 +1,16 @@ +/* + * Copyright CGB Corp All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.cgb.bcpinstall.biz.helper; import org.yaml.snakeyaml.DumperOptions; diff --git a/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/config/ConfigFileGen.java b/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/config/ConfigFileGen.java index 25db6b51..99bed7f0 100644 --- a/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/config/ConfigFileGen.java +++ b/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/config/ConfigFileGen.java @@ -1,3 +1,16 @@ +/* + * Copyright CGB Corp All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.cgb.bcpinstall.config; import com.cgb.bcpinstall.common.entity.init.InitConfigEntity; diff --git a/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/config/DockerConfigGen.java b/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/config/DockerConfigGen.java index 3884bcde..e9c94375 100644 --- a/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/config/DockerConfigGen.java +++ b/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/config/DockerConfigGen.java @@ -1,3 +1,16 @@ +/* + * Copyright CGB Corp All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.cgb.bcpinstall.config; import com.cgb.bcpinstall.common.entity.init.InitConfigEntity; diff --git a/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/config/FabricConfigGen.java b/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/config/FabricConfigGen.java index 14b9c61c..5bc9fa32 100644 --- a/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/config/FabricConfigGen.java +++ b/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/config/FabricConfigGen.java @@ -1,3 +1,16 @@ +/* + * Copyright CGB Corp All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.cgb.bcpinstall.config; import com.cgb.bcpinstall.common.entity.init.InitConfigEntity; diff --git a/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/config/GlobalConfig.java b/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/config/GlobalConfig.java index 46530149..e787a2d6 100644 --- a/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/config/GlobalConfig.java +++ b/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/config/GlobalConfig.java @@ -1,3 +1,16 @@ +/* + * Copyright CGB Corp All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.cgb.bcpinstall.config; import lombok.Getter; diff --git a/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/config/configGenImpl/DockerConfigGenImpl.java b/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/config/configGenImpl/DockerConfigGenImpl.java index fc66d933..74a2a214 100644 --- a/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/config/configGenImpl/DockerConfigGenImpl.java +++ b/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/config/configGenImpl/DockerConfigGenImpl.java @@ -1,3 +1,16 @@ +/* + * Copyright CGB Corp All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.cgb.bcpinstall.config.configGenImpl; import com.cgb.bcpinstall.common.entity.init.InitConfigEntity; diff --git a/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/config/configGenImpl/FabricConfigGenImpl.java b/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/config/configGenImpl/FabricConfigGenImpl.java index 375df234..9381e289 100644 --- a/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/config/configGenImpl/FabricConfigGenImpl.java +++ b/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/config/configGenImpl/FabricConfigGenImpl.java @@ -1,3 +1,16 @@ +/* + * Copyright CGB Corp All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.cgb.bcpinstall.config.configGenImpl; import com.cgb.bcpinstall.common.entity.init.InitConfigEntity; diff --git a/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/db/CheckPointDb.java b/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/db/CheckPointDb.java index d8c4d017..ccd1dd98 100644 --- a/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/db/CheckPointDb.java +++ b/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/db/CheckPointDb.java @@ -1,3 +1,16 @@ +/* + * Copyright CGB Corp All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.cgb.bcpinstall.db; import com.cgb.bcpinstall.db.table.NodeDO; diff --git a/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/db/ConnectionPool.java b/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/db/ConnectionPool.java index b92493c4..0a393054 100644 --- a/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/db/ConnectionPool.java +++ b/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/db/ConnectionPool.java @@ -1,3 +1,16 @@ +/* + * Copyright CGB Corp All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.cgb.bcpinstall.db; import com.cgb.bcpinstall.common.util.FileUtil; diff --git a/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/db/table/NodeDO.java b/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/db/table/NodeDO.java index ed23f67d..89361683 100644 --- a/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/db/table/NodeDO.java +++ b/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/db/table/NodeDO.java @@ -1,3 +1,16 @@ +/* + * Copyright CGB Corp All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.cgb.bcpinstall.db.table; import com.cgb.bcpinstall.common.entity.InstallStatusEnum; diff --git a/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/db/util/MapperUtil.java b/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/db/util/MapperUtil.java index 6d471392..29832261 100644 --- a/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/db/util/MapperUtil.java +++ b/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/db/util/MapperUtil.java @@ -1,3 +1,16 @@ +/* + * Copyright CGB Corp All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.cgb.bcpinstall.db.util; import com.cgb.bcpinstall.db.util.annotation.ColumnAnnotation; diff --git a/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/db/util/annotation/ColumnAnnotation.java b/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/db/util/annotation/ColumnAnnotation.java index d73f7f95..87380b05 100644 --- a/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/db/util/annotation/ColumnAnnotation.java +++ b/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/db/util/annotation/ColumnAnnotation.java @@ -1,3 +1,16 @@ +/* + * Copyright CGB Corp All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.cgb.bcpinstall.db.util.annotation; import java.lang.annotation.*; diff --git a/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/db/util/annotation/TableAnnotation.java b/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/db/util/annotation/TableAnnotation.java index 1d2b13ec..e1ed16cc 100644 --- a/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/db/util/annotation/TableAnnotation.java +++ b/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/db/util/annotation/TableAnnotation.java @@ -1,3 +1,16 @@ +/* + * Copyright CGB Corp All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.cgb.bcpinstall.db.util.annotation; import java.lang.annotation.*; diff --git a/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/db/util/object/BaseDO.java b/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/db/util/object/BaseDO.java index c2e7e261..dcc73d62 100644 --- a/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/db/util/object/BaseDO.java +++ b/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/db/util/object/BaseDO.java @@ -1,3 +1,16 @@ +/* + * Copyright CGB Corp All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.cgb.bcpinstall.db.util.object; import lombok.Getter; diff --git a/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/db/util/object/Column.java b/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/db/util/object/Column.java index af85eb37..c8e0f4d4 100644 --- a/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/db/util/object/Column.java +++ b/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/db/util/object/Column.java @@ -1,3 +1,16 @@ +/* + * Copyright CGB Corp All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.cgb.bcpinstall.db.util.object; import lombok.Getter; diff --git a/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/db/util/object/Table.java b/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/db/util/object/Table.java index bed3f79d..27c1dd2d 100644 --- a/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/db/util/object/Table.java +++ b/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/db/util/object/Table.java @@ -1,3 +1,16 @@ +/* + * Copyright CGB Corp All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.cgb.bcpinstall.db.util.object; import lombok.Getter; diff --git a/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/service/EnvironmentService.java b/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/service/EnvironmentService.java index 1249cf19..e5ffe1fa 100644 --- a/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/service/EnvironmentService.java +++ b/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/service/EnvironmentService.java @@ -1,3 +1,16 @@ +/* + * Copyright CGB Corp All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.cgb.bcpinstall.service; import com.alibaba.fastjson.JSONObject; diff --git a/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/service/FabricCliService.java b/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/service/FabricCliService.java index ef35f941..7e94f0e3 100644 --- a/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/service/FabricCliService.java +++ b/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/service/FabricCliService.java @@ -1,3 +1,16 @@ +/* + * Copyright CGB Corp All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.cgb.bcpinstall.service; import com.cgb.bcpinstall.common.entity.init.InitConfigEntity; diff --git a/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/service/FileService.java b/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/service/FileService.java index 484eb1c0..6bb8b796 100644 --- a/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/service/FileService.java +++ b/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/service/FileService.java @@ -1,3 +1,16 @@ +/* + * Copyright CGB Corp All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.cgb.bcpinstall.service; import com.alibaba.fastjson.JSON; diff --git a/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/service/InitConfigService.java b/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/service/InitConfigService.java index 30e43204..9e3f8a47 100644 --- a/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/service/InitConfigService.java +++ b/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/service/InitConfigService.java @@ -1,3 +1,16 @@ +/* + * Copyright CGB Corp All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.cgb.bcpinstall.service; import com.cgb.bcpinstall.common.entity.init.InitConfigEntity; diff --git a/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/service/InstallService.java b/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/service/InstallService.java index 6293dd85..99da241e 100644 --- a/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/service/InstallService.java +++ b/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/service/InstallService.java @@ -1,3 +1,16 @@ +/* + * Copyright CGB Corp All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.cgb.bcpinstall.service; import com.cgb.bcpinstall.biz.RolesBiz; diff --git a/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/service/ModeService.java b/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/service/ModeService.java index 9cdfcd60..3f3a48b5 100644 --- a/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/service/ModeService.java +++ b/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/service/ModeService.java @@ -1,3 +1,16 @@ +/* + * Copyright CGB Corp All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.cgb.bcpinstall.service; import com.cgb.bcpinstall.biz.RolesBiz; diff --git a/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/service/RemoteService.java b/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/service/RemoteService.java index d2a83c35..534801c3 100644 --- a/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/service/RemoteService.java +++ b/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/service/RemoteService.java @@ -1,3 +1,16 @@ +/* + * Copyright CGB Corp All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.cgb.bcpinstall.service; import com.alibaba.fastjson.JSON; diff --git a/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/service/RoleService.java b/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/service/RoleService.java index e01862a0..d3c0d70e 100644 --- a/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/service/RoleService.java +++ b/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/service/RoleService.java @@ -1,3 +1,16 @@ +/* + * Copyright CGB Corp All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.cgb.bcpinstall.service; import com.cgb.bcpinstall.biz.RolesBiz; diff --git a/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/service/UpdateService.java b/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/service/UpdateService.java index 34698910..bfabdce6 100644 --- a/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/service/UpdateService.java +++ b/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/service/UpdateService.java @@ -1,3 +1,16 @@ +/* + * Copyright CGB Corp All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.cgb.bcpinstall.service; import com.alibaba.fastjson.JSONArray; diff --git a/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/service/YamlFileService.java b/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/service/YamlFileService.java index feaf9b52..ef719cd2 100644 --- a/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/service/YamlFileService.java +++ b/distributed-deploy/bcp-install-biz/src/main/java/com/cgb/bcpinstall/service/YamlFileService.java @@ -1,3 +1,16 @@ +/* + * Copyright CGB Corp All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.cgb.bcpinstall.service; import com.cgb.bcpinstall.biz.helper.YamlRepresenter; diff --git a/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/annotation/InvokeLog.java b/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/annotation/InvokeLog.java index 17308850..eb25eaec 100644 --- a/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/annotation/InvokeLog.java +++ b/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/annotation/InvokeLog.java @@ -1,6 +1,18 @@ +/* + * Copyright CGB Corp All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.cgb.bcpinstall.common.annotation; - import java.lang.annotation.*; @Target({ElementType.METHOD, ElementType.TYPE}) diff --git a/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/constant/DateConstant.java b/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/constant/DateConstant.java index 931ca944..1c3d1208 100644 --- a/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/constant/DateConstant.java +++ b/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/constant/DateConstant.java @@ -1,3 +1,16 @@ +/* + * Copyright CGB Corp All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.cgb.bcpinstall.common.constant; public abstract class DateConstant { diff --git a/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/constant/LoginConstant.java b/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/constant/LoginConstant.java index 70b6efe1..c182c695 100644 --- a/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/constant/LoginConstant.java +++ b/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/constant/LoginConstant.java @@ -1,6 +1,18 @@ +/* + * Copyright CGB Corp All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.cgb.bcpinstall.common.constant; - /** * 登陆相关 */ diff --git a/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/constant/ToolsConstant.java b/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/constant/ToolsConstant.java index 7e681eff..cffcd9b4 100644 --- a/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/constant/ToolsConstant.java +++ b/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/constant/ToolsConstant.java @@ -1,3 +1,16 @@ +/* + * Copyright CGB Corp All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.cgb.bcpinstall.common.constant; /** diff --git a/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/context/RequestContextHandler.java b/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/context/RequestContextHandler.java index 5aeb7182..3abe5d62 100644 --- a/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/context/RequestContextHandler.java +++ b/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/context/RequestContextHandler.java @@ -1,3 +1,16 @@ +/* + * Copyright CGB Corp All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.cgb.bcpinstall.common.context; import com.cgb.bcpinstall.common.constant.LoginConstant; @@ -13,7 +26,6 @@ import java.util.Map; import static org.junit.Assert.assertEquals; - /** * @program: RequestContextHandler * @description: 每个请求对应的线程内存数据管理 diff --git a/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/entity/BaseEntity.java b/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/entity/BaseEntity.java index f1e4a262..8c0561ec 100644 --- a/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/entity/BaseEntity.java +++ b/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/entity/BaseEntity.java @@ -1,3 +1,16 @@ +/* + * Copyright CGB Corp All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.cgb.bcpinstall.common.entity; import com.alibaba.fastjson.JSON; diff --git a/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/entity/DiffHostConfigs.java b/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/entity/DiffHostConfigs.java index a3a088b4..73bcd639 100644 --- a/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/entity/DiffHostConfigs.java +++ b/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/entity/DiffHostConfigs.java @@ -1,3 +1,16 @@ +/* + * Copyright CGB Corp All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.cgb.bcpinstall.common.entity; import lombok.Getter; diff --git a/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/entity/EndCmd.java b/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/entity/EndCmd.java index 95925aa7..f117970b 100644 --- a/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/entity/EndCmd.java +++ b/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/entity/EndCmd.java @@ -1,3 +1,16 @@ +/* + * Copyright CGB Corp All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.cgb.bcpinstall.common.entity; import lombok.Getter; diff --git a/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/entity/InstallCmd.java b/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/entity/InstallCmd.java index 7aae907a..87a61707 100644 --- a/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/entity/InstallCmd.java +++ b/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/entity/InstallCmd.java @@ -1,3 +1,16 @@ +/* + * Copyright CGB Corp All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.cgb.bcpinstall.common.entity; import com.cgb.bcpinstall.common.entity.init.InitConfigEntity; diff --git a/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/entity/InstallResult.java b/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/entity/InstallResult.java index f34d7216..f9f900c2 100644 --- a/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/entity/InstallResult.java +++ b/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/entity/InstallResult.java @@ -1,3 +1,16 @@ +/* + * Copyright CGB Corp All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.cgb.bcpinstall.common.entity; import lombok.Getter; diff --git a/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/entity/InstallStatusEnum.java b/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/entity/InstallStatusEnum.java index e1663ef7..dca0672a 100644 --- a/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/entity/InstallStatusEnum.java +++ b/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/entity/InstallStatusEnum.java @@ -1,3 +1,16 @@ +/* + * Copyright CGB Corp All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.cgb.bcpinstall.common.entity; public enum InstallStatusEnum { diff --git a/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/entity/OSEnum.java b/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/entity/OSEnum.java index a7187d10..8d2ffd07 100644 --- a/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/entity/OSEnum.java +++ b/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/entity/OSEnum.java @@ -1,3 +1,16 @@ +/* + * Copyright CGB Corp All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.cgb.bcpinstall.common.entity; public enum OSEnum { diff --git a/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/entity/RemoveCmd.java b/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/entity/RemoveCmd.java index a974fdb1..0d93e6d3 100644 --- a/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/entity/RemoveCmd.java +++ b/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/entity/RemoveCmd.java @@ -1,3 +1,16 @@ +/* + * Copyright CGB Corp All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.cgb.bcpinstall.common.entity; import lombok.Getter; diff --git a/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/entity/RoleEnum.java b/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/entity/RoleEnum.java index d6d44c13..30e1de2c 100644 --- a/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/entity/RoleEnum.java +++ b/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/entity/RoleEnum.java @@ -1,3 +1,16 @@ +/* + * Copyright CGB Corp All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.cgb.bcpinstall.common.entity; public enum RoleEnum { diff --git a/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/entity/RoleRegEntity.java b/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/entity/RoleRegEntity.java index 79b500a9..4ef40993 100644 --- a/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/entity/RoleRegEntity.java +++ b/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/entity/RoleRegEntity.java @@ -1,3 +1,16 @@ +/* + * Copyright CGB Corp All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.cgb.bcpinstall.common.entity; import lombok.Getter; diff --git a/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/entity/ServerEntity.java b/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/entity/ServerEntity.java index ad47ee07..30710f5b 100644 --- a/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/entity/ServerEntity.java +++ b/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/entity/ServerEntity.java @@ -1,3 +1,16 @@ +/* + * Copyright CGB Corp All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.cgb.bcpinstall.common.entity; import lombok.Getter; diff --git a/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/entity/UpdateCmd.java b/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/entity/UpdateCmd.java index bf78ce4d..755a3a02 100644 --- a/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/entity/UpdateCmd.java +++ b/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/entity/UpdateCmd.java @@ -1,3 +1,16 @@ +/* + * Copyright CGB Corp All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.cgb.bcpinstall.common.entity; import com.cgb.bcpinstall.common.entity.init.InitConfigEntity; diff --git a/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/entity/init/InitConfigEntity.java b/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/entity/init/InitConfigEntity.java index 028739a4..405aa066 100644 --- a/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/entity/init/InitConfigEntity.java +++ b/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/entity/init/InitConfigEntity.java @@ -1,3 +1,16 @@ +/* + * Copyright CGB Corp All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.cgb.bcpinstall.common.entity.init; import lombok.Getter; diff --git a/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/exception/DownloadFileException.java b/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/exception/DownloadFileException.java index ad99cf7c..9a77624b 100644 --- a/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/exception/DownloadFileException.java +++ b/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/exception/DownloadFileException.java @@ -1,3 +1,16 @@ +/* + * Copyright CGB Corp All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.cgb.bcpinstall.common.exception; import lombok.Getter; diff --git a/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/fastJson/BaseFastJsonConfig.java b/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/fastJson/BaseFastJsonConfig.java index 3d5f986c..cbd8cd16 100644 --- a/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/fastJson/BaseFastJsonConfig.java +++ b/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/fastJson/BaseFastJsonConfig.java @@ -1,3 +1,16 @@ +/* + * Copyright CGB Corp All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.cgb.bcpinstall.common.fastJson; import com.alibaba.fastjson.parser.ParserConfig; @@ -12,7 +25,6 @@ import org.springframework.http.MediaType; import java.util.ArrayList; import java.util.List; - /** * class_name: BaseFastJsonConfig * package: com.midea.mobile.question.main.fastjson diff --git a/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/fastJson/CustomSerializeConfig.java b/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/fastJson/CustomSerializeConfig.java index 3710e14d..f7e8abfa 100644 --- a/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/fastJson/CustomSerializeConfig.java +++ b/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/fastJson/CustomSerializeConfig.java @@ -1,3 +1,16 @@ +/* + * Copyright CGB Corp All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.cgb.bcpinstall.common.fastJson; import com.alibaba.fastjson.serializer.ObjectSerializer; @@ -8,7 +21,6 @@ import java.time.LocalDate; import java.time.LocalDateTime; import java.time.LocalTime; - /** * class_name: CustomSerializeConfig * package: com.midea.mobile.uom.main.fastjson diff --git a/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/fastJson/JodaTimeDeserializer.java b/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/fastJson/JodaTimeDeserializer.java index 56e3aa7c..06d81a7d 100644 --- a/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/fastJson/JodaTimeDeserializer.java +++ b/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/fastJson/JodaTimeDeserializer.java @@ -1,3 +1,16 @@ +/* + * Copyright CGB Corp All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.cgb.bcpinstall.common.fastJson; import com.alibaba.fastjson.serializer.JSONSerializer; @@ -25,7 +38,6 @@ public class JodaTimeDeserializer implements ObjectSerializer { public static final JodaTimeDeserializer instance = new JodaTimeDeserializer(); - @Override public void write(JSONSerializer serializer, Object object, Object fieldName, Type fieldType, int features) throws IOException { SerializeWriter out = serializer.getWriter(); diff --git a/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/fastJson/StatusCodeDeserializer.java b/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/fastJson/StatusCodeDeserializer.java index ce0fd285..126d4a3e 100644 --- a/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/fastJson/StatusCodeDeserializer.java +++ b/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/fastJson/StatusCodeDeserializer.java @@ -1,3 +1,16 @@ +/* + * Copyright CGB Corp All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.cgb.bcpinstall.common.fastJson; import com.alibaba.fastjson.parser.DefaultJSONParser; diff --git a/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/fastJson/StatusCodeSerializer.java b/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/fastJson/StatusCodeSerializer.java index 0351cbef..6f0ca46f 100644 --- a/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/fastJson/StatusCodeSerializer.java +++ b/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/fastJson/StatusCodeSerializer.java @@ -1,3 +1,16 @@ +/* + * Copyright CGB Corp All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.cgb.bcpinstall.common.fastJson; import com.alibaba.fastjson.serializer.JSONSerializer; @@ -17,7 +30,6 @@ import java.lang.reflect.Type; * @date: 2017/11/24 * @time: 23:21 **/ - public class StatusCodeSerializer implements ObjectSerializer { public static final StatusCodeSerializer INSTANCE = new StatusCodeSerializer(); diff --git a/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/log/AbstractPrintLog.java b/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/log/AbstractPrintLog.java index f390b302..0c6479df 100644 --- a/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/log/AbstractPrintLog.java +++ b/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/log/AbstractPrintLog.java @@ -1,3 +1,16 @@ +/* + * Copyright CGB Corp All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.cgb.bcpinstall.common.log; import com.alibaba.fastjson.JSONObject; @@ -143,5 +156,4 @@ public abstract class AbstractPrintLog { private boolean isSave(BaseResponse baseResponse, long totalTimeMillis) { return baseResponse != null && !baseResponse.getCode().equals(ResponseCode.SUCCESS) || totalTimeMillis >= getTimeLimit(); } - } diff --git a/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/log/InvokeLogAspect.java b/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/log/InvokeLogAspect.java index a688ae43..df8e2d63 100644 --- a/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/log/InvokeLogAspect.java +++ b/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/log/InvokeLogAspect.java @@ -1,6 +1,18 @@ +/* + * Copyright CGB Corp All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.cgb.bcpinstall.common.log; - import com.cgb.bcpinstall.common.annotation.InvokeLog; import com.cgb.bcpinstall.common.util.RequestIpUtil; import org.aspectj.lang.ProceedingJoinPoint; @@ -21,8 +33,6 @@ import java.lang.reflect.Method; * @author: Zhun.Xiao * @create: 2018-10-29 17:01 **/ - - @Aspect @Component public class InvokeLogAspect extends AbstractPrintLog { diff --git a/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/response/BaseResponse.java b/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/response/BaseResponse.java index c6b9e2c1..07f13390 100644 --- a/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/response/BaseResponse.java +++ b/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/response/BaseResponse.java @@ -1,3 +1,16 @@ +/* + * Copyright CGB Corp All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.cgb.bcpinstall.common.response; import io.swagger.annotations.ApiModelProperty; diff --git a/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/response/HttpInstallResponse.java b/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/response/HttpInstallResponse.java index 6dd8ad81..833b5c05 100644 --- a/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/response/HttpInstallResponse.java +++ b/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/response/HttpInstallResponse.java @@ -1,3 +1,16 @@ +/* + * Copyright CGB Corp All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.cgb.bcpinstall.common.response; import lombok.Getter; diff --git a/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/response/ResponseCode.java b/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/response/ResponseCode.java index 202fd929..4422d25b 100644 --- a/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/response/ResponseCode.java +++ b/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/response/ResponseCode.java @@ -1,6 +1,18 @@ +/* + * Copyright CGB Corp All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.cgb.bcpinstall.common.response; - import java.util.HashMap; public enum ResponseCode implements StatusCode { @@ -177,5 +189,4 @@ public enum ResponseCode implements StatusCode { public Boolean equals(ResponseCode targetResponseCode) { return (this.code().equals(targetResponseCode.code())); } - } diff --git a/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/response/StatusCode.java b/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/response/StatusCode.java index 342a2c63..96106195 100644 --- a/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/response/StatusCode.java +++ b/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/response/StatusCode.java @@ -1,3 +1,16 @@ +/* + * Copyright CGB Corp All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.cgb.bcpinstall.common.response; import java.io.Serializable; @@ -9,7 +22,6 @@ import java.io.Serializable; * @create: 2019-03-19 09:04 **/ public interface StatusCode extends Serializable { - /** * 状态码 * @@ -23,6 +35,4 @@ public interface StatusCode extends Serializable { * @return */ public String msg(); - - } diff --git a/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/util/CacheUtil.java b/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/util/CacheUtil.java index 56180755..1e05bf9d 100644 --- a/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/util/CacheUtil.java +++ b/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/util/CacheUtil.java @@ -1,3 +1,16 @@ +/* + * Copyright CGB Corp All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.cgb.bcpinstall.common.util; import com.cgb.bcpinstall.common.constant.ToolsConstant; diff --git a/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/util/EPlatform.java b/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/util/EPlatform.java index 3d432f72..f37c7716 100644 --- a/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/util/EPlatform.java +++ b/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/util/EPlatform.java @@ -1,3 +1,16 @@ +/* + * Copyright CGB Corp All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.cgb.bcpinstall.common.util; /** diff --git a/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/util/FileDataChangeUtil.java b/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/util/FileDataChangeUtil.java index 9a39772d..5175bac8 100644 --- a/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/util/FileDataChangeUtil.java +++ b/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/util/FileDataChangeUtil.java @@ -1,7 +1,19 @@ +/* + * Copyright CGB Corp All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.cgb.bcpinstall.common.util; import org.apache.commons.io.IOUtils; - import java.io.*; public class FileDataChangeUtil { diff --git a/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/util/FileUtil.java b/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/util/FileUtil.java index cacd0bb5..8d9608dc 100644 --- a/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/util/FileUtil.java +++ b/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/util/FileUtil.java @@ -1,3 +1,16 @@ +/* + * Copyright CGB Corp All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.cgb.bcpinstall.common.util; import org.apache.commons.compress.archivers.ArchiveEntry; diff --git a/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/util/HttpClientUtil.java b/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/util/HttpClientUtil.java index ab7bfa88..79dba03c 100644 --- a/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/util/HttpClientUtil.java +++ b/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/util/HttpClientUtil.java @@ -1,3 +1,16 @@ +/* + * Copyright CGB Corp All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.cgb.bcpinstall.common.util; import com.cgb.bcpinstall.common.exception.DownloadFileException; diff --git a/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/util/NetUtil.java b/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/util/NetUtil.java index 6addcd7b..0ad22071 100644 --- a/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/util/NetUtil.java +++ b/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/util/NetUtil.java @@ -1,3 +1,16 @@ +/* + * Copyright CGB Corp All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.cgb.bcpinstall.common.util; import java.net.Inet4Address; diff --git a/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/util/OSinfo.java b/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/util/OSinfo.java index 0afbb314..e03d3150 100644 --- a/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/util/OSinfo.java +++ b/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/util/OSinfo.java @@ -1,3 +1,16 @@ +/* + * Copyright CGB Corp All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.cgb.bcpinstall.common.util; /** diff --git a/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/util/ProcessUtil.java b/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/util/ProcessUtil.java index a46c3f3c..c42b4960 100644 --- a/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/util/ProcessUtil.java +++ b/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/util/ProcessUtil.java @@ -1,3 +1,16 @@ +/* + * Copyright CGB Corp All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.cgb.bcpinstall.common.util; import lombok.AllArgsConstructor; diff --git a/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/util/RequestIpUtil.java b/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/util/RequestIpUtil.java index 5ff7b90b..c3b6c71d 100644 --- a/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/util/RequestIpUtil.java +++ b/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/util/RequestIpUtil.java @@ -1,11 +1,21 @@ +/* + * Copyright CGB Corp All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.cgb.bcpinstall.common.util; - import javax.servlet.http.HttpServletRequest; - import static com.cgb.bcpinstall.common.constant.LoginConstant.*; - /** * class_name: RequestIpUtil * package: com.midea.mobile.uom.common.util @@ -16,7 +26,6 @@ import static com.cgb.bcpinstall.common.constant.LoginConstant.*; * @time: 18:11 **/ public class RequestIpUtil { - /** * 获取IP地址,经过F5负载均衡、代理IP等服务器后的真实IP * diff --git a/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/util/SpringUtil.java b/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/util/SpringUtil.java index 6571e3fd..9617c893 100644 --- a/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/util/SpringUtil.java +++ b/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/util/SpringUtil.java @@ -1,3 +1,16 @@ +/* + * Copyright CGB Corp All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.cgb.bcpinstall.common.util; import org.springframework.context.ApplicationContext; @@ -6,7 +19,6 @@ import org.springframework.context.ApplicationContext; * @author tyrantxz * @create 2017-11-13-11:27 */ - public class SpringUtil { private static ApplicationContext applicationContext = null; diff --git a/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/util/Utils.java b/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/util/Utils.java index 57d344ab..324e6ddf 100644 --- a/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/util/Utils.java +++ b/distributed-deploy/bcp-install-common/src/main/java/com/cgb/bcpinstall/common/util/Utils.java @@ -1,3 +1,16 @@ +/* + * Copyright CGB Corp All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.cgb.bcpinstall.common.util; import com.google.common.io.ByteStreams; diff --git a/distributed-deploy/bcp-install-main/resources/generateInstallPackage/masterPackage/fabric-net/dockerFile/.gitkeep b/distributed-deploy/bcp-install-main/resources/generateInstallPackage/masterPackage/fabric-net/dockerFile/.gitkeep deleted file mode 100644 index e69de29b..00000000 diff --git a/distributed-deploy/bcp-install-main/resources/generateInstallPackage/masterPackage/generate.sh b/distributed-deploy/bcp-install-main/resources/generateInstallPackage/masterPackage/generate.sh index fa8793ac..0093c155 100755 --- a/distributed-deploy/bcp-install-main/resources/generateInstallPackage/masterPackage/generate.sh +++ b/distributed-deploy/bcp-install-main/resources/generateInstallPackage/masterPackage/generate.sh @@ -1,4 +1,9 @@ #!/bin/bash +# +# Copyright CGB Corp. All Rights Reserved. +# +# SPDX-License-Identifier: Apache-2.0 +# function printHelp() { echo "在调用前,需要设置 CRYPTTOGEN_FILE_PATH 环境变量,使其指向 cryptogen 工具路径" diff --git a/distributed-deploy/bcp-install-main/resources/generateInstallPackage/masterPackage/init.sh b/distributed-deploy/bcp-install-main/resources/generateInstallPackage/masterPackage/init.sh index 231a66d3..0e2ee430 100755 --- a/distributed-deploy/bcp-install-main/resources/generateInstallPackage/masterPackage/init.sh +++ b/distributed-deploy/bcp-install-main/resources/generateInstallPackage/masterPackage/init.sh @@ -1,4 +1,9 @@ #!/bin/bash +# +# Copyright CGB Corp. All Rights Reserved. +# +# SPDX-License-Identifier: Apache-2.0 +# chmod +x $(pwd)/tools/linux/configtxgen chmod +x $(pwd)/tools/linux/cryptogen diff --git a/distributed-deploy/bcp-install-main/resources/generateInstallPackage/masterPackage/start-installService-master.sh b/distributed-deploy/bcp-install-main/resources/generateInstallPackage/masterPackage/start-installService-master.sh index cd0af221..1578a50b 100755 --- a/distributed-deploy/bcp-install-main/resources/generateInstallPackage/masterPackage/start-installService-master.sh +++ b/distributed-deploy/bcp-install-main/resources/generateInstallPackage/masterPackage/start-installService-master.sh @@ -1,4 +1,9 @@ #!/bin/bash +# +# Copyright CGB Corp. All Rights Reserved. +# +# SPDX-License-Identifier: Apache-2.0 +# function printHelp() { echo "用法:" diff --git a/distributed-deploy/bcp-install-main/resources/generateInstallPackage/masterPackage/template/.gitkeep b/distributed-deploy/bcp-install-main/resources/generateInstallPackage/masterPackage/template/.gitkeep deleted file mode 100644 index e69de29b..00000000 diff --git a/distributed-deploy/bcp-install-main/resources/generateInstallPackage/masterPackage/template/cli.yaml b/distributed-deploy/bcp-install-main/resources/generateInstallPackage/masterPackage/template/cli.yaml index c57799bb..41df69f2 100644 --- a/distributed-deploy/bcp-install-main/resources/generateInstallPackage/masterPackage/template/cli.yaml +++ b/distributed-deploy/bcp-install-main/resources/generateInstallPackage/masterPackage/template/cli.yaml @@ -1,3 +1,7 @@ +# Copyright IBM Corp. All Rights Reserved. +# +# SPDX-License-Identifier: Apache-2.0 +# cli: container_name: cli diff --git a/distributed-deploy/bcp-install-main/resources/generateInstallPackage/masterPackage/template/create-update-pb.sh b/distributed-deploy/bcp-install-main/resources/generateInstallPackage/masterPackage/template/create-update-pb.sh index a08decc1..792d2dcb 100644 --- a/distributed-deploy/bcp-install-main/resources/generateInstallPackage/masterPackage/template/create-update-pb.sh +++ b/distributed-deploy/bcp-install-main/resources/generateInstallPackage/masterPackage/template/create-update-pb.sh @@ -1,5 +1,11 @@ #!/bin/bash -# 这个脚本需要在 /var/run/ 目录下执行,因为 cli 获取通道配置文件后会复制到容器的 /host/var/run/ 下,也就是宿主机的 /var/run/ +# +# Copyright CGB Corp. All Rights Reserved. +# +# SPDX-License-Identifier: Apache-2.0 +# + +# 这个脚本需要在/var/run/目录下执行,因为cli获取通道配置文件后会复制到容器的/host/var/run/下,也就是宿主机的/var/run/ CHANNEL_NAME="$1" @@ -22,4 +28,3 @@ configtxlator proto_decode --input config_update_${CHANNEL_NAME}.pb --type commo echo '{"payload":{"header":{"channel_header":{"channel_id":"'${CHANNEL_NAME}'","type":2}},"data":{"config_update":'$(cat config_update_${CHANNEL_NAME}.json)'}}}' | jq '.' > config_update_${CHANNEL_NAME}_in_envelope.json configtxlator proto_encode --input config_update_${CHANNEL_NAME}_in_envelope.json --type common.Envelope --output config_update_${CHANNEL_NAME}_in_envelope.pb - diff --git a/distributed-deploy/bcp-install-main/resources/generateInstallPackage/masterPackage/template/fetch-config.sh b/distributed-deploy/bcp-install-main/resources/generateInstallPackage/masterPackage/template/fetch-config.sh index b93636e4..b16f62ad 100644 --- a/distributed-deploy/bcp-install-main/resources/generateInstallPackage/masterPackage/template/fetch-config.sh +++ b/distributed-deploy/bcp-install-main/resources/generateInstallPackage/masterPackage/template/fetch-config.sh @@ -1,3 +1,10 @@ +#!/bin/bash +# +# Copyright CGB Corp. All Rights Reserved. +# +# SPDX-License-Identifier: Apache-2.0 +# + CHANNEL_NAME="$1" ORDERER_CA="$2" CORE_PEER_LOCALMSPID="$3" @@ -13,4 +20,3 @@ fi peer channel fetch config config_block_${CHANNEL_NAME}.pb -o $CORE_PEER_ADDRESS -c $CHANNEL_NAME --tls --cafile $ORDERER_CA configtxlator proto_decode --input config_block_${CHANNEL_NAME}.pb --type common.Block | jq '.data.data[0].payload.data.config' > config_${CHANNEL_NAME}.json cp ./config_${CHANNEL_NAME}.json /host/var/run/ - diff --git a/distributed-deploy/bcp-install-main/resources/generateInstallPackage/masterPackage/template/fetchGenesisBlock.sh b/distributed-deploy/bcp-install-main/resources/generateInstallPackage/masterPackage/template/fetchGenesisBlock.sh index cb025c78..c89fe559 100644 --- a/distributed-deploy/bcp-install-main/resources/generateInstallPackage/masterPackage/template/fetchGenesisBlock.sh +++ b/distributed-deploy/bcp-install-main/resources/generateInstallPackage/masterPackage/template/fetchGenesisBlock.sh @@ -1,3 +1,10 @@ +#!/bin/bash +# +# Copyright CGB Corp. All Rights Reserved. +# +# SPDX-License-Identifier: Apache-2.0 +# + CHANNEL_NAME="$1" ORDERER_CA="$2" CORE_PEER_LOCALMSPID="$3" @@ -10,4 +17,4 @@ export CORE_PEER_MSPCONFIGPATH=${CORE_PEER_MSPCONFIGPATH} peer channel fetch config channel-artifacts/genesis.block -o $CORE_PEER_ADDRESS -c $CHANNEL_NAME --tls --cafile $ORDERER_CA -cp -r channel-artifacts/genesis.block /host/var/run/genesis.block \ No newline at end of file +cp -r channel-artifacts/genesis.block /host/var/run/genesis.block diff --git a/distributed-deploy/bcp-install-main/resources/generateInstallPackage/masterPackage/template/list-channels.sh b/distributed-deploy/bcp-install-main/resources/generateInstallPackage/masterPackage/template/list-channels.sh index e5143b33..2b886850 100644 --- a/distributed-deploy/bcp-install-main/resources/generateInstallPackage/masterPackage/template/list-channels.sh +++ b/distributed-deploy/bcp-install-main/resources/generateInstallPackage/masterPackage/template/list-channels.sh @@ -1,4 +1,9 @@ #!/bin/bash +# +# Copyright CGB Corp. All Rights Reserved. +# +# SPDX-License-Identifier: Apache-2.0 +# CORE_PEER_ADDRESS="$1" CORE_PEER_TLS_ROOTCERT_FILE="$2" diff --git a/distributed-deploy/bcp-install-main/resources/generateInstallPackage/masterPackage/template/newPeerJoinChannel.sh b/distributed-deploy/bcp-install-main/resources/generateInstallPackage/masterPackage/template/newPeerJoinChannel.sh index bf454dfb..4e26561c 100644 --- a/distributed-deploy/bcp-install-main/resources/generateInstallPackage/masterPackage/template/newPeerJoinChannel.sh +++ b/distributed-deploy/bcp-install-main/resources/generateInstallPackage/masterPackage/template/newPeerJoinChannel.sh @@ -1,4 +1,9 @@ #!/bin/bash +# +# Copyright CGB Corp. All Rights Reserved. +# +# SPDX-License-Identifier: Apache-2.0 +# function printHelp() { echo "用法:" diff --git a/distributed-deploy/bcp-install-main/resources/generateInstallPackage/masterPackage/template/orderer.yaml b/distributed-deploy/bcp-install-main/resources/generateInstallPackage/masterPackage/template/orderer.yaml index 11965705..8edf79bc 100644 --- a/distributed-deploy/bcp-install-main/resources/generateInstallPackage/masterPackage/template/orderer.yaml +++ b/distributed-deploy/bcp-install-main/resources/generateInstallPackage/masterPackage/template/orderer.yaml @@ -1,3 +1,8 @@ +# Copyright IBM Corp. All Rights Reserved. +# +# SPDX-License-Identifier: Apache-2.0 +# + orderer.example.com: image: hyperledger/fabric-orderer:$IMAGE_TAG environment: diff --git a/distributed-deploy/bcp-install-main/resources/generateInstallPackage/masterPackage/template/peer.yaml b/distributed-deploy/bcp-install-main/resources/generateInstallPackage/masterPackage/template/peer.yaml index d1f631a4..ef453621 100644 --- a/distributed-deploy/bcp-install-main/resources/generateInstallPackage/masterPackage/template/peer.yaml +++ b/distributed-deploy/bcp-install-main/resources/generateInstallPackage/masterPackage/template/peer.yaml @@ -1,3 +1,8 @@ +# Copyright IBM Corp. All Rights Reserved. +# +# SPDX-License-Identifier: Apache-2.0 +# + peer0.org1.example.com: container_name: peer0.org1.example.com image: hyperledger/fabric-peer:$IMAGE_TAG diff --git a/distributed-deploy/bcp-install-main/resources/generateInstallPackage/masterPackage/template/start-peer.sh b/distributed-deploy/bcp-install-main/resources/generateInstallPackage/masterPackage/template/start-peer.sh index c0e1809e..a7bdb212 100644 --- a/distributed-deploy/bcp-install-main/resources/generateInstallPackage/masterPackage/template/start-peer.sh +++ b/distributed-deploy/bcp-install-main/resources/generateInstallPackage/masterPackage/template/start-peer.sh @@ -1,4 +1,9 @@ #!/bin/bash +# +# Copyright CGB Corp. All Rights Reserved. +# +# SPDX-License-Identifier: Apache-2.0 +# export PATH=${PWD}/../bin:${PWD}:$PATH export FABRIC_CFG_PATH=${PWD} diff --git a/distributed-deploy/bcp-install-main/resources/generateInstallPackage/masterPackage/template/stopNode.sh b/distributed-deploy/bcp-install-main/resources/generateInstallPackage/masterPackage/template/stopNode.sh index 57aeaaad..46177bae 100644 --- a/distributed-deploy/bcp-install-main/resources/generateInstallPackage/masterPackage/template/stopNode.sh +++ b/distributed-deploy/bcp-install-main/resources/generateInstallPackage/masterPackage/template/stopNode.sh @@ -1,4 +1,9 @@ #!/bin/bash +# +# Copyright CGB Corp. All Rights Reserved. +# +# SPDX-License-Identifier: Apache-2.0 +# NODEHOST="$1" diff --git a/distributed-deploy/bcp-install-main/resources/generateInstallPackage/masterPackage/template/update-channel-config.sh b/distributed-deploy/bcp-install-main/resources/generateInstallPackage/masterPackage/template/update-channel-config.sh index c4261479..1012ee99 100644 --- a/distributed-deploy/bcp-install-main/resources/generateInstallPackage/masterPackage/template/update-channel-config.sh +++ b/distributed-deploy/bcp-install-main/resources/generateInstallPackage/masterPackage/template/update-channel-config.sh @@ -1,5 +1,11 @@ #!/bin/bash -# 这个文件在 cli 里执行 +# +# Copyright CGB Corp. All Rights Reserved. +# +# SPDX-License-Identifier: Apache-2.0 +# + +# 这个文件在cli里执行 CHANNEL_NAME="$1" ORDERER_CA="$2" diff --git a/distributed-deploy/bcp-install-main/resources/generateInstallPackage/masterPackage/template/updateOrdererHost.sh b/distributed-deploy/bcp-install-main/resources/generateInstallPackage/masterPackage/template/updateOrdererHost.sh index b19d0cc4..17e26923 100644 --- a/distributed-deploy/bcp-install-main/resources/generateInstallPackage/masterPackage/template/updateOrdererHost.sh +++ b/distributed-deploy/bcp-install-main/resources/generateInstallPackage/masterPackage/template/updateOrdererHost.sh @@ -1,4 +1,9 @@ #! /bin/bash +# +# Copyright CGB Corp. All Rights Reserved. +# +# SPDX-License-Identifier: Apache-2.0 +# NEWORDERERHOST="$1" NEWORDERERIP="$2" diff --git a/distributed-deploy/bcp-install-main/resources/generateInstallPackage/slavePackage/start-installService-slave.sh b/distributed-deploy/bcp-install-main/resources/generateInstallPackage/slavePackage/start-installService-slave.sh index e132ea96..2727589f 100755 --- a/distributed-deploy/bcp-install-main/resources/generateInstallPackage/slavePackage/start-installService-slave.sh +++ b/distributed-deploy/bcp-install-main/resources/generateInstallPackage/slavePackage/start-installService-slave.sh @@ -1,4 +1,9 @@ #!/bin/bash +# +# Copyright CGB Corp. All Rights Reserved. +# +# SPDX-License-Identifier: Apache-2.0 +# function printHelp() { echo "用法:" diff --git a/distributed-deploy/bcp-install-main/src/main/java/com/cgb/bcpinstall/main/MainApplication.java b/distributed-deploy/bcp-install-main/src/main/java/com/cgb/bcpinstall/main/MainApplication.java index aeedfb90..38563937 100644 --- a/distributed-deploy/bcp-install-main/src/main/java/com/cgb/bcpinstall/main/MainApplication.java +++ b/distributed-deploy/bcp-install-main/src/main/java/com/cgb/bcpinstall/main/MainApplication.java @@ -1,3 +1,16 @@ +/* + * Copyright CGB Corp All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.cgb.bcpinstall.main; import com.cgb.bcpinstall.biz.InitializeBiz; diff --git a/distributed-deploy/bcp-install-main/src/main/java/com/cgb/bcpinstall/main/config/FastJson2JsonRedisSerializer.java b/distributed-deploy/bcp-install-main/src/main/java/com/cgb/bcpinstall/main/config/FastJson2JsonRedisSerializer.java index 7b5b5704..5e87bada 100644 --- a/distributed-deploy/bcp-install-main/src/main/java/com/cgb/bcpinstall/main/config/FastJson2JsonRedisSerializer.java +++ b/distributed-deploy/bcp-install-main/src/main/java/com/cgb/bcpinstall/main/config/FastJson2JsonRedisSerializer.java @@ -1,3 +1,16 @@ +/* + * Copyright CGB Corp All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.cgb.bcpinstall.main.config; import com.alibaba.fastjson.JSON; diff --git a/distributed-deploy/bcp-install-main/src/main/java/com/cgb/bcpinstall/main/config/WebConfiguration.java b/distributed-deploy/bcp-install-main/src/main/java/com/cgb/bcpinstall/main/config/WebConfiguration.java index 1b65eed1..df020577 100644 --- a/distributed-deploy/bcp-install-main/src/main/java/com/cgb/bcpinstall/main/config/WebConfiguration.java +++ b/distributed-deploy/bcp-install-main/src/main/java/com/cgb/bcpinstall/main/config/WebConfiguration.java @@ -1,3 +1,16 @@ +/* + * Copyright CGB Corp All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.cgb.bcpinstall.main.config; import com.cgb.bcpinstall.main.interceptor.RefererInterceptor; diff --git a/distributed-deploy/bcp-install-main/src/main/java/com/cgb/bcpinstall/main/interceptor/RefererInterceptor.java b/distributed-deploy/bcp-install-main/src/main/java/com/cgb/bcpinstall/main/interceptor/RefererInterceptor.java index a93165ae..c1796b05 100644 --- a/distributed-deploy/bcp-install-main/src/main/java/com/cgb/bcpinstall/main/interceptor/RefererInterceptor.java +++ b/distributed-deploy/bcp-install-main/src/main/java/com/cgb/bcpinstall/main/interceptor/RefererInterceptor.java @@ -1,3 +1,16 @@ +/* + * Copyright CGB Corp All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.cgb.bcpinstall.main.interceptor; import com.alibaba.fastjson.JSONObject; diff --git a/distributed-deploy/bcp-install-main/src/main/java/com/cgb/bcpinstall/main/interceptor/UserInterceptor.java b/distributed-deploy/bcp-install-main/src/main/java/com/cgb/bcpinstall/main/interceptor/UserInterceptor.java index 91409b72..f693f37f 100644 --- a/distributed-deploy/bcp-install-main/src/main/java/com/cgb/bcpinstall/main/interceptor/UserInterceptor.java +++ b/distributed-deploy/bcp-install-main/src/main/java/com/cgb/bcpinstall/main/interceptor/UserInterceptor.java @@ -1,3 +1,16 @@ +/* + * Copyright CGB Corp All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.cgb.bcpinstall.main.interceptor; import com.alibaba.fastjson.JSONObject; diff --git a/distributed-deploy/bcp-install-main/src/main/resources/application.yml b/distributed-deploy/bcp-install-main/src/main/resources/application.yml index 7c4890f6..bb069c89 100644 --- a/distributed-deploy/bcp-install-main/src/main/resources/application.yml +++ b/distributed-deploy/bcp-install-main/src/main/resources/application.yml @@ -1,3 +1,8 @@ +# Copyright CGB Corp. All Rights Reserved. +# +# SPDX-License-Identifier: Apache-2.0 +# + spring: application: name: bcp-mgr diff --git a/distributed-deploy/bcp-install-main/src/test/java/InitTest.java b/distributed-deploy/bcp-install-main/src/test/java/InitTest.java index 25f89232..9e0e51cd 100644 --- a/distributed-deploy/bcp-install-main/src/test/java/InitTest.java +++ b/distributed-deploy/bcp-install-main/src/test/java/InitTest.java @@ -1,3 +1,16 @@ +/* + * Copyright CGB Corp All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ import com.cgb.bcpinstall.biz.InitializeBiz; import com.cgb.bcpinstall.biz.InstallBiz; import com.cgb.bcpinstall.common.entity.init.InitConfigEntity; diff --git a/distributed-deploy/bcp-install-main/src/test/java/InstallTest.java b/distributed-deploy/bcp-install-main/src/test/java/InstallTest.java index 2d9b2246..561b327e 100644 --- a/distributed-deploy/bcp-install-main/src/test/java/InstallTest.java +++ b/distributed-deploy/bcp-install-main/src/test/java/InstallTest.java @@ -1,3 +1,16 @@ +/* + * Copyright CGB Corp All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ import com.alibaba.fastjson.JSONObject; import com.cgb.bcpinstall.biz.InstallBiz; import com.cgb.bcpinstall.common.entity.InstallStatusEnum;