From a1310b127dd917cb4f921a1a532be216b3aeda03 Mon Sep 17 00:00:00 2001
From: chenlw <874313221@qq.com>
Date: Tue, 20 Sep 2016 14:19:04 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BC=9A=E7=95=A5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.classpath | 14 -
.gitignore | 14 +-
.metadata/.lock | 0
.metadata/.log | 14 -
.metadata/.mylyn/repositories.xml.zip | Bin 438 -> 0 bytes
.../.indexes/properties.index | Bin 80 -> 0 bytes
.../GitProjectData.properties | 3 -
.../.root/.indexes/history.version | 1 -
.../.root/.indexes/properties.index | Bin 151 -> 0 bytes
.../.root/.indexes/properties.version | 1 -
.../org.eclipse.core.resources/.root/1.tree | Bin 228 -> 0 bytes
.../.safetable/org.eclipse.core.resources | Bin 608 -> 0 bytes
.../org.eclipse.core.resources.prefs | 2 -
.../.settings/org.eclipse.egit.core.prefs | 2 -
.../.settings/org.eclipse.jdt.ui.prefs | 14 -
.../org.eclipse.jst.j2ee.webservice.ui.prefs | 2 -
.../.settings/org.eclipse.m2e.discovery.prefs | 2 -
.../org.eclipse.mylyn.context.core.prefs | 2 -
.../org.eclipse.mylyn.monitor.ui.prefs | 2 -
.../org.eclipse.mylyn.tasks.ui.prefs | 3 -
.../.settings/org.eclipse.rse.core.prefs | 3 -
.../.settings/org.eclipse.rse.ui.prefs | 2 -
.../.settings/org.eclipse.team.cvs.ui.prefs | 2 -
.../.settings/org.eclipse.team.ui.prefs | 2 -
.../.settings/org.eclipse.ui.browser.prefs | 2 -
.../.settings/org.eclipse.ui.ide.prefs | 5 -
.../.settings/org.eclipse.ui.prefs | 2 -
.../.settings/org.eclipse.ui.workbench.prefs | 4 -
.../org.eclipse.e4.workbench/workbench.xmi | 2492 -----------------
.../org.eclipse.jdt.core/invalidArchivesCache | Bin 4 -> 0 bytes
.../org.eclipse.jdt.core/nonChainingJarsCache | Bin 4 -> 0 bytes
.../variablesAndContainers.dat | Bin 129 -> 0 bytes
.../org.eclipse.jdt.ui/OpenTypeHistory.xml | 2 -
.../QualifiedTypeNameHistory.xml | 2 -
.../org.eclipse.jdt.ui/dialog_settings.xml | 10 -
.../0.log | 0
.../logback.1.4.0.20130601-0317.xml | 41 -
.metadata/.plugins/org.eclipse.rse.core/.log | 0
...al.core.RSELocalConnectionInitializer.mark | 0
.../FP.local.files_0/node.properties | 57 -
.../H.local_16/node.properties | 25 -
.../PRF.desktop-65kj4bv_32539/node.properties | 7 -
.metadata/.plugins/org.eclipse.rse.ui/.log | 0
.../dialog_settings.xml | 28 -
.../hidden.xml | Bin 138 -> 0 bytes
.../org.eclipse.wst.common.snippets/user.xml | Bin 464 -> 0 bytes
.metadata/version.ini | 1 -
.project | 41 -
.settings/.jsdtscope | 12 -
.../com.genuitec.eclipse.migration.prefs | 3 -
.settings/org.eclipse.core.resources.prefs | 10 -
.settings/org.eclipse.jdt.core.prefs | 101 -
.settings/org.eclipse.jpt.core.prefs | 3 -
.settings/org.eclipse.m2e.core.prefs | 4 -
.settings/org.eclipse.wst.common.component | 9 -
...se.wst.common.project.facet.core.prefs.xml | 7 -
....eclipse.wst.common.project.facet.core.xml | 11 -
...rg.eclipse.wst.jsdt.ui.superType.container | 1 -
.../org.eclipse.wst.jsdt.ui.superType.name | 1 -
RemoteSystemsTempFiles/.project | 12 -
WebContent/META-INF/MANIFEST.MF | 6 +-
WebContent/WEB-INF/config/config.properties | 100 +-
WebContent/WEB-INF/config/getTreedata.sh | 32 +-
WebContent/WEB-INF/config/log4j-config.xml | 134 +-
.../config/mybatis-applicationConfig.xml | 42 +-
.../config/spring-applicationContext.xml | 184 +-
.../config/springmvc-applicationContext.xml | 112 +-
WebContent/WEB-INF/web.xml | 130 +-
src/META-INF/persistence.xml | 10 +-
src/com/base/BaseController.java | 128 +-
src/com/base/Constant.java | 46 +-
src/com/base/Custom4exception.java | 58 +-
src/com/base/CustomException.java | 254 +-
src/com/base/Resource.java | 158 +-
src/com/dao/mapper/RegionalismMapper.xml | 82 +-
src/com/dao/mapper/SystemCodeMapper.xml | 82 +-
src/com/dao/mapper/config-details-mapper.xml | 290 +-
src/com/dao/mapper/data-details-mapper.xml | 496 ++--
src/com/dao/mapper/dataInfoMoveTmpmapper.xml | 376 +--
.../controller/DefaultController.java | 64 +-
.../platform/controller/FolderController.java | 228 +-
.../controller/SetGlusterfsController.java | 104 +-
.../controller/ShowGlusterfsController.java | 100 +-
.../controller/TaskModelController.java | 56 +-
src/com/platform/dao/DataInfoDao.java | 54 +-
src/com/platform/dao/DataInfoMoveTmpDao.java | 58 +-
src/com/platform/dao/EncodeInfoDao.java | 196 +-
src/com/platform/dao/GatherOracleDao.java | 78 +-
src/com/platform/dao/IRegionalismCodeDao.java | 56 +-
src/com/platform/dao/ISystemCodeDao.java | 56 +-
src/com/platform/entities/BasedType.java | 96 +-
src/com/platform/entities/DataInfoEntity.java | 538 ++--
.../entities/DataInfoEntityMoveTmp.java | 248 +-
.../platform/entities/EncodedInfoEntity.java | 82 +-
src/com/platform/entities/FolderNode.java | 130 +-
.../platform/entities/GatherOracleInfo.java | 164 +-
.../platform/entities/GfsFolderEntity.java | 154 +-
.../entities/OracleConnectorParams.java | 186 +-
src/com/platform/entities/PagerOptions.java | 316 +--
.../platform/entities/RegionalismEntity.java | 106 +-
.../entities/SimpleConfigParamsBean.java | 88 +-
src/com/platform/entities/SystemEntity.java | 74 +-
src/com/platform/entities/VolumeEntity.java | 324 +--
src/com/platform/glusterfs/CheckoutMD5.java | 212 +-
src/com/platform/glusterfs/ClusterInfo.java | 248 +-
src/com/platform/glusterfs/GetTreeData.java | 250 +-
src/com/platform/glusterfs/RemoveData.java | 112 +-
src/com/platform/glusterfs/SetCluster.java | 134 +-
src/com/platform/glusterfs/SetVolume.java | 1080 +++----
src/com/platform/glusterfs/ShowData.java | 262 +-
src/com/platform/glusterfs/SizeInfo.java | 184 +-
src/com/platform/glusterfs/VolumeInfo.java | 812 +++---
.../platform/kubernetes/SimpleKubeClient.java | 308 +-
src/com/platform/oracle/OracleConnector.java | 150 +-
src/com/platform/service/DataInfoService.java | 32 +-
.../platform/service/DataInfoServiceImp.java | 178 +-
.../platform/service/EncodeInfoService.java | 40 +-
.../service/EncodeInfoServiceImpl.java | 104 +-
src/com/platform/service/ICodeService.java | 80 +-
src/com/platform/service/IGfsService.java | 152 +-
.../platform/service/IMoveDataService.java | 80 +-
src/com/platform/service/IMySqlService.java | 50 +-
.../service/IOracleExtractService.java | 44 +-
.../platform/service/OracleExtractHelper.java | 326 +--
.../service/OracleExtractService.java | 48 +-
.../platform/service/OracleStatusService.java | 340 +--
.../service/SimplePropertyReader.java | 40 +-
.../service/impl/CodeServiceImpl.java | 132 +-
.../service/impl/MoveDataServiceImpl.java | 306 +-
.../service/impl/MySqlServiceImpl.java | 112 +-
.../impl/OracleExtractServiceImpl.java | 188 +-
.../service/thread/ThreadMoveData.java | 378 +--
.../service/thread/TreadMoveData2Start.java | 94 +-
src/com/platform/utils/Bean2MapUtils.java | 174 +-
src/com/platform/utils/ConfigLoder.java | 168 +-
.../platform/utils/ConfigPropertyReader.java | 168 +-
src/com/platform/utils/Configs.java | 104 +-
src/com/platform/utils/ConfigsLoader.java | 148 +-
src/com/platform/utils/DateForm.java | 274 +-
src/com/platform/utils/DateHandle.java | 18 +-
src/com/platform/utils/FileOperateHelper.java | 190 +-
src/com/platform/utils/GanymedSSH.java | 536 ++--
src/com/platform/utils/RunCommand.java | 120 +-
src/com/platform/utils/Support.java | 62 +-
src/com/platform/utils/TestSupport.java | 28 +-
src/com/platform/utils/ThreadVolume.java | 266 +-
src/com/platform/utils/UtilsHelper.java | 226 +-
src/com/platform/utils/getTreeDataByPath.java | 98 +-
.../websocket/SystemWebSocketHandler.java | 102 +-
.../platform/websocket/WebSocketConfig.java | 56 +-
test/com/platform/test/Brick.java | 26 -
test/com/platform/test/FolderReader.java | 35 -
test/com/platform/test/SMBasedTest.java | 15 -
test/com/platform/test/TestConnectOralce.java | 29 -
test/com/platform/test/TestController.java | 53 -
test/com/platform/test/TestEncodeInfoDao.java | 64 -
test/com/platform/test/TestEncodeService.java | 45 -
test/com/platform/test/User.java | 42 -
test/com/platform/test/Volume.java | 64 -
test/com/platform/test/testSystemInfoDao.java | 19 -
test/spring-applicationContext-test.xml | 64 -
161 files changed, 7754 insertions(+), 11170 deletions(-)
delete mode 100644 .classpath
delete mode 100644 .metadata/.lock
delete mode 100644 .metadata/.log
delete mode 100644 .metadata/.mylyn/repositories.xml.zip
delete mode 100644 .metadata/.plugins/org.eclipse.core.resources/.projects/RemoteSystemsTempFiles/.indexes/properties.index
delete mode 100644 .metadata/.plugins/org.eclipse.core.resources/.projects/RemoteSystemsTempFiles/org.eclipse.egit.core/GitProjectData.properties
delete mode 100644 .metadata/.plugins/org.eclipse.core.resources/.root/.indexes/history.version
delete mode 100644 .metadata/.plugins/org.eclipse.core.resources/.root/.indexes/properties.index
delete mode 100644 .metadata/.plugins/org.eclipse.core.resources/.root/.indexes/properties.version
delete mode 100644 .metadata/.plugins/org.eclipse.core.resources/.root/1.tree
delete mode 100644 .metadata/.plugins/org.eclipse.core.resources/.safetable/org.eclipse.core.resources
delete mode 100644 .metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.core.resources.prefs
delete mode 100644 .metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.egit.core.prefs
delete mode 100644 .metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jdt.ui.prefs
delete mode 100644 .metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jst.j2ee.webservice.ui.prefs
delete mode 100644 .metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.m2e.discovery.prefs
delete mode 100644 .metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.mylyn.context.core.prefs
delete mode 100644 .metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.mylyn.monitor.ui.prefs
delete mode 100644 .metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.mylyn.tasks.ui.prefs
delete mode 100644 .metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.rse.core.prefs
delete mode 100644 .metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.rse.ui.prefs
delete mode 100644 .metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.team.cvs.ui.prefs
delete mode 100644 .metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.team.ui.prefs
delete mode 100644 .metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.browser.prefs
delete mode 100644 .metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.ide.prefs
delete mode 100644 .metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.prefs
delete mode 100644 .metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.workbench.prefs
delete mode 100644 .metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi
delete mode 100644 .metadata/.plugins/org.eclipse.jdt.core/invalidArchivesCache
delete mode 100644 .metadata/.plugins/org.eclipse.jdt.core/nonChainingJarsCache
delete mode 100644 .metadata/.plugins/org.eclipse.jdt.core/variablesAndContainers.dat
delete mode 100644 .metadata/.plugins/org.eclipse.jdt.ui/OpenTypeHistory.xml
delete mode 100644 .metadata/.plugins/org.eclipse.jdt.ui/QualifiedTypeNameHistory.xml
delete mode 100644 .metadata/.plugins/org.eclipse.jdt.ui/dialog_settings.xml
delete mode 100644 .metadata/.plugins/org.eclipse.m2e.logback.configuration/0.log
delete mode 100644 .metadata/.plugins/org.eclipse.m2e.logback.configuration/logback.1.4.0.20130601-0317.xml
delete mode 100644 .metadata/.plugins/org.eclipse.rse.core/.log
delete mode 100644 .metadata/.plugins/org.eclipse.rse.core/initializerMarks/org.eclipse.rse.internal.core.RSELocalConnectionInitializer.mark
delete mode 100644 .metadata/.plugins/org.eclipse.rse.core/profiles/PRF.desktop-65kj4bv_32539/FP.local.files_0/node.properties
delete mode 100644 .metadata/.plugins/org.eclipse.rse.core/profiles/PRF.desktop-65kj4bv_32539/H.local_16/node.properties
delete mode 100644 .metadata/.plugins/org.eclipse.rse.core/profiles/PRF.desktop-65kj4bv_32539/node.properties
delete mode 100644 .metadata/.plugins/org.eclipse.rse.ui/.log
delete mode 100644 .metadata/.plugins/org.eclipse.ui.workbench/dialog_settings.xml
delete mode 100644 .metadata/.plugins/org.eclipse.wst.common.snippets/hidden.xml
delete mode 100644 .metadata/.plugins/org.eclipse.wst.common.snippets/user.xml
delete mode 100644 .metadata/version.ini
delete mode 100644 .project
delete mode 100644 .settings/.jsdtscope
delete mode 100644 .settings/com.genuitec.eclipse.migration.prefs
delete mode 100644 .settings/org.eclipse.core.resources.prefs
delete mode 100644 .settings/org.eclipse.jdt.core.prefs
delete mode 100644 .settings/org.eclipse.jpt.core.prefs
delete mode 100644 .settings/org.eclipse.m2e.core.prefs
delete mode 100644 .settings/org.eclipse.wst.common.component
delete mode 100644 .settings/org.eclipse.wst.common.project.facet.core.prefs.xml
delete mode 100644 .settings/org.eclipse.wst.common.project.facet.core.xml
delete mode 100644 .settings/org.eclipse.wst.jsdt.ui.superType.container
delete mode 100644 .settings/org.eclipse.wst.jsdt.ui.superType.name
delete mode 100644 RemoteSystemsTempFiles/.project
delete mode 100644 test/com/platform/test/Brick.java
delete mode 100644 test/com/platform/test/FolderReader.java
delete mode 100644 test/com/platform/test/SMBasedTest.java
delete mode 100644 test/com/platform/test/TestConnectOralce.java
delete mode 100644 test/com/platform/test/TestController.java
delete mode 100644 test/com/platform/test/TestEncodeInfoDao.java
delete mode 100644 test/com/platform/test/TestEncodeService.java
delete mode 100644 test/com/platform/test/User.java
delete mode 100644 test/com/platform/test/Volume.java
delete mode 100644 test/com/platform/test/testSystemInfoDao.java
delete mode 100644 test/spring-applicationContext-test.xml
diff --git a/.classpath b/.classpath
deleted file mode 100644
index 47b4f45e..00000000
--- a/.classpath
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/.gitignore b/.gitignore
index 01479dbd..c0b1f670 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,5 +1,9 @@
-/target
-/build
-.classpath
-
-/bin/
+/target
+/build
+.classpath
+/RemoteSystemsTempFiles
+/bin/
+.project
+.settings
+.metadata
+/test
\ No newline at end of file
diff --git a/.metadata/.lock b/.metadata/.lock
deleted file mode 100644
index e69de29b..00000000
diff --git a/.metadata/.log b/.metadata/.log
deleted file mode 100644
index 73325e19..00000000
--- a/.metadata/.log
+++ /dev/null
@@ -1,14 +0,0 @@
-!SESSION 2016-09-13 08:39:40.662 -----------------------------------------------
-eclipse.buildId=4.3.0.I20130605-2000
-java.version=1.8.0_91
-java.vendor=Oracle Corporation
-BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=zh_CN
-Framework arguments: -product org.eclipse.epp.package.jee.product
-Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.jee.product
-
-!ENTRY org.eclipse.egit.ui 2 0 2016-09-13 08:40:07.850
-!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
-user global configuration and to define the default location to store repositories: 'C:\Users\wuming'. If this is
-not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
-EGit might behave differently since they see different configuration options.
-This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
diff --git a/.metadata/.mylyn/repositories.xml.zip b/.metadata/.mylyn/repositories.xml.zip
deleted file mode 100644
index a72104b5ad12bf667cd6ee3ed95ca32cf446622e..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001
literal 438
zcmWIWW@Zs#;Nak3(00}JWIzG}Kz31TL4I*&Nq$jgYO!8LZqC~fUwu<$9jGKz3R+-gM8031{(^)PHUHH
zvfjEBdhA-%zFs-~yr&E9OEdb%U$i#6$l9zkFZhe*zWnD;?#=b{>0P@;W_eX&heMZ$
z$7waU^X0A+Z?D;)@>p^z_t$XecNHxIv(L|H@aT>E$*~)%h{Pxmb}It0&ORm&q_+>Kn;
zu|%4GGyO^kIBc5AON{)x8Ytd^3!#tBT%d
zKROjdiM^d#DX@1<28G<7mSko!~0WlK4xg6sf^g7hL)RGcsp`I
s;2lC*cLP{$+X%5=J?;n1$mzK6Kxvq}lw%KH6gFb~!1V;4DWMOdC+(ytc>n+a
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.safetable/org.eclipse.core.resources b/.metadata/.plugins/org.eclipse.core.resources/.safetable/org.eclipse.core.resources
deleted file mode 100644
index 75faf83adb0ac1936639a5781724da16f5237be7..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001
literal 608
zcmZ?R*xjhShe1S2b=vdAllRFf=Oz}Hq!uZZBqrsg@^UGMl%^^Krxqv}8Y>uBSeY1F
z85t=!2Ztya85o-JawX@aCKkD*=9DDH=NF~xr6%WO78IxI6#;QtW=?9cUTLOnNl_`#
zpcIfI*NTG7qQsKS{5%xpSt%uY$@xX8wuUC=#^y%mMixfK=J-tqD~Fhj!wqmlA*%HC
zN{Ui}HsEw~Ze>noo?b~}aW;~x4@CU_3=W;Z&pp+<%a1wGJhajhbBbvcTu`G4g%?yA
LsR0Jnh8|)7(5cqL
diff --git a/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.core.resources.prefs b/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.core.resources.prefs
deleted file mode 100644
index 77fe5831..00000000
--- a/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.core.resources.prefs
+++ /dev/null
@@ -1,2 +0,0 @@
-eclipse.preferences.version=1
-version=1
diff --git a/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.egit.core.prefs b/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.egit.core.prefs
deleted file mode 100644
index e1cf592f..00000000
--- a/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.egit.core.prefs
+++ /dev/null
@@ -1,2 +0,0 @@
-GitRepositoriesView.GitDirectories=C\:\\Users\\wuming\\workspace\\data_manager_backend\\.git;
-eclipse.preferences.version=1
diff --git a/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jdt.ui.prefs b/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jdt.ui.prefs
deleted file mode 100644
index 2842910e..00000000
--- a/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jdt.ui.prefs
+++ /dev/null
@@ -1,14 +0,0 @@
-content_assist_proposals_background=255,255,255
-content_assist_proposals_foreground=0,0,0
-eclipse.preferences.version=1
-fontPropagated=true
-org.eclipse.jdt.internal.ui.navigator.layout=2
-org.eclipse.jdt.ui.editor.tab.width=
-org.eclipse.jdt.ui.formatterprofiles.version=12
-org.eclipse.jdt.ui.javadoclocations.migrated=true
-org.eclipse.jface.textfont=1|Courier New|10.0|0|WINDOWS|1|0|0|0|0|0|0|0|0|1|0|0|0|0|Courier New;
-proposalOrderMigrated=true
-spelling_locale_initialized=true
-tabWidthPropagated=true
-useAnnotationsPrefPage=true
-useQuickDiffPrefPage=true
diff --git a/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jst.j2ee.webservice.ui.prefs b/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jst.j2ee.webservice.ui.prefs
deleted file mode 100644
index b79e47a4..00000000
--- a/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jst.j2ee.webservice.ui.prefs
+++ /dev/null
@@ -1,2 +0,0 @@
-areThereWebServices=false
-eclipse.preferences.version=1
diff --git a/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.m2e.discovery.prefs b/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.m2e.discovery.prefs
deleted file mode 100644
index c05c14ca..00000000
--- a/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.m2e.discovery.prefs
+++ /dev/null
@@ -1,2 +0,0 @@
-eclipse.preferences.version=1
-org.eclipse.m2e.discovery.pref.projects=
diff --git a/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.mylyn.context.core.prefs b/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.mylyn.context.core.prefs
deleted file mode 100644
index e5a71f29..00000000
--- a/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.mylyn.context.core.prefs
+++ /dev/null
@@ -1,2 +0,0 @@
-eclipse.preferences.version=1
-mylyn.attention.migrated=true
diff --git a/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.mylyn.monitor.ui.prefs b/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.mylyn.monitor.ui.prefs
deleted file mode 100644
index e0b8c16e..00000000
--- a/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.mylyn.monitor.ui.prefs
+++ /dev/null
@@ -1,2 +0,0 @@
-eclipse.preferences.version=1
-org.eclipse.mylyn.monitor.activity.tracking.enabled.checked=true
diff --git a/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.mylyn.tasks.ui.prefs b/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.mylyn.tasks.ui.prefs
deleted file mode 100644
index 07d6ad69..00000000
--- a/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.mylyn.tasks.ui.prefs
+++ /dev/null
@@ -1,3 +0,0 @@
-eclipse.preferences.version=1
-org.eclipse.mylyn.tasks.ui.filters.nonmatching=true
-org.eclipse.mylyn.tasks.ui.filters.nonmatching.encouraged=true
diff --git a/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.rse.core.prefs b/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.rse.core.prefs
deleted file mode 100644
index 824dc6da..00000000
--- a/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.rse.core.prefs
+++ /dev/null
@@ -1,3 +0,0 @@
-activeuserprofiles=DESKTOP-65KJ4BV;Team
-eclipse.preferences.version=1
-org.eclipse.rse.systemtype.local.systemType.defaultUserId=wuming
diff --git a/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.rse.ui.prefs b/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.rse.ui.prefs
deleted file mode 100644
index a8e9ed48..00000000
--- a/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.rse.ui.prefs
+++ /dev/null
@@ -1,2 +0,0 @@
-eclipse.preferences.version=1
-org.eclipse.rse.preferences.order.connections=DESKTOP-65KJ4BV.Local
diff --git a/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.team.cvs.ui.prefs b/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.team.cvs.ui.prefs
deleted file mode 100644
index 56114a2b..00000000
--- a/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.team.cvs.ui.prefs
+++ /dev/null
@@ -1,2 +0,0 @@
-eclipse.preferences.version=1
-pref_first_startup=false
diff --git a/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.team.ui.prefs b/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.team.ui.prefs
deleted file mode 100644
index 848e2638..00000000
--- a/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.team.ui.prefs
+++ /dev/null
@@ -1,2 +0,0 @@
-eclipse.preferences.version=1
-org.eclipse.team.ui.first_time=false
diff --git a/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.browser.prefs b/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.browser.prefs
deleted file mode 100644
index 5fe466c2..00000000
--- a/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.browser.prefs
+++ /dev/null
@@ -1,2 +0,0 @@
-browsers=\r\n\r\n\r\n\r\n
-eclipse.preferences.version=1
diff --git a/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.ide.prefs b/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.ide.prefs
deleted file mode 100644
index 0d882fe3..00000000
--- a/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.ide.prefs
+++ /dev/null
@@ -1,5 +0,0 @@
-PROBLEMS_FILTERS_MIGRATE=true
-eclipse.preferences.version=1
-platformState=1470357608478
-quickStart=false
-tipsAndTricks=true
diff --git a/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.prefs b/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.prefs
deleted file mode 100644
index bd7d2109..00000000
--- a/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.prefs
+++ /dev/null
@@ -1,2 +0,0 @@
-eclipse.preferences.version=1
-showIntro=false
diff --git a/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.workbench.prefs b/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.workbench.prefs
deleted file mode 100644
index 88952f99..00000000
--- a/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.workbench.prefs
+++ /dev/null
@@ -1,4 +0,0 @@
-//org.eclipse.ui.commands/state/org.eclipse.wst.xml.views.XPathView.processor.xpathprocessor/org.eclipse.ui.commands.radioState=xpath10
-ENABLED_DECORATORS=org.eclipse.jst.ws.jaxws.dom.integration.navigator.WebServiceDecorator\:true,org.eclipse.m2e.core.mavenVersionDecorator\:false,org.eclipse.wst.server.ui.decorator\:false,org.eclipse.datatools.connectivity.sqm.core.internal.ui.explorer.DependencyDecoration\:true,org.eclipse.datatools.connectivity.sqm.core.internal.ui.explorer.ColumnDecoration\:true,org.eclipse.datatools.connectivity.sqm.core.internal.ui.explorer.ForeignKeyDecoration\:true,org.eclipse.datatools.connectivity.sqm.core.internal.ui.explorer.IndexTriggerDecoration\:true,org.eclipse.datatools.connectivity.internal.core.ui.bookmarkDecoration\:true,org.eclipse.datatools.connectivity.internal.core.ui.FilterNodeDecoration\:true,org.eclipse.datatools.connectivity.ui.decorator.contentextension\:false,org.eclipse.datatools.enablement.ingres.ui.providers.decorators.SynonymDecorationService\:true,org.eclipse.datatools.enablement.ingres.internal.ui.providers.decorators.ParameterDecorationService\:true,org.eclipse.datatools.enablement.sybase.asa.proxytabledecorator\:true,org.eclipse.datatools.enablement.sybase.ase.webservicetabledecorator\:true,org.eclipse.datatools.enablement.sybase.systemtabledecorator\:true,org.eclipse.egit.ui.internal.decorators.GitLightweightDecorator\:true,org.eclipse.jdt.ui.override.decorator\:true,org.eclipse.jdt.ui.interface.decorator\:false,org.eclipse.jdt.ui.buildpath.decorator\:true,org.eclipse.jst.j2ee.internal.ui.util.AnnotationIconDecorator_ejb\:true,org.eclipse.jst.j2ee.navigator.internal.J2EEProjectDecorator\:true,org.eclipse.jst.jee.ui.internal.navigator.ejb.BeanDecorator\:true,org.eclipse.jst.jee.navigator.internal.JEEProjectDecorator\:true,org.eclipse.jst.j2ee.internal.ui.util.AnnotationIconDecorator_servlet\:true,org.eclipse.m2e.core.maven2decorator\:true,org.eclipse.mylyn.context.ui.decorator.interest\:true,org.eclipse.mylyn.tasks.ui.decorators.task\:true,org.eclipse.mylyn.team.ui.changeset.decorator\:true,org.eclipse.pde.ui.binaryProjectDecorator\:false,org.eclipse.rse.core.virtualobject.decorator\:true,org.eclipse.rse.core.binary.executable.decorator\:true,org.eclipse.rse.core.script.executable.decorator\:true,org.eclipse.rse.core.java.executable.decorator\:true,org.eclipse.rse.core.library.decorator\:true,org.eclipse.rse.core.link.decorator\:true,org.eclipse.rse.subsystems.error.decorator\:true,org.eclipse.team.cvs.ui.decorator\:true,org.eclipse.ui.LinkedResourceDecorator\:true,org.eclipse.ui.SymlinkDecorator\:true,org.eclipse.ui.VirtualResourceDecorator\:true,org.eclipse.ui.ContentTypeDecorator\:true,org.eclipse.ui.ResourceFilterDecorator\:false,org.eclipse.wst.jsdt.ui.override.decorator\:true,org.eclipse.wst.server.ui.navigatorDecorator\:true,
-PLUGINS_NOT_ACTIVATED_ON_STARTUP=org.eclipse.m2e.discovery;
-eclipse.preferences.version=1
diff --git a/.metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi b/.metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi
deleted file mode 100644
index 4521125c..00000000
--- a/.metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi
+++ /dev/null
@@ -1,2492 +0,0 @@
-
-
-
- activeSchemeId:org.eclipse.ui.defaultAcceleratorConfiguration
-
-
-
-
-
- topLevel
- shellMaximized
-
-
-
-
- persp.actionSet:org.eclipse.mylyn.context.ui.actionSet
- persp.actionSet:org.eclipse.mylyn.doc.actionSet
- persp.actionSet:org.eclipse.mylyn.tasks.ui.navigation
- persp.actionSet:org.eclipse.ui.cheatsheets.actionSet
- persp.actionSet:org.eclipse.rse.core.search.searchActionSet
- persp.actionSet:org.eclipse.search.searchActionSet
- persp.actionSet:org.eclipse.ui.edit.text.actionSet.annotationNavigation
- persp.actionSet:org.eclipse.ui.edit.text.actionSet.navigation
- persp.actionSet:org.eclipse.ui.edit.text.actionSet.convertLineDelimitersTo
- persp.actionSet:org.eclipse.ui.externaltools.ExternalToolsSet
- persp.actionSet:org.eclipse.ui.actionSet.keyBindings
- persp.actionSet:org.eclipse.ui.actionSet.openFiles
- persp.actionSet:org.eclipse.jst.j2ee.J2eeMainActionSet
- persp.actionSet:org.eclipse.jdt.ui.JavaActionSet
- persp.actionSet:org.eclipse.debug.ui.launchActionSet
- persp.actionSet:org.eclipse.debug.ui.debugActionSet
- persp.actionSet:org.eclipse.ui.NavigateActionSet
- persp.viewSC:org.eclipse.ui.navigator.ProjectExplorer
- persp.viewSC:org.eclipse.wst.server.ui.ServersView
- persp.viewSC:org.eclipse.datatools.connectivity.DataSourceExplorerNavigator
- persp.viewSC:org.eclipse.ui.views.BookmarkView
- persp.viewSC:org.eclipse.ui.views.ContentOutline
- persp.viewSC:org.eclipse.ui.views.PropertySheet
- persp.viewSC:org.eclipse.ui.views.ResourceNavigator
- persp.viewSC:org.eclipse.wst.common.snippets.internal.ui.SnippetsView
- persp.viewSC:org.eclipse.ui.views.AllMarkersView
- persp.viewSC:org.eclipse.mylyn.tasks.ui.views.tasks
- persp.viewSC:org.eclipse.search.ui.views.SearchView
- persp.viewSC:org.eclipse.ui.console.ConsoleView
- persp.showIn:org.eclipse.ui.navigator.ProjectExplorer
- persp.newWizSC:org.eclipse.jpt.jpa.ui.wizard.newJpaProject
- persp.perspSC:org.eclipse.jpt.ui.jpaPerspective
- persp.perspSC:org.eclipse.debug.ui.DebugPerspective
- persp.perspSC:org.eclipse.jdt.ui.JavaPerspective
- persp.perspSC:org.eclipse.ui.resourcePerspective
- persp.perspSC:org.eclipse.wst.web.ui.webDevPerspective
- persp.newWizSC:org.eclipse.jst.j2ee.ui.project.facet.EarProjectWizard
- persp.newWizSC:org.eclipse.jst.servlet.ui.project.facet.WebProjectWizard
- persp.newWizSC:org.eclipse.jst.ejb.ui.project.facet.EjbProjectWizard
- persp.newWizSC:org.eclipse.jst.j2ee.jca.ui.internal.wizard.ConnectorProjectWizard
- persp.newWizSC:org.eclipse.jst.j2ee.ui.project.facet.appclient.AppClientProjectWizard
- persp.newWizSC:org.eclipse.wst.web.ui.internal.wizards.SimpleWebProjectWizard
- persp.newWizSC:org.eclipse.jpt.ui.wizard.newJpaProject
- persp.newWizSC:org.eclipse.jst.servlet.ui.internal.wizard.AddServletWizard
- persp.newWizSC:org.eclipse.jst.ejb.ui.internal.wizard.AddSessionBeanWizard
- persp.newWizSC:org.eclipse.jst.ejb.ui.internal.wizard.AddMessageDrivenBeanWizard
- persp.newWizSC:org.eclipse.jpt.ui.wizard.newEntity
- persp.newWizSC:org.eclipse.jst.ws.creation.ui.wizard.serverwizard
- persp.newWizSC:org.eclipse.ui.wizards.new.folder
- persp.newWizSC:org.eclipse.ui.wizards.new.file
- persp.actionSet:org.eclipse.wst.server.ui.internal.webbrowser.actionSet
- persp.actionSet:org.eclipse.debug.ui.breakpointActionSet
- persp.newWizSC:org.eclipse.m2e.core.wizards.Maven2ProjectWizard
- persp.actionSet:org.eclipse.wst.ws.explorer.explorer
-
-
- newtablook
-
-
-
-
-
-
-
-
-
-
- newtablook
-
-
-
-
-
- newtablook
- org.eclipse.e4.secondaryDataStack
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- View
- categoryTag:Help
-
-
- View
- categoryTag:General
-
- ViewMenu
- menuContribution:menu
-
-
-
-
- View
- categoryTag:Help
-
-
-
- newtablook
- org.eclipse.e4.primaryDataStack
- EditorStack
-
-
-
-
- View
- categoryTag:General
-
- ViewMenu
- menuContribution:menu
-
-
-
-
- View
- categoryTag:General
-
-
- View
- categoryTag:Java
-
-
- View
- categoryTag:Java Browsing
-
-
-
- View
- categoryTag:General
-
- ViewMenu
- menuContribution:menu
-
-
-
-
- View
- categoryTag:General
-
-
- View
- categoryTag:Server
-
-
- View
- categoryTag:Data Management
-
-
-
- View
- categoryTag:General
-
- ViewMenu
- menuContribution:menu
-
-
-
-
- View
- categoryTag:General
-
-
- View
- categoryTag:General
-
-
- View
- categoryTag:General
-
-
- View
- categoryTag:General
-
-
- View
- categoryTag:General
-
-
- View
- categoryTag:General
-
-
-
- View
- categoryTag:General
-
- ViewMenu
- menuContribution:menu
-
-
-
-
- View
- categoryTag:Mylyn
-
-
-
- View
- categoryTag:Java
- activeOnClose
-
- ViewMenu
- menuContribution:menu
-
-
-
-
-
- toolbarSeparator
-
-
-
- Draggable
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- toolbarSeparator
-
-
-
- Draggable
-
-
-
-
-
-
- Draggable
-
-
-
-
-
- Draggable
-
-
-
-
-
-
- Draggable
-
-
-
-
- Draggable
-
-
-
-
- toolbarSeparator
-
-
-
- Draggable
-
-
-
-
-
-
-
-
-
-
-
- toolbarSeparator
-
-
-
- toolbarSeparator
-
-
-
- Draggable
-
-
-
-
- stretch
-
-
- glue
-
-
-
- glue
-
-
- Draggable
-
-
-
-
- stretch
-
-
-
- Draggable
-
-
-
-
- TrimStack
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- locale:zh
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- locale:zh
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- locale:zh
-
-
-
-
- locale:zh
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- platform:win32
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Editor
-
-
- View
- categoryTag:Ant
-
-
- View
- categoryTag:Data Management
-
-
- View
- categoryTag:Data Management
-
-
- View
- categoryTag:Data Management
-
-
- View
- categoryTag:Debug
-
-
- View
- categoryTag:Debug
-
-
- View
- categoryTag:Debug
-
-
- View
- categoryTag:Debug
-
-
- View
- categoryTag:Debug
-
-
- View
- categoryTag:Debug
-
-
- View
- categoryTag:Debug
-
-
- View
- categoryTag:Git
-
-
- View
- categoryTag:Git
-
-
- View
- categoryTag:Git
-
-
- View
- categoryTag:Git
-
-
- View
- categoryTag:General
-
-
- View
- categoryTag:Help
-
-
- View
- categoryTag:Debug
-
-
- View
- categoryTag:Java
-
-
- View
- categoryTag:Java
-
-
- View
- categoryTag:Java
-
-
- View
- categoryTag:Java Browsing
-
-
- View
- categoryTag:Java Browsing
-
-
- View
- categoryTag:Java Browsing
-
-
- View
- categoryTag:Java Browsing
-
-
- View
- categoryTag:Java
-
-
- View
- categoryTag:General
-
-
- View
- categoryTag:Java
-
-
- View
- categoryTag:Java
-
-
- View
- categoryTag:JPA
-
-
- View
- categoryTag:JPA
-
-
- View
- categoryTag:JavaServer Faces
-
-
- View
- categoryTag:JavaServer Faces
-
-
- View
- categoryTag:Web Services
-
-
- View
- categoryTag:Maven
-
-
- View
- categoryTag:Maven
-
-
- View
- categoryTag:Mylyn
-
-
- View
- categoryTag:Mylyn
-
-
- View
- categoryTag:Mylyn
-
-
- View
- categoryTag:API Tools
-
-
- View
- categoryTag:Plug-in Development
-
-
- View
- categoryTag:Plug-in Development
-
-
- View
- categoryTag:Plug-in Development
-
-
- View
- categoryTag:Plug-in Development
-
-
- View
- categoryTag:Plug-in Development
-
-
- View
- categoryTag:Remote Systems
-
-
- View
- categoryTag:Remote Systems
-
-
- View
- categoryTag:Remote Systems
-
-
- View
- categoryTag:Remote Systems
-
-
- View
- categoryTag:Remote Systems
-
-
- View
- categoryTag:Remote Systems
-
-
- View
- categoryTag:Remote Systems
-
-
- View
- categoryTag:Remote Systems
-
-
- View
- categoryTag:General
-
-
- View
- categoryTag:General
-
-
- View
- categoryTag:CVS
-
-
- View
- categoryTag:CVS
-
-
- View
- categoryTag:Team
-
-
- View
- categoryTag:Team
-
-
- View
- categoryTag:Terminal
-
-
- View
- categoryTag:General
-
-
- View
- categoryTag:General
-
-
- View
- categoryTag:Help
-
-
- View
- categoryTag:General
-
-
- View
- categoryTag:General
-
-
- View
- categoryTag:General
-
-
- View
- categoryTag:General
-
-
- View
- categoryTag:General
-
-
- View
- categoryTag:General
-
-
- View
- categoryTag:General
-
-
- View
- categoryTag:General
-
-
- View
- categoryTag:General
-
-
- View
- categoryTag:General
-
-
- View
- categoryTag:General
-
-
- View
- categoryTag:General
-
-
- View
- categoryTag:Debug
-
-
- View
- categoryTag:JavaScript
-
-
- View
- categoryTag:JavaScript
-
-
- View
- categoryTag:JavaScript
-
-
- View
- categoryTag:JavaScript
-
-
- View
- categoryTag:JavaScript
-
-
- View
- categoryTag:Server
-
-
- View
- categoryTag:XML
-
-
- View
- categoryTag:XML
-
-
- View
- categoryTag:XML
-
-
- View
- categoryTag:XML
-
-
- View
- categoryTag:XML
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/.metadata/.plugins/org.eclipse.jdt.core/invalidArchivesCache b/.metadata/.plugins/org.eclipse.jdt.core/invalidArchivesCache
deleted file mode 100644
index 593f4708db84ac8fd0f5cc47c634f38c013fe9e4..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001
literal 4
LcmZQzU|;|M00aO5
diff --git a/.metadata/.plugins/org.eclipse.jdt.core/nonChainingJarsCache b/.metadata/.plugins/org.eclipse.jdt.core/nonChainingJarsCache
deleted file mode 100644
index 593f4708db84ac8fd0f5cc47c634f38c013fe9e4..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001
literal 4
LcmZQzU|;|M00aO5
diff --git a/.metadata/.plugins/org.eclipse.jdt.core/variablesAndContainers.dat b/.metadata/.plugins/org.eclipse.jdt.core/variablesAndContainers.dat
deleted file mode 100644
index 3de398e8f2856ff30f4c5dd9cf8cfd66b137fcc8..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001
literal 129
zcmX|&TMB?66hudR2o)`+B_tP8G)3*({qG_l;QblSnYjQs`iT}o2g*j>tPn$^7-S`m
py>^9ybE%pMoBm#v^5ZO3G2cM$*bk0n6(Ils
diff --git a/.metadata/.plugins/org.eclipse.jdt.ui/OpenTypeHistory.xml b/.metadata/.plugins/org.eclipse.jdt.ui/OpenTypeHistory.xml
deleted file mode 100644
index 6cd95629..00000000
--- a/.metadata/.plugins/org.eclipse.jdt.ui/OpenTypeHistory.xml
+++ /dev/null
@@ -1,2 +0,0 @@
-
-
diff --git a/.metadata/.plugins/org.eclipse.jdt.ui/QualifiedTypeNameHistory.xml b/.metadata/.plugins/org.eclipse.jdt.ui/QualifiedTypeNameHistory.xml
deleted file mode 100644
index 8c365b72..00000000
--- a/.metadata/.plugins/org.eclipse.jdt.ui/QualifiedTypeNameHistory.xml
+++ /dev/null
@@ -1,2 +0,0 @@
-
-
diff --git a/.metadata/.plugins/org.eclipse.jdt.ui/dialog_settings.xml b/.metadata/.plugins/org.eclipse.jdt.ui/dialog_settings.xml
deleted file mode 100644
index 528dc13a..00000000
--- a/.metadata/.plugins/org.eclipse.jdt.ui/dialog_settings.xml
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
diff --git a/.metadata/.plugins/org.eclipse.m2e.logback.configuration/0.log b/.metadata/.plugins/org.eclipse.m2e.logback.configuration/0.log
deleted file mode 100644
index e69de29b..00000000
diff --git a/.metadata/.plugins/org.eclipse.m2e.logback.configuration/logback.1.4.0.20130601-0317.xml b/.metadata/.plugins/org.eclipse.m2e.logback.configuration/logback.1.4.0.20130601-0317.xml
deleted file mode 100644
index d21ad94e..00000000
--- a/.metadata/.plugins/org.eclipse.m2e.logback.configuration/logback.1.4.0.20130601-0317.xml
+++ /dev/null
@@ -1,41 +0,0 @@
-
-
-
- %date [%thread] %-5level %logger{35} - %msg%n
-
-
-
-
-
- ${org.eclipse.m2e.log.dir}/0.log
-
- ${org.eclipse.m2e.log.dir}/%i.log
- 1
- 10
-
-
- 100MB
-
-
- %date [%thread] %-5level %logger{35} - %msg%n
-
-
-
-
-
- WARN
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/.metadata/.plugins/org.eclipse.rse.core/.log b/.metadata/.plugins/org.eclipse.rse.core/.log
deleted file mode 100644
index e69de29b..00000000
diff --git a/.metadata/.plugins/org.eclipse.rse.core/initializerMarks/org.eclipse.rse.internal.core.RSELocalConnectionInitializer.mark b/.metadata/.plugins/org.eclipse.rse.core/initializerMarks/org.eclipse.rse.internal.core.RSELocalConnectionInitializer.mark
deleted file mode 100644
index e69de29b..00000000
diff --git a/.metadata/.plugins/org.eclipse.rse.core/profiles/PRF.desktop-65kj4bv_32539/FP.local.files_0/node.properties b/.metadata/.plugins/org.eclipse.rse.core/profiles/PRF.desktop-65kj4bv_32539/FP.local.files_0/node.properties
deleted file mode 100644
index 661ad5cb..00000000
--- a/.metadata/.plugins/org.eclipse.rse.core/profiles/PRF.desktop-65kj4bv_32539/FP.local.files_0/node.properties
+++ /dev/null
@@ -1,57 +0,0 @@
-# RSE DOM Node
-00-name=DESKTOP-65KJ4BV\:local.files
-01-type=FilterPool
-03-attr.default=true
-03-attr.deletable=true
-03-attr.id=local.files
-03-attr.nonRenamable=false
-03-attr.owningParentName=null
-03-attr.release=200
-03-attr.singleFilterStringOnly=false
-03-attr.singleFilterStringOnlyESet=false
-03-attr.stringsCaseSensitive=true
-03-attr.supportsDuplicateFilterStrings=false
-03-attr.supportsNestedFilters=true
-03-attr.type=default
-06-child.00000.00-name=My Home
-06-child.00000.01-type=Filter
-06-child.00000.03-attr.default=false
-06-child.00000.03-attr.filterType=default
-06-child.00000.03-attr.id=My Home
-06-child.00000.03-attr.nonChangable=false
-06-child.00000.03-attr.nonDeletable=false
-06-child.00000.03-attr.nonRenamable=false
-06-child.00000.03-attr.promptable=false
-06-child.00000.03-attr.relativeOrder=0
-06-child.00000.03-attr.release=200
-06-child.00000.03-attr.singleFilterStringOnly=false
-06-child.00000.03-attr.stringsCaseSensitive=false
-06-child.00000.03-attr.stringsNonChangable=false
-06-child.00000.03-attr.supportsDuplicateFilterStrings=false
-06-child.00000.03-attr.supportsNestedFilters=true
-06-child.00000.06-child.00000.00-name=C\:\\Users\\wuming\\*
-06-child.00000.06-child.00000.01-type=FilterString
-06-child.00000.06-child.00000.03-attr.default=false
-06-child.00000.06-child.00000.03-attr.string=C\:\\Users\\wuming\\*
-06-child.00000.06-child.00000.03-attr.type=default
-06-child.00001.00-name=Drives
-06-child.00001.01-type=Filter
-06-child.00001.03-attr.default=false
-06-child.00001.03-attr.filterType=default
-06-child.00001.03-attr.id=Drives
-06-child.00001.03-attr.nonChangable=false
-06-child.00001.03-attr.nonDeletable=false
-06-child.00001.03-attr.nonRenamable=false
-06-child.00001.03-attr.promptable=false
-06-child.00001.03-attr.relativeOrder=0
-06-child.00001.03-attr.release=200
-06-child.00001.03-attr.singleFilterStringOnly=false
-06-child.00001.03-attr.stringsCaseSensitive=false
-06-child.00001.03-attr.stringsNonChangable=false
-06-child.00001.03-attr.supportsDuplicateFilterStrings=false
-06-child.00001.03-attr.supportsNestedFilters=true
-06-child.00001.06-child.00000.00-name=*
-06-child.00001.06-child.00000.01-type=FilterString
-06-child.00001.06-child.00000.03-attr.default=false
-06-child.00001.06-child.00000.03-attr.string=*
-06-child.00001.06-child.00000.03-attr.type=default
diff --git a/.metadata/.plugins/org.eclipse.rse.core/profiles/PRF.desktop-65kj4bv_32539/H.local_16/node.properties b/.metadata/.plugins/org.eclipse.rse.core/profiles/PRF.desktop-65kj4bv_32539/H.local_16/node.properties
deleted file mode 100644
index 2f742f51..00000000
--- a/.metadata/.plugins/org.eclipse.rse.core/profiles/PRF.desktop-65kj4bv_32539/H.local_16/node.properties
+++ /dev/null
@@ -1,25 +0,0 @@
-# RSE DOM Node
-00-name=Local
-01-type=Host
-03-attr.description=
-03-attr.hostname=LOCALHOST
-03-attr.offline=false
-03-attr.promptable=false
-03-attr.systemType=org.eclipse.rse.systemtype.local
-03-attr.type=Local
-06-child.00000.00-name=Local Connector Service
-06-child.00000.01-type=ConnectorService
-06-child.00000.03-attr.group=Local Connector Service
-06-child.00000.03-attr.port=0
-06-child.00000.03-attr.useSSL=false
-06-child.00000.06-child.00000.00-name=Local Files
-06-child.00000.06-child.00000.01-type=SubSystem
-06-child.00000.06-child.00000.03-attr.hidden=false
-06-child.00000.06-child.00000.03-attr.type=local.files
-06-child.00000.06-child.00000.06-child.00000.00-name=DESKTOP-65KJ4BV___DESKTOP-65KJ4BV\:local.files
-06-child.00000.06-child.00000.06-child.00000.01-type=FilterPoolReference
-06-child.00000.06-child.00000.06-child.00000.03-attr.refID=local.files
-06-child.00000.06-child.00001.00-name=Local Shells
-06-child.00000.06-child.00001.01-type=SubSystem
-06-child.00000.06-child.00001.03-attr.hidden=false
-06-child.00000.06-child.00001.03-attr.type=local.shells
diff --git a/.metadata/.plugins/org.eclipse.rse.core/profiles/PRF.desktop-65kj4bv_32539/node.properties b/.metadata/.plugins/org.eclipse.rse.core/profiles/PRF.desktop-65kj4bv_32539/node.properties
deleted file mode 100644
index 53c9f43d..00000000
--- a/.metadata/.plugins/org.eclipse.rse.core/profiles/PRF.desktop-65kj4bv_32539/node.properties
+++ /dev/null
@@ -1,7 +0,0 @@
-# RSE DOM Node
-00-name=DESKTOP-65KJ4BV
-01-type=Profile
-03-attr.defaultPrivate=true
-03-attr.isActive=true
-05-ref.00000=FP.local.files_0
-05-ref.00001=H.local_16
diff --git a/.metadata/.plugins/org.eclipse.rse.ui/.log b/.metadata/.plugins/org.eclipse.rse.ui/.log
deleted file mode 100644
index e69de29b..00000000
diff --git a/.metadata/.plugins/org.eclipse.ui.workbench/dialog_settings.xml b/.metadata/.plugins/org.eclipse.ui.workbench/dialog_settings.xml
deleted file mode 100644
index d4cd801d..00000000
--- a/.metadata/.plugins/org.eclipse.ui.workbench/dialog_settings.xml
+++ /dev/null
@@ -1,28 +0,0 @@
-
-
diff --git a/.metadata/.plugins/org.eclipse.wst.common.snippets/hidden.xml b/.metadata/.plugins/org.eclipse.wst.common.snippets/hidden.xml
deleted file mode 100644
index ab946b83f7b748424b8707693bcfdfa71590470b..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001
literal 138
zcmXAiK?;LF5CrQi_y^g05_8E(&CM4i50LDV1l9?-67qVrvobI
diff --git a/.metadata/.plugins/org.eclipse.wst.common.snippets/user.xml b/.metadata/.plugins/org.eclipse.wst.common.snippets/user.xml
deleted file mode 100644
index 77a5127fd1899f2f420380c05d9e59660ab1806d..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001
literal 464
zcmb7=&5FW65QOWz;5!753&vk02i?8-1nYSb9c3iO;Hc=!yMEmfFY84DQyQcE8wCOAKQ8bP0(3T52)<%bEUS1UwX~_nX^we~G4ge~QQoO|F|1F)|l
U=KvgmL(YO%cAp7$arYv_J94H=ng9R*
diff --git a/.metadata/version.ini b/.metadata/version.ini
deleted file mode 100644
index c51ff745..00000000
--- a/.metadata/version.ini
+++ /dev/null
@@ -1 +0,0 @@
-org.eclipse.core.runtime=1
\ No newline at end of file
diff --git a/.project b/.project
deleted file mode 100644
index c9ff485b..00000000
--- a/.project
+++ /dev/null
@@ -1,41 +0,0 @@
-
-
- data_manager_backend
-
-
-
-
-
- org.eclipse.wst.jsdt.core.javascriptValidator
-
-
-
-
- org.eclipse.jdt.core.javabuilder
-
-
-
-
- org.eclipse.wst.common.project.facet.core.builder
-
-
-
-
- org.eclipse.wst.validation.validationbuilder
-
-
-
-
- com.genuitec.eclipse.ast.deploy.core.DeploymentBuilder
-
-
-
-
-
- org.eclipse.jem.workbench.JavaEMFNature
- org.eclipse.wst.common.modulecore.ModuleCoreNature
- org.eclipse.wst.common.project.facet.core.nature
- org.eclipse.jdt.core.javanature
- org.eclipse.wst.jsdt.core.jsNature
-
-
diff --git a/.settings/.jsdtscope b/.settings/.jsdtscope
deleted file mode 100644
index 887f573a..00000000
--- a/.settings/.jsdtscope
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/.settings/com.genuitec.eclipse.migration.prefs b/.settings/com.genuitec.eclipse.migration.prefs
deleted file mode 100644
index 3fcb66e5..00000000
--- a/.settings/com.genuitec.eclipse.migration.prefs
+++ /dev/null
@@ -1,3 +0,0 @@
-eclipse.preferences.version=1
-performed.operation.correct.unbound.jre=1.0
-performed.operation.resolve.unknown.runtime=1.0
diff --git a/.settings/org.eclipse.core.resources.prefs b/.settings/org.eclipse.core.resources.prefs
deleted file mode 100644
index fad78458..00000000
--- a/.settings/org.eclipse.core.resources.prefs
+++ /dev/null
@@ -1,10 +0,0 @@
-eclipse.preferences.version=1
-encoding//WebContent/WEB-INF/config/config.properties=UTF-8
-<<<<<<< HEAD
-encoding//src/com/platform/controller/DataModelController.java=UTF-8
-encoding/=UTF-8
-=======
-encoding//src/com/platform/utils/GanymedSSH.java=UTF-8
-encoding/=UTF-8
-separateDerivedEncodings=true
->>>>>>> ef099fd1aed73bcc4ef4c8d62aaba6cc6ec2dabf
diff --git a/.settings/org.eclipse.jdt.core.prefs b/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index 8ae60c4b..00000000
--- a/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,101 +0,0 @@
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.annotation.inheritNullAnnotations=disabled
-org.eclipse.jdt.core.compiler.annotation.missingNonNullByDefaultAnnotation=ignore
-org.eclipse.jdt.core.compiler.annotation.nonnull=org.eclipse.jdt.annotation.NonNull
-org.eclipse.jdt.core.compiler.annotation.nonnullbydefault=org.eclipse.jdt.annotation.NonNullByDefault
-org.eclipse.jdt.core.compiler.annotation.nullable=org.eclipse.jdt.annotation.Nullable
-org.eclipse.jdt.core.compiler.annotation.nullanalysis=disabled
-org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
-org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
-org.eclipse.jdt.core.compiler.compliance=1.7
-org.eclipse.jdt.core.compiler.debug.lineNumber=generate
-org.eclipse.jdt.core.compiler.debug.localVariable=generate
-org.eclipse.jdt.core.compiler.debug.sourceFile=generate
-org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.autoboxing=ignore
-org.eclipse.jdt.core.compiler.problem.comparingIdentical=warning
-org.eclipse.jdt.core.compiler.problem.deadCode=warning
-org.eclipse.jdt.core.compiler.problem.deprecation=warning
-org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=disabled
-org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=disabled
-org.eclipse.jdt.core.compiler.problem.discouragedReference=warning
-org.eclipse.jdt.core.compiler.problem.emptyStatement=ignore
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.problem.explicitlyClosedAutoCloseable=ignore
-org.eclipse.jdt.core.compiler.problem.fallthroughCase=ignore
-org.eclipse.jdt.core.compiler.problem.fatalOptionalError=disabled
-org.eclipse.jdt.core.compiler.problem.fieldHiding=ignore
-org.eclipse.jdt.core.compiler.problem.finalParameterBound=warning
-org.eclipse.jdt.core.compiler.problem.finallyBlockNotCompletingNormally=warning
-org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
-org.eclipse.jdt.core.compiler.problem.hiddenCatchBlock=warning
-org.eclipse.jdt.core.compiler.problem.includeNullInfoFromAsserts=disabled
-org.eclipse.jdt.core.compiler.problem.incompatibleNonInheritedInterfaceMethod=warning
-org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=warning
-org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=ignore
-org.eclipse.jdt.core.compiler.problem.localVariableHiding=ignore
-org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=warning
-org.eclipse.jdt.core.compiler.problem.missingDefaultCase=ignore
-org.eclipse.jdt.core.compiler.problem.missingDeprecatedAnnotation=ignore
-org.eclipse.jdt.core.compiler.problem.missingEnumCaseDespiteDefault=disabled
-org.eclipse.jdt.core.compiler.problem.missingHashCodeMethod=ignore
-org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=ignore
-org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotationForInterfaceMethodImplementation=enabled
-org.eclipse.jdt.core.compiler.problem.missingSerialVersion=warning
-org.eclipse.jdt.core.compiler.problem.missingSynchronizedOnInheritedMethod=ignore
-org.eclipse.jdt.core.compiler.problem.noEffectAssignment=warning
-org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=warning
-org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=ignore
-org.eclipse.jdt.core.compiler.problem.nonnullParameterAnnotationDropped=warning
-org.eclipse.jdt.core.compiler.problem.nullAnnotationInferenceConflict=error
-org.eclipse.jdt.core.compiler.problem.nullReference=warning
-org.eclipse.jdt.core.compiler.problem.nullSpecViolation=error
-org.eclipse.jdt.core.compiler.problem.nullUncheckedConversion=warning
-org.eclipse.jdt.core.compiler.problem.overridingPackageDefaultMethod=warning
-org.eclipse.jdt.core.compiler.problem.parameterAssignment=ignore
-org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=ignore
-org.eclipse.jdt.core.compiler.problem.potentialNullReference=ignore
-org.eclipse.jdt.core.compiler.problem.potentiallyUnclosedCloseable=ignore
-org.eclipse.jdt.core.compiler.problem.rawTypeReference=warning
-org.eclipse.jdt.core.compiler.problem.redundantNullAnnotation=warning
-org.eclipse.jdt.core.compiler.problem.redundantNullCheck=ignore
-org.eclipse.jdt.core.compiler.problem.redundantSpecificationOfTypeArguments=ignore
-org.eclipse.jdt.core.compiler.problem.redundantSuperinterface=ignore
-org.eclipse.jdt.core.compiler.problem.reportMethodCanBePotentiallyStatic=ignore
-org.eclipse.jdt.core.compiler.problem.reportMethodCanBeStatic=ignore
-org.eclipse.jdt.core.compiler.problem.specialParameterHidingField=disabled
-org.eclipse.jdt.core.compiler.problem.staticAccessReceiver=warning
-org.eclipse.jdt.core.compiler.problem.suppressOptionalErrors=disabled
-org.eclipse.jdt.core.compiler.problem.suppressWarnings=enabled
-org.eclipse.jdt.core.compiler.problem.syntacticNullAnalysisForFields=disabled
-org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=ignore
-org.eclipse.jdt.core.compiler.problem.typeParameterHiding=warning
-org.eclipse.jdt.core.compiler.problem.unavoidableGenericTypeProblems=enabled
-org.eclipse.jdt.core.compiler.problem.uncheckedTypeOperation=warning
-org.eclipse.jdt.core.compiler.problem.unclosedCloseable=warning
-org.eclipse.jdt.core.compiler.problem.undocumentedEmptyBlock=ignore
-org.eclipse.jdt.core.compiler.problem.unhandledWarningToken=warning
-org.eclipse.jdt.core.compiler.problem.unnecessaryElse=ignore
-org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=ignore
-org.eclipse.jdt.core.compiler.problem.unqualifiedFieldAccess=ignore
-org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=ignore
-org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionExemptExceptionAndThrowable=enabled
-org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionIncludeDocCommentReference=enabled
-org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverriding=disabled
-org.eclipse.jdt.core.compiler.problem.unusedExceptionParameter=ignore
-org.eclipse.jdt.core.compiler.problem.unusedImport=warning
-org.eclipse.jdt.core.compiler.problem.unusedLabel=warning
-org.eclipse.jdt.core.compiler.problem.unusedLocal=warning
-org.eclipse.jdt.core.compiler.problem.unusedObjectAllocation=ignore
-org.eclipse.jdt.core.compiler.problem.unusedParameter=ignore
-org.eclipse.jdt.core.compiler.problem.unusedParameterIncludeDocCommentReference=enabled
-org.eclipse.jdt.core.compiler.problem.unusedParameterWhenImplementingAbstract=disabled
-org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disabled
-org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=warning
-org.eclipse.jdt.core.compiler.problem.unusedTypeParameter=ignore
-org.eclipse.jdt.core.compiler.problem.unusedWarningToken=warning
-org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning
-org.eclipse.jdt.core.compiler.source=1.7
diff --git a/.settings/org.eclipse.jpt.core.prefs b/.settings/org.eclipse.jpt.core.prefs
deleted file mode 100644
index 47e8f864..00000000
--- a/.settings/org.eclipse.jpt.core.prefs
+++ /dev/null
@@ -1,3 +0,0 @@
-eclipse.preferences.version=1
-org.eclipse.jpt.core.platform=generic2_1
-org.eclipse.jpt.jpa.core.discoverAnnotatedClasses=false
diff --git a/.settings/org.eclipse.m2e.core.prefs b/.settings/org.eclipse.m2e.core.prefs
deleted file mode 100644
index 14b697b7..00000000
--- a/.settings/org.eclipse.m2e.core.prefs
+++ /dev/null
@@ -1,4 +0,0 @@
-activeProfiles=
-eclipse.preferences.version=1
-resolveWorkspaceProjects=true
-version=1
diff --git a/.settings/org.eclipse.wst.common.component b/.settings/org.eclipse.wst.common.component
deleted file mode 100644
index 5f5eeeca..00000000
--- a/.settings/org.eclipse.wst.common.component
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
-
-
-
-
-
-
diff --git a/.settings/org.eclipse.wst.common.project.facet.core.prefs.xml b/.settings/org.eclipse.wst.common.project.facet.core.prefs.xml
deleted file mode 100644
index c8ec2a65..00000000
--- a/.settings/org.eclipse.wst.common.project.facet.core.prefs.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
-
-
-
-
diff --git a/.settings/org.eclipse.wst.common.project.facet.core.xml b/.settings/org.eclipse.wst.common.project.facet.core.xml
deleted file mode 100644
index 011d2b86..00000000
--- a/.settings/org.eclipse.wst.common.project.facet.core.xml
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
diff --git a/.settings/org.eclipse.wst.jsdt.ui.superType.container b/.settings/org.eclipse.wst.jsdt.ui.superType.container
deleted file mode 100644
index 3bd5d0a4..00000000
--- a/.settings/org.eclipse.wst.jsdt.ui.superType.container
+++ /dev/null
@@ -1 +0,0 @@
-org.eclipse.wst.jsdt.launching.baseBrowserLibrary
\ No newline at end of file
diff --git a/.settings/org.eclipse.wst.jsdt.ui.superType.name b/.settings/org.eclipse.wst.jsdt.ui.superType.name
deleted file mode 100644
index 05bd71b6..00000000
--- a/.settings/org.eclipse.wst.jsdt.ui.superType.name
+++ /dev/null
@@ -1 +0,0 @@
-Window
\ No newline at end of file
diff --git a/RemoteSystemsTempFiles/.project b/RemoteSystemsTempFiles/.project
deleted file mode 100644
index 76756293..00000000
--- a/RemoteSystemsTempFiles/.project
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
- RemoteSystemsTempFiles
-
-
-
-
-
-
- org.eclipse.rse.ui.remoteSystemsTempNature
-
-
diff --git a/WebContent/META-INF/MANIFEST.MF b/WebContent/META-INF/MANIFEST.MF
index 5e949512..254272e1 100644
--- a/WebContent/META-INF/MANIFEST.MF
+++ b/WebContent/META-INF/MANIFEST.MF
@@ -1,3 +1,3 @@
-Manifest-Version: 1.0
-Class-Path:
-
+Manifest-Version: 1.0
+Class-Path:
+
diff --git a/WebContent/WEB-INF/config/config.properties b/WebContent/WEB-INF/config/config.properties
index 04910986..050f4bfa 100644
--- a/WebContent/WEB-INF/config/config.properties
+++ b/WebContent/WEB-INF/config/config.properties
@@ -1,50 +1,50 @@
-#=============================================================================================================
-# MySQL
-#=============================================================================================================
-# 驱动程序
-jdbc.mysql.driver=com.mysql.jdbc.Driver
-# 连接url
-jdbc.mysql.url=jdbc:mysql://192.168.0.101:3306/test?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true
-# 用户名
-jdbc.mysql.username=root
-# 密码
-jdbc.mysql.password=root
-
-#=============================================================================================================
-# Oracle 连接配置
-#=============================================================================================================
-# hui用户名
-gather-user-name=system
-# 密码
-gather-user-password=oracle
-#
-gather-port=1521
-#
-gather-service-name=orcl
-#=============================================================================================================
-# 数据库公共配置
-#=============================================================================================================
-jdbc.initialSize=5
-jdbc.minIdle=5
-jdbc.maxIdle=20
-jdbc.maxActive=100
-jdbc.maxWait=100000
-jdbc.defaultAutoCommit=false
-jdbc.removeAbandoned=true
-jdbc.removeAbandonedTimeout=600
-jdbc.testWhileIdle=true
-jdbc.timeBetweenEvictionRunsMillis=60000
-jdbc.numTestsPerEvictionRun=20
-jdbc.minEvictableIdleTimeMillis=300000
-#==============================================================================================================
-#
-#==============================================================================================================
-table-suffix=_20152016
-extract-log-localtion=/home/log/
-gather-tablespace-name=TS_TTSSS
-gather-tablespace-path=
-gather-table-user-password=
-kubeMasterUrl=http://192.168.0.110:8080/
-collect-user-name=system
-collect-password=oracle
-collect-service-name=orcl
+#=============================================================================================================
+# MySQL
+#=============================================================================================================
+# 驱动程序
+jdbc.mysql.driver=com.mysql.jdbc.Driver
+# 连接url
+jdbc.mysql.url=jdbc:mysql://192.168.0.101:3306/test?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true
+# 用户名
+jdbc.mysql.username=root
+# 密码
+jdbc.mysql.password=root
+
+#=============================================================================================================
+# Oracle 连接配置
+#=============================================================================================================
+# hui用户名
+gather-user-name=system
+# 密码
+gather-user-password=oracle
+#
+gather-port=1521
+#
+gather-service-name=orcl
+#=============================================================================================================
+# 数据库公共配置
+#=============================================================================================================
+jdbc.initialSize=5
+jdbc.minIdle=5
+jdbc.maxIdle=20
+jdbc.maxActive=100
+jdbc.maxWait=100000
+jdbc.defaultAutoCommit=false
+jdbc.removeAbandoned=true
+jdbc.removeAbandonedTimeout=600
+jdbc.testWhileIdle=true
+jdbc.timeBetweenEvictionRunsMillis=60000
+jdbc.numTestsPerEvictionRun=20
+jdbc.minEvictableIdleTimeMillis=300000
+#==============================================================================================================
+#
+#==============================================================================================================
+table-suffix=_20152016
+extract-log-localtion=/home/log/
+gather-tablespace-name=TS_TTSSS
+gather-tablespace-path=
+gather-table-user-password=
+kubeMasterUrl=http://192.168.0.110:8080/
+collect-user-name=system
+collect-password=oracle
+collect-service-name=orcl
diff --git a/WebContent/WEB-INF/config/getTreedata.sh b/WebContent/WEB-INF/config/getTreedata.sh
index 0e24ad6c..d486a449 100644
--- a/WebContent/WEB-INF/config/getTreedata.sh
+++ b/WebContent/WEB-INF/config/getTreedata.sh
@@ -1,17 +1,17 @@
-#!/bin/bash
-function ergodic(){
- for file in `ls $1`
- do
- if [ "$file" != "app" -a -d $1"/"$file ]
- then
- ergodic $1"/"$file
- else
- local path=$1"/"$file
- echo $path
- fi
- done
-}
-
-IFS=$'\n' #这个必须要,否则会在文件名中有空格时出错
-INIT_PATH=".";
+#!/bin/bash
+function ergodic(){
+ for file in `ls $1`
+ do
+ if [ "$file" != "app" -a -d $1"/"$file ]
+ then
+ ergodic $1"/"$file
+ else
+ local path=$1"/"$file
+ echo $path
+ fi
+ done
+}
+
+IFS=$'\n' #这个必须要,否则会在文件名中有空格时出错
+INIT_PATH=".";
ergodic $1
\ No newline at end of file
diff --git a/WebContent/WEB-INF/config/log4j-config.xml b/WebContent/WEB-INF/config/log4j-config.xml
index 55b0cb0f..d02e5918 100644
--- a/WebContent/WEB-INF/config/log4j-config.xml
+++ b/WebContent/WEB-INF/config/log4j-config.xml
@@ -1,68 +1,68 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/WebContent/WEB-INF/config/mybatis-applicationConfig.xml b/WebContent/WEB-INF/config/mybatis-applicationConfig.xml
index 4bb8e731..d7bc4f95 100644
--- a/WebContent/WEB-INF/config/mybatis-applicationConfig.xml
+++ b/WebContent/WEB-INF/config/mybatis-applicationConfig.xml
@@ -1,22 +1,22 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/WebContent/WEB-INF/config/spring-applicationContext.xml b/WebContent/WEB-INF/config/spring-applicationContext.xml
index 024e203f..fc462369 100644
--- a/WebContent/WEB-INF/config/spring-applicationContext.xml
+++ b/WebContent/WEB-INF/config/spring-applicationContext.xml
@@ -1,93 +1,93 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/WebContent/WEB-INF/config/springmvc-applicationContext.xml b/WebContent/WEB-INF/config/springmvc-applicationContext.xml
index 2290481e..25517806 100644
--- a/WebContent/WEB-INF/config/springmvc-applicationContext.xml
+++ b/WebContent/WEB-INF/config/springmvc-applicationContext.xml
@@ -1,57 +1,57 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- application/json;charset=UTF-8
- text/html;charset=UTF-8
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ application/json;charset=UTF-8
+ text/html;charset=UTF-8
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/WebContent/WEB-INF/web.xml b/WebContent/WEB-INF/web.xml
index 2d425519..ce73380c 100644
--- a/WebContent/WEB-INF/web.xml
+++ b/WebContent/WEB-INF/web.xml
@@ -1,66 +1,66 @@
-
-
- javaBackend
-
- /index.html
-
-
-
- CharacterEncodingFilter
- org.springframework.web.filter.CharacterEncodingFilter
-
- encoding
- UTF-8
-
-
-
- CharacterEncodingFilter
- /
-
-
-
-
- contextConfigLocation
- WEB-INF/config/spring-applicationContext.xml
-
-
- org.springframework.web.context.ContextLoaderListener
-
-
-
- com.platform.utils.ConfigsLoader
-
-
-
-
- springmvc
- org.springframework.web.servlet.DispatcherServlet
-
- contextConfigLocation
- /WEB-INF/config/springmvc-applicationContext.xml
-
- 1
- true
-
-
- springmvc
- /
-
-
-
-
- log4jConfigLocation
- /WEB-INF/config/log4j-config.xml
-
-
- org.springframework.web.util.Log4jConfigListener
-
-
-
-
+
+
+ javaBackend
+
+ /index.html
+
+
+
+ CharacterEncodingFilter
+ org.springframework.web.filter.CharacterEncodingFilter
+
+ encoding
+ UTF-8
+
+
+
+ CharacterEncodingFilter
+ /
+
+
+
+
+ contextConfigLocation
+ WEB-INF/config/spring-applicationContext.xml
+
+
+ org.springframework.web.context.ContextLoaderListener
+
+
+
+ com.platform.utils.ConfigsLoader
+
+
+
+
+ springmvc
+ org.springframework.web.servlet.DispatcherServlet
+
+ contextConfigLocation
+ /WEB-INF/config/springmvc-applicationContext.xml
+
+ 1
+ true
+
+
+ springmvc
+ /
+
+
+
+
+ log4jConfigLocation
+ /WEB-INF/config/log4j-config.xml
+
+
+ org.springframework.web.util.Log4jConfigListener
+
+
+
+
\ No newline at end of file
diff --git a/src/META-INF/persistence.xml b/src/META-INF/persistence.xml
index 200e82f9..2ad4aeca 100644
--- a/src/META-INF/persistence.xml
+++ b/src/META-INF/persistence.xml
@@ -1,5 +1,5 @@
-
-
-
-
-
+
+
+
+
+
diff --git a/src/com/base/BaseController.java b/src/com/base/BaseController.java
index 8a98dcfd..64c66474 100644
--- a/src/com/base/BaseController.java
+++ b/src/com/base/BaseController.java
@@ -1,65 +1,65 @@
-
-/**
- * 文件名 : BaseController.java
- * 版权 : XX科技有限公司。
- * 描述 : <描述>
- * 修改时间:2016年9月7日
- * 修改内容:<修改内容>
- */
-package com.base;
-
-import java.util.HashMap;
-import java.util.Map;
-
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-
-import org.apache.log4j.Logger;
-import org.springframework.web.bind.annotation.ExceptionHandler;
-
-import com.platform.utils.Configs;
-
-/**
- * <一句话功能简述>
- * <功能详细描述>
- * @author chen
- * @version [版本号,2016年9月7日]
- * @see [相关类/方法]
- * @since [产品/模块版本]
- */
-public class BaseController {
-
- /** log4j */
- public static Logger log = Logger.getRootLogger();
-
- /**
- * <一句话功能简述> 基于@ExceptionHandler异常处理----全局异常处理
- * <功能详细描述>
- * @param request
- * @param ex 异常
- * @return
- * @see [类、类#方法、类#成员]
- */
- @ExceptionHandler
- public Object exp(HttpServletRequest request, HttpServletResponse response,Exception ex) {
- System.out.println("URI"+request.getRequestURI());
- request.setAttribute("ex", ex);
- System.err.println("BaseController --exp ");
- // 根据不同错误转向不同页面
- if(ex instanceof CustomException) {
- CustomException cuse = (CustomException) ex;
- Map errmsg = new HashMap<>();
- errmsg.put("code", cuse.getCode());
- errmsg.put("msg", cuse.getMsg());
- log.error(cuse.getCode());
- response.setStatus(500);
- return response;
- } else {
- //其他错误则 调到指定页面
- log.error(Configs.GLOBAL_EXP_NOT_CUSTOM, ex);
- response.setStatus(500);
- return response;
- }
- }
-
+
+/**
+ * 文件名 : BaseController.java
+ * 版权 : XX科技有限公司。
+ * 描述 : <描述>
+ * 修改时间:2016年9月7日
+ * 修改内容:<修改内容>
+ */
+package com.base;
+
+import java.util.HashMap;
+import java.util.Map;
+
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+import org.apache.log4j.Logger;
+import org.springframework.web.bind.annotation.ExceptionHandler;
+
+import com.platform.utils.Configs;
+
+/**
+ * <一句话功能简述>
+ * <功能详细描述>
+ * @author chen
+ * @version [版本号,2016年9月7日]
+ * @see [相关类/方法]
+ * @since [产品/模块版本]
+ */
+public class BaseController {
+
+ /** log4j */
+ public static Logger log = Logger.getRootLogger();
+
+ /**
+ * <一句话功能简述> 基于@ExceptionHandler异常处理----全局异常处理
+ * <功能详细描述>
+ * @param request
+ * @param ex 异常
+ * @return
+ * @see [类、类#方法、类#成员]
+ */
+ @ExceptionHandler
+ public Object exp(HttpServletRequest request, HttpServletResponse response,Exception ex) {
+ System.out.println("URI"+request.getRequestURI());
+ request.setAttribute("ex", ex);
+ System.err.println("BaseController --exp ");
+ // 根据不同错误转向不同页面
+ if(ex instanceof CustomException) {
+ CustomException cuse = (CustomException) ex;
+ Map errmsg = new HashMap<>();
+ errmsg.put("code", cuse.getCode());
+ errmsg.put("msg", cuse.getMsg());
+ log.error(cuse.getCode());
+ response.setStatus(500);
+ return response;
+ } else {
+ //其他错误则 调到指定页面
+ log.error(Configs.GLOBAL_EXP_NOT_CUSTOM, ex);
+ response.setStatus(500);
+ return response;
+ }
+ }
+
}
\ No newline at end of file
diff --git a/src/com/base/Constant.java b/src/com/base/Constant.java
index 3b1dcc59..4d336465 100644
--- a/src/com/base/Constant.java
+++ b/src/com/base/Constant.java
@@ -1,23 +1,23 @@
-package com.base;
-
-/**
- * <一句话功能简述>
- * <功能详细描述>
- * @author chen
- * @version [版本号,2016年9月8日]
- * @see [相关类/方法]
- * @since [产品/模块版本]
- */
-public class Constant {
-
- /** 国际话配置文件文件-i18n.properties */
- public static String I18N_PROPERTIES_FIEL_PATH = "/com/base/i18n.properties";
-
- /** WritefileThread-线程睡眠时间--3000 */
- public final static long THREAD_SLEEP_WRITEFILETHREAD = 3000;
-
- /** CustomException记录报异常的对象的对象个数--10 */
- public final static int CustomException_log_object_size = 10;
-
-
-}
+package com.base;
+
+/**
+ * <一句话功能简述>
+ * <功能详细描述>
+ * @author chen
+ * @version [版本号,2016年9月8日]
+ * @see [相关类/方法]
+ * @since [产品/模块版本]
+ */
+public class Constant {
+
+ /** 国际话配置文件文件-i18n.properties */
+ public static String I18N_PROPERTIES_FIEL_PATH = "/com/base/i18n.properties";
+
+ /** WritefileThread-线程睡眠时间--3000 */
+ public final static long THREAD_SLEEP_WRITEFILETHREAD = 3000;
+
+ /** CustomException记录报异常的对象的对象个数--10 */
+ public final static int CustomException_log_object_size = 10;
+
+
+}
diff --git a/src/com/base/Custom4exception.java b/src/com/base/Custom4exception.java
index 7a1ed58b..0ca8b567 100644
--- a/src/com/base/Custom4exception.java
+++ b/src/com/base/Custom4exception.java
@@ -1,29 +1,29 @@
-package com.base;
-
-/**
- * <一句话功能简述> 异常常量编码
- * <功能详细描述>
- * @author chen
- * @version [版本号,2016年9月8日]
- * @see [相关类/方法]
- * @since [产品/模块版本]
- */
-public class Custom4exception {
- //3003001001 : 第一位:标识异常, 第二到第四位:标识模块,第五道第七位:标识类别,第八道第十位标识具体异常
- /**eg
- * 3:异常
- * 003:虚拟机模块
- * 001:软件依赖虚拟机资源类别
- * 001:启动异常
- */
- /**
- * ThreadVolume类查询 volume异常
- */
- public final static String threadVolume_class_Except = "3001001001";
-
- /**
- * ThreadVolume类线程休眠异常
- */
- public final static String threadVolume_Thread_Except = "3001001002";
-
-}
+package com.base;
+
+/**
+ * <一句话功能简述> 异常常量编码
+ * <功能详细描述>
+ * @author chen
+ * @version [版本号,2016年9月8日]
+ * @see [相关类/方法]
+ * @since [产品/模块版本]
+ */
+public class Custom4exception {
+ //3003001001 : 第一位:标识异常, 第二到第四位:标识模块,第五道第七位:标识类别,第八道第十位标识具体异常
+ /**eg
+ * 3:异常
+ * 003:虚拟机模块
+ * 001:软件依赖虚拟机资源类别
+ * 001:启动异常
+ */
+ /**
+ * ThreadVolume类查询 volume异常
+ */
+ public final static String threadVolume_class_Except = "3001001001";
+
+ /**
+ * ThreadVolume类线程休眠异常
+ */
+ public final static String threadVolume_Thread_Except = "3001001002";
+
+}
diff --git a/src/com/base/CustomException.java b/src/com/base/CustomException.java
index 08b75248..9cf46a4a 100644
--- a/src/com/base/CustomException.java
+++ b/src/com/base/CustomException.java
@@ -1,127 +1,127 @@
-
-
-package com.base;
-
-import org.apache.log4j.Logger;
-
-/**
- * <一句话功能简述>
- * <功能详细描述>
- * @author chen
- * @version [版本号,2016年9月8日]
- * @see [相关类/方法]
- * @since [产品/模块版本]
- */
-@SuppressWarnings("serial")
-public class CustomException extends Exception {
-
- /** log4j */
- public static Logger log = Logger.getRootLogger();
-
- /** 自定义异常信息-错误信息 */
- private String msg;
-
- /** 自定义异常信息-错误代码 */
- private String code;
-
- /** 操作对象 */
- private Object[] objArray;
-
- /** 异常 */
- private Throwable cause;
-
- public CustomException() {
- super();
- }
-
- /**
- * @功能 将异常记录进文件
- * @param code 异常编码
- * @param msg 自定义异常信息
- * @param e
- * @param obj
- */
- public CustomException(String code,Exception e,Object... obj) {
- super(code);
- StringBuffer sbuf= new StringBuffer();
- sbuf.append(msg);
- this.code = code;
- sbuf.append(code);
- sbuf.append("\r\n");
- msg = Resource.getProperties().get(code);
- // 记录自定义的 异常
- if (null != msg) {
- sbuf.append(msg);
- sbuf.append("\r\n");
- }
- // 记录原始的异常
- if (null != e) {
- StackTraceElement[] array = e.getStackTrace();
- cause = e.getCause();
- for (StackTraceElement stackTraceElement : array) {
- sbuf.append(stackTraceElement.toString());
- sbuf.append("\r\n");
- }
- }
- //记录 出现异常时 当前的对象
- if (null != obj) {
- Object[] array = obj;
- sbuf.append("Object[] size : ");
- sbuf.append(array.length);
- int forSize = 0;
- if (Constant.CustomException_log_object_size < array.length) {
- forSize = Constant.CustomException_log_object_size;
- }
- else {
- forSize = array.length;
- }
- for (int i = 0; i < forSize; i++) {
- sbuf.append(array[i]);
- sbuf.append("\r\n");
- }
- sbuf.append("......");
- sbuf.append("\r\n");
- }
- else {
- sbuf.append("null");
- sbuf.append("\r\n");
- }
-
- sbuf.append("\r\n");
- // 是否 写入 文件
- log.error(sbuf.toString());
- }
-
- /**
- * @功能 获得msg
- * @return msg
- */
- public String getMsg() {
- return msg;
- }
-
-
- /**
- * @return the code
- */
- public String getCode() {
- return code;
- }
-
- /**
- * @功能 获得objArray
- * @return objArray
- */
- public Object[] getObjArray() {
- return objArray;
- }
-
- /**
- * @功能 获得cause
- * @return cause
- */
- public Throwable getCause() {
- return cause;
- }
-}
-
+
+
+package com.base;
+
+import org.apache.log4j.Logger;
+
+/**
+ * <一句话功能简述>
+ * <功能详细描述>
+ * @author chen
+ * @version [版本号,2016年9月8日]
+ * @see [相关类/方法]
+ * @since [产品/模块版本]
+ */
+@SuppressWarnings("serial")
+public class CustomException extends Exception {
+
+ /** log4j */
+ public static Logger log = Logger.getRootLogger();
+
+ /** 自定义异常信息-错误信息 */
+ private String msg;
+
+ /** 自定义异常信息-错误代码 */
+ private String code;
+
+ /** 操作对象 */
+ private Object[] objArray;
+
+ /** 异常 */
+ private Throwable cause;
+
+ public CustomException() {
+ super();
+ }
+
+ /**
+ * @功能 将异常记录进文件
+ * @param code 异常编码
+ * @param msg 自定义异常信息
+ * @param e
+ * @param obj
+ */
+ public CustomException(String code,Exception e,Object... obj) {
+ super(code);
+ StringBuffer sbuf= new StringBuffer();
+ sbuf.append(msg);
+ this.code = code;
+ sbuf.append(code);
+ sbuf.append("\r\n");
+ msg = Resource.getProperties().get(code);
+ // 记录自定义的 异常
+ if (null != msg) {
+ sbuf.append(msg);
+ sbuf.append("\r\n");
+ }
+ // 记录原始的异常
+ if (null != e) {
+ StackTraceElement[] array = e.getStackTrace();
+ cause = e.getCause();
+ for (StackTraceElement stackTraceElement : array) {
+ sbuf.append(stackTraceElement.toString());
+ sbuf.append("\r\n");
+ }
+ }
+ //记录 出现异常时 当前的对象
+ if (null != obj) {
+ Object[] array = obj;
+ sbuf.append("Object[] size : ");
+ sbuf.append(array.length);
+ int forSize = 0;
+ if (Constant.CustomException_log_object_size < array.length) {
+ forSize = Constant.CustomException_log_object_size;
+ }
+ else {
+ forSize = array.length;
+ }
+ for (int i = 0; i < forSize; i++) {
+ sbuf.append(array[i]);
+ sbuf.append("\r\n");
+ }
+ sbuf.append("......");
+ sbuf.append("\r\n");
+ }
+ else {
+ sbuf.append("null");
+ sbuf.append("\r\n");
+ }
+
+ sbuf.append("\r\n");
+ // 是否 写入 文件
+ log.error(sbuf.toString());
+ }
+
+ /**
+ * @功能 获得msg
+ * @return msg
+ */
+ public String getMsg() {
+ return msg;
+ }
+
+
+ /**
+ * @return the code
+ */
+ public String getCode() {
+ return code;
+ }
+
+ /**
+ * @功能 获得objArray
+ * @return objArray
+ */
+ public Object[] getObjArray() {
+ return objArray;
+ }
+
+ /**
+ * @功能 获得cause
+ * @return cause
+ */
+ public Throwable getCause() {
+ return cause;
+ }
+}
+
diff --git a/src/com/base/Resource.java b/src/com/base/Resource.java
index 5cd15923..0b900bfe 100644
--- a/src/com/base/Resource.java
+++ b/src/com/base/Resource.java
@@ -1,79 +1,79 @@
-package com.base;
-
-import java.io.BufferedInputStream;
-import java.io.BufferedReader;
-import java.io.FileInputStream;
-import java.io.IOException;
-import java.io.InputStreamReader;
-import java.util.HashMap;
-import java.util.Iterator;
-import java.util.Map;
-import java.util.Properties;
-
-import com.base.Constant;
-
-public class Resource {
-
- private static Map properties = new HashMap<>();
-
- static{
- // 读取 properties文件
-// readPropertiesFile(Constant.SYSTEM_PROPERTIES_FIEL_PATH);
- readPropertiesFile4Chinese(Constant.I18N_PROPERTIES_FIEL_PATH);
-
- }
-
- /**
- * @功能 读取配置(解决中文乱码)
- * @param filename "/com/utils/exception/i18n.properties" 的格式
- */
- public static void readPropertiesFile4Chinese(String filename) {
- Properties pro = new Properties();
- try {
- // 读取属性文件 XXXX.properties(Reader。writer解决中文乱码)
-// InputStreamReader in= new InputStreamReader(Resource.class.getClassLoader().getResourceAsStream(filename), "UTF-8");
- InputStreamReader in= new InputStreamReader(Resource.class.getResourceAsStream(filename), "UTF-8");
- BufferedReader bf = new BufferedReader(in);
- // InputStreamReader in = new BufferedInputStream(new FileInputStream(filename));
- pro.load(bf); // /加载属性列表
- Iterator it = pro.stringPropertyNames().iterator();
- while (it.hasNext()) {
- String key = it.next();
- properties.put(key, pro.getProperty(key));
- }
- in.close();
- } catch (IOException e) {
- e.printStackTrace();
- }
- }
-
- /**
- * @功能 获得properties
- * @return properties
- */
- public static Map getProperties() {
- return properties;
- }
-
- /**
- * @功能 读取配置
- * @param filename 文件绝对路径
- */
- public static void readPropertiesFile(String filename) {
- Properties pro = new Properties();
- try {
- // 读取属性文件 XXXX.properties( 中文会 乱码)
- BufferedInputStream bf = new BufferedInputStream(new FileInputStream(filename));
- pro.load(bf); // /加载属性列表
- Iterator it = pro.stringPropertyNames().iterator();
- while (it.hasNext()) {
- String key = it.next();
- properties.put(key, pro.getProperty(key));
- }
- bf.close();
- } catch (IOException e) {
- e.printStackTrace();
- }
- }
-
-}
+package com.base;
+
+import java.io.BufferedInputStream;
+import java.io.BufferedReader;
+import java.io.FileInputStream;
+import java.io.IOException;
+import java.io.InputStreamReader;
+import java.util.HashMap;
+import java.util.Iterator;
+import java.util.Map;
+import java.util.Properties;
+
+import com.base.Constant;
+
+public class Resource {
+
+ private static Map properties = new HashMap<>();
+
+ static{
+ // 读取 properties文件
+// readPropertiesFile(Constant.SYSTEM_PROPERTIES_FIEL_PATH);
+ readPropertiesFile4Chinese(Constant.I18N_PROPERTIES_FIEL_PATH);
+
+ }
+
+ /**
+ * @功能 读取配置(解决中文乱码)
+ * @param filename "/com/utils/exception/i18n.properties" 的格式
+ */
+ public static void readPropertiesFile4Chinese(String filename) {
+ Properties pro = new Properties();
+ try {
+ // 读取属性文件 XXXX.properties(Reader。writer解决中文乱码)
+// InputStreamReader in= new InputStreamReader(Resource.class.getClassLoader().getResourceAsStream(filename), "UTF-8");
+ InputStreamReader in= new InputStreamReader(Resource.class.getResourceAsStream(filename), "UTF-8");
+ BufferedReader bf = new BufferedReader(in);
+ // InputStreamReader in = new BufferedInputStream(new FileInputStream(filename));
+ pro.load(bf); // /加载属性列表
+ Iterator it = pro.stringPropertyNames().iterator();
+ while (it.hasNext()) {
+ String key = it.next();
+ properties.put(key, pro.getProperty(key));
+ }
+ in.close();
+ } catch (IOException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @功能 获得properties
+ * @return properties
+ */
+ public static Map getProperties() {
+ return properties;
+ }
+
+ /**
+ * @功能 读取配置
+ * @param filename 文件绝对路径
+ */
+ public static void readPropertiesFile(String filename) {
+ Properties pro = new Properties();
+ try {
+ // 读取属性文件 XXXX.properties( 中文会 乱码)
+ BufferedInputStream bf = new BufferedInputStream(new FileInputStream(filename));
+ pro.load(bf); // /加载属性列表
+ Iterator it = pro.stringPropertyNames().iterator();
+ while (it.hasNext()) {
+ String key = it.next();
+ properties.put(key, pro.getProperty(key));
+ }
+ bf.close();
+ } catch (IOException e) {
+ e.printStackTrace();
+ }
+ }
+
+}
diff --git a/src/com/dao/mapper/RegionalismMapper.xml b/src/com/dao/mapper/RegionalismMapper.xml
index ce2c48f5..9110649b 100644
--- a/src/com/dao/mapper/RegionalismMapper.xml
+++ b/src/com/dao/mapper/RegionalismMapper.xml
@@ -1,42 +1,42 @@
-
-
-
-
-
-
-
-
-
-
-
- code,city_name,district_name
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+ code,city_name,district_name
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/com/dao/mapper/SystemCodeMapper.xml b/src/com/dao/mapper/SystemCodeMapper.xml
index c23937dd..f835c99f 100644
--- a/src/com/dao/mapper/SystemCodeMapper.xml
+++ b/src/com/dao/mapper/SystemCodeMapper.xml
@@ -1,42 +1,42 @@
-
-
-
-
-
-
-
-
-
-
- code,system_name
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+ code,system_name
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/com/dao/mapper/config-details-mapper.xml b/src/com/dao/mapper/config-details-mapper.xml
index 3d1dba4d..439d4f98 100644
--- a/src/com/dao/mapper/config-details-mapper.xml
+++ b/src/com/dao/mapper/config-details-mapper.xml
@@ -1,146 +1,146 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- id id, service_port port, service_ip ip, service_name name, service_user user, service_password password, service_database databaseName, service_table tableName, service_suffix suffix, service_status status
-
-
-
-
-
- INSERT INTO
- services_info(
-
-
- service_port,
-
-
- service_ip,
-
-
- service_name,
-
-
- service_user,
-
-
- service_password,
-
-
- service_database,
-
-
- service_table,
-
-
- service_suffix,
-
-
- service_status,
-
-
- )
- VALUES(
-
-
- #{port},
-
-
- #{ip},
-
-
- #{name},
-
-
- #{user},
-
-
- #{password},
-
-
- #{databaseName},
-
-
- #{tableName},
-
-
- #{suffix},
-
-
- #{status},
-
-
- )
-
-
-
- DELETE FROM services_info
-
- id =#{id}
-
-
-
-
- UPDATE
- services_info
-
-
-
- service_name = #{name},
-
-
- service_ip = #{ip},
-
-
- service_port= #{port},
-
-
- service_user= #{user},
-
-
- service_password= #{password},
-
-
- service_database= #{databaseName},
-
-
- service_table= #{tableName},
-
-
- service_suffix= #{suffix},
-
-
- service_status= #{status},
-
-
- remove= #{remove},
-
-
-
-
- id = #{id}
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ id id, service_port port, service_ip ip, service_name name, service_user user, service_password password, service_database databaseName, service_table tableName, service_suffix suffix, service_status status
+
+
+
+
+
+ INSERT INTO
+ services_info(
+
+
+ service_port,
+
+
+ service_ip,
+
+
+ service_name,
+
+
+ service_user,
+
+
+ service_password,
+
+
+ service_database,
+
+
+ service_table,
+
+
+ service_suffix,
+
+
+ service_status,
+
+
+ )
+ VALUES(
+
+
+ #{port},
+
+
+ #{ip},
+
+
+ #{name},
+
+
+ #{user},
+
+
+ #{password},
+
+
+ #{databaseName},
+
+
+ #{tableName},
+
+
+ #{suffix},
+
+
+ #{status},
+
+
+ )
+
+
+
+ DELETE FROM services_info
+
+ id =#{id}
+
+
+
+
+ UPDATE
+ services_info
+
+
+
+ service_name = #{name},
+
+
+ service_ip = #{ip},
+
+
+ service_port= #{port},
+
+
+ service_user= #{user},
+
+
+ service_password= #{password},
+
+
+ service_database= #{databaseName},
+
+
+ service_table= #{tableName},
+
+
+ service_suffix= #{suffix},
+
+
+ service_status= #{status},
+
+
+ remove= #{remove},
+
+
+
+
+ id = #{id}
+
+
+
\ No newline at end of file
diff --git a/src/com/dao/mapper/data-details-mapper.xml b/src/com/dao/mapper/data-details-mapper.xml
index 217885ca..39a61797 100644
--- a/src/com/dao/mapper/data-details-mapper.xml
+++ b/src/com/dao/mapper/data-details-mapper.xml
@@ -1,249 +1,249 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- AND data_details.data_type=#{dataType}
-
-
- AND
- data_details.submitted_batch=#{submittedBatch}
-
-
- AND data_details.city_name=#{cityName}
-
-
- AND
- data_details.district_name=#{districtName}
-
-
- AND data_details.data_version=#{dataVersion}
-
-
- AND data_details.system_name=#{systemName}
-
-
- AND data_details.data_year=#{dataYear}
-
-
-
- AND CONCAT(regionalism_code,system_code,city_name,district_name,system_name) LIKE CONCAT('%',CONCAT(#{item},'%'))
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- INSERT INTO
- data_info(
-
-
- regionalism_code,
-
-
- system_code,
-
-
- data_type,
-
-
- data_version,
-
-
- submitted_batch,
-
-
- data_path,
-
-
- collection_time,
-
-
- collector_name,
-
-
- collector_contacts,
-
-
- data_charset,
-
-
- data_year,
-
-
- start_year,
-
-
- end_year,
-
-
- volume_ip,
-
-
- volume_path,
-
-
- extract_status,
-
-
- )
- VALUES(
-
-
- #{regionalismCode},
-
-
- #{systemCode},
-
-
- #{dataType},
-
-
- #{dataVersion},
-
-
- #{submittedBatch},
-
-
- #{dataPath},
-
-
- #{collectingTime},
-
-
- #{collectorName},
-
-
- #{collectorContacts},
-
-
- #{charset},
-
-
- #{year},
-
-
- #{start_year},
-
-
- #{end_year},
-
-
- #{volumeIp},
-
-
- #{volumePath},
-
-
- #{extractStatus},
-
-
- )
-
-
-
-
-
- UPDATE
- data_info
- set remove = '1'
- where id in
-
- #{item}
-
- and remove ='0'
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ AND data_details.data_type=#{dataType}
+
+
+ AND
+ data_details.submitted_batch=#{submittedBatch}
+
+
+ AND data_details.city_name=#{cityName}
+
+
+ AND
+ data_details.district_name=#{districtName}
+
+
+ AND data_details.data_version=#{dataVersion}
+
+
+ AND data_details.system_name=#{systemName}
+
+
+ AND data_details.data_year=#{dataYear}
+
+
+
+ AND CONCAT(regionalism_code,system_code,city_name,district_name,system_name) LIKE CONCAT('%',CONCAT(#{item},'%'))
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ INSERT INTO
+ data_info(
+
+
+ regionalism_code,
+
+
+ system_code,
+
+
+ data_type,
+
+
+ data_version,
+
+
+ submitted_batch,
+
+
+ data_path,
+
+
+ collection_time,
+
+
+ collector_name,
+
+
+ collector_contacts,
+
+
+ data_charset,
+
+
+ data_year,
+
+
+ start_year,
+
+
+ end_year,
+
+
+ volume_ip,
+
+
+ volume_path,
+
+
+ extract_status,
+
+
+ )
+ VALUES(
+
+
+ #{regionalismCode},
+
+
+ #{systemCode},
+
+
+ #{dataType},
+
+
+ #{dataVersion},
+
+
+ #{submittedBatch},
+
+
+ #{dataPath},
+
+
+ #{collectingTime},
+
+
+ #{collectorName},
+
+
+ #{collectorContacts},
+
+
+ #{charset},
+
+
+ #{year},
+
+
+ #{start_year},
+
+
+ #{end_year},
+
+
+ #{volumeIp},
+
+
+ #{volumePath},
+
+
+ #{extractStatus},
+
+
+ )
+
+
+
+
+
+ UPDATE
+ data_info
+ set remove = '1'
+ where id in
+
+ #{item}
+
+ and remove ='0'
+
+
\ No newline at end of file
diff --git a/src/com/dao/mapper/dataInfoMoveTmpmapper.xml b/src/com/dao/mapper/dataInfoMoveTmpmapper.xml
index e35029a5..13a74388 100644
--- a/src/com/dao/mapper/dataInfoMoveTmpmapper.xml
+++ b/src/com/dao/mapper/dataInfoMoveTmpmapper.xml
@@ -1,189 +1,189 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- regionalism_code,system_code,dst_path,lasttime,fkid
-
-
-
-
-
-
- UPDATE
- move_data_tmp
-
-
-
- dst_path= #{dstPath},
-
-
- complete_status= #{completeStatus},
-
-
- rate= #{rate},
-
-
- lasttime= #{lastTime},
-
-
-
-
- id = #{id}
-
-
-
-
- INSERT INTO
- move_data_tmp(
-
-
- id,
-
-
- regionalism_code,
-
-
- system_code,
-
-
- dst_path,
-
-
- complete_status,
-
-
- rate,
-
-
- lasttime,
-
-
- fkid,
-
-
- )
- VALUES(
-
-
- id,
-
-
- #{regionalismCode},
-
-
- #{systemCode},
-
-
- #{dstPath},
-
-
- #{completeStatus},
-
-
- #{rate}
-
-
- #{lastTime},
-
-
- #{fkid),
-
-
- )
-
-
-
-
-
- DELETE FROM
- move_data_tmp
- WHERE
- id = #{id}
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ regionalism_code,system_code,dst_path,lasttime,fkid
+
+
+
+
+
+
+ UPDATE
+ move_data_tmp
+
+
+
+ dst_path= #{dstPath},
+
+
+ complete_status= #{completeStatus},
+
+
+ rate= #{rate},
+
+
+ lasttime= #{lastTime},
+
+
+
+
+ id = #{id}
+
+
+
+
+ INSERT INTO
+ move_data_tmp(
+
+
+ id,
+
+
+ regionalism_code,
+
+
+ system_code,
+
+
+ dst_path,
+
+
+ complete_status,
+
+
+ rate,
+
+
+ lasttime,
+
+
+ fkid,
+
+
+ )
+ VALUES(
+
+
+ id,
+
+
+ #{regionalismCode},
+
+
+ #{systemCode},
+
+
+ #{dstPath},
+
+
+ #{completeStatus},
+
+
+ #{rate}
+
+
+ #{lastTime},
+
+
+ #{fkid),
+
+
+ )
+
+
+
+
+
+ DELETE FROM
+ move_data_tmp
+ WHERE
+ id = #{id}
+
+
+
+
\ No newline at end of file
diff --git a/src/com/platform/controller/DefaultController.java b/src/com/platform/controller/DefaultController.java
index 7fb907c8..631e6b77 100644
--- a/src/com/platform/controller/DefaultController.java
+++ b/src/com/platform/controller/DefaultController.java
@@ -1,32 +1,32 @@
-
-package com.platform.controller;
-
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-
-import org.springframework.stereotype.Controller;
-import org.springframework.ui.ModelMap;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.servlet.ModelAndView;
-
-import com.platform.utils.Configs;
-
-@Controller
-public class DefaultController {
-
- @RequestMapping("/")
- public ModelAndView defaultHandler(HttpServletRequest req, HttpServletResponse res){
- //处理不匹配的请求
- System.out.println("index");
- return new ModelAndView("index");
- }
-
- @RequestMapping("/test")
- public ModelMap test(HttpServletRequest req, HttpServletResponse res){
- //System.out.println(Class.class.getClass().getResource("/").getPath());
- System.out.println(Configs.EXTRACT_LOG_LOCALTION);
- return new ModelMap();
- }
-
-}
-
+
+package com.platform.controller;
+
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+import org.springframework.stereotype.Controller;
+import org.springframework.ui.ModelMap;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.servlet.ModelAndView;
+
+import com.platform.utils.Configs;
+
+@Controller
+public class DefaultController {
+
+ @RequestMapping("/")
+ public ModelAndView defaultHandler(HttpServletRequest req, HttpServletResponse res){
+ //处理不匹配的请求
+ System.out.println("index");
+ return new ModelAndView("index");
+ }
+
+ @RequestMapping("/test")
+ public ModelMap test(HttpServletRequest req, HttpServletResponse res){
+ //System.out.println(Class.class.getClass().getResource("/").getPath());
+ System.out.println(Configs.EXTRACT_LOG_LOCALTION);
+ return new ModelMap();
+ }
+
+}
+
diff --git a/src/com/platform/controller/FolderController.java b/src/com/platform/controller/FolderController.java
index 8bea311e..04254ffb 100644
--- a/src/com/platform/controller/FolderController.java
+++ b/src/com/platform/controller/FolderController.java
@@ -1,114 +1,114 @@
-
-package com.platform.controller;
-
-
-import java.util.Date;
-import java.util.List;
-
-import javax.annotation.Resource;
-
-import oracle.sql.DATE;
-
-import org.springframework.stereotype.Controller;
-import org.springframework.stereotype.Service;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RequestMethod;
-
-
-
-import com.base.BaseController;
-import com.base.CustomException;
-import com.platform.entities.GfsFolderEntity;
-
-
-import com.platform.entities.VolumeEntity;
-import com.platform.glusterfs.VolumeInfo;
-
-import com.platform.entities.VolumeEntity;
-import com.platform.glusterfs.VolumeInfo;
-
-import com.platform.service.IGfsService;
-
-
-/**
- * <一句话功能简述>
- * <功能详细描述>
- * @author chen
- * @version [版本号,2016年9月8日]
- * @see [相关类/方法]
- * @since [产品/模块版本]
- */
-@Controller
-
-@RequestMapping("")
-
-public class FolderController extends BaseController {
-
- @Resource(name = "gfsService")
- private IGfsService gfsService;
-
-
-
-
- @RequestMapping(value="/getAllSubPathByPath", method= RequestMethod.POST)
-
- public Object getAllSubPathByPath(String path) throws Exception {
- System.out.println(path);
- Object result = null;
- if (null != path && !"".equals(path)) {
- System.out.println(path);
- result = gfsService.getFolder(path);
- }
- return result;
- }
-
-
- @RequestMapping("/copyFolder")
- public Object copyFolder(String srcpath, String dstPath, String name) throws Exception {
- // -1 :error; -2: the filename is not exists ;-3 :destFolderName ; 1: right
- int result = 0;
-// int result = gfsService.copyFolder(srcpath, dstPath, name);
- System.out.println(srcpath);
- System.out.println(dstPath);
- String obj = "right";
-
- if (1 != result) {
- obj = "err";
- }
- return obj;
- }
-
-// /**
-// * <一句话功能简述> 查询集群中所有的 volume 及其 信息
-// * <功能详细描述>
-// * @return
-// * @throws Exception
-// * @see [类、类#方法、类#成员]
-// */
-// @RequestMapping(value="/volume/list", method= RequestMethod.POST)
-// public Object getVolums() throws Exception{
-// System.out.println("----------------------------------");
-// long a = new Date().getTime();
-// List result = gfsService.getAllVolumes();
-// System.out.println("----------------------------------");
-// System.out.println(new Date().getTime()-a);
-// return result;
-// }
-//
- /**
- * <一句话功能简述> 查询集群中所有的 volume 及其 信息
- * <功能详细描述>
- * @param volumeName "/home/gfs_ftp_point" "/home/v1_point"
- * @return
- * @throws Exception
- * @see [类、类#方法、类#成员]
- */
-
- @RequestMapping(value="/volume/findByName", method= RequestMethod.POST)
- public Object getVolumByName(String volumeName) throws Exception{
- VolumeEntity result = gfsService.getOneVolume(volumeName);
- return result;
-
- }
-
-}
+
+package com.platform.controller;
+
+
+import java.util.Date;
+import java.util.List;
+
+import javax.annotation.Resource;
+
+import oracle.sql.DATE;
+
+import org.springframework.stereotype.Controller;
+import org.springframework.stereotype.Service;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestMethod;
+
+
+
+import com.base.BaseController;
+import com.base.CustomException;
+import com.platform.entities.GfsFolderEntity;
+
+
+import com.platform.entities.VolumeEntity;
+import com.platform.glusterfs.VolumeInfo;
+
+import com.platform.entities.VolumeEntity;
+import com.platform.glusterfs.VolumeInfo;
+
+import com.platform.service.IGfsService;
+
+
+/**
+ * <一句话功能简述>
+ * <功能详细描述>
+ * @author chen
+ * @version [版本号,2016年9月8日]
+ * @see [相关类/方法]
+ * @since [产品/模块版本]
+ */
+@Controller
+
+@RequestMapping("")
+
+public class FolderController extends BaseController {
+
+ @Resource(name = "gfsService")
+ private IGfsService gfsService;
+
+
+
+
+ @RequestMapping(value="/getAllSubPathByPath", method= RequestMethod.POST)
+
+ public Object getAllSubPathByPath(String path) throws Exception {
+ System.out.println(path);
+ Object result = null;
+ if (null != path && !"".equals(path)) {
+ System.out.println(path);
+ result = gfsService.getFolder(path);
+ }
+ return result;
+ }
+
+
+ @RequestMapping("/copyFolder")
+ public Object copyFolder(String srcpath, String dstPath, String name) throws Exception {
+ // -1 :error; -2: the filename is not exists ;-3 :destFolderName ; 1: right
+ int result = 0;
+// int result = gfsService.copyFolder(srcpath, dstPath, name);
+ System.out.println(srcpath);
+ System.out.println(dstPath);
+ String obj = "right";
+
+ if (1 != result) {
+ obj = "err";
+ }
+ return obj;
+ }
+
+// /**
+// * <一句话功能简述> 查询集群中所有的 volume 及其 信息
+// * <功能详细描述>
+// * @return
+// * @throws Exception
+// * @see [类、类#方法、类#成员]
+// */
+// @RequestMapping(value="/volume/list", method= RequestMethod.POST)
+// public Object getVolums() throws Exception{
+// System.out.println("----------------------------------");
+// long a = new Date().getTime();
+// List result = gfsService.getAllVolumes();
+// System.out.println("----------------------------------");
+// System.out.println(new Date().getTime()-a);
+// return result;
+// }
+//
+ /**
+ * <一句话功能简述> 查询集群中所有的 volume 及其 信息
+ * <功能详细描述>
+ * @param volumeName "/home/gfs_ftp_point" "/home/v1_point"
+ * @return
+ * @throws Exception
+ * @see [类、类#方法、类#成员]
+ */
+
+ @RequestMapping(value="/volume/findByName", method= RequestMethod.POST)
+ public Object getVolumByName(String volumeName) throws Exception{
+ VolumeEntity result = gfsService.getOneVolume(volumeName);
+ return result;
+
+ }
+
+}
diff --git a/src/com/platform/controller/SetGlusterfsController.java b/src/com/platform/controller/SetGlusterfsController.java
index 78ce8915..60b776b0 100644
--- a/src/com/platform/controller/SetGlusterfsController.java
+++ b/src/com/platform/controller/SetGlusterfsController.java
@@ -1,52 +1,52 @@
-
-/**
- * 文件名 : SetGlusterfs.java
- * 版权 : <版权/公司名>
- * 描述 : <描述>
- * @author liliy
- * 版本 : <版本>
- * 修改时间: 2016年9月8日
- * 修改内容: <修改内容>
- */
-package com.platform.controller;
-
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-
-import org.springframework.stereotype.Controller;
-import org.springframework.web.bind.annotation.RequestMapping;
-
-/**
-
- * <一句话功能简述>
-
-
- * <一句话功能简述>
-
- * <功能详细描述>
- * @author liliy
- * @version [版本号,2016年9月8日]
- * @see [相关类/方法]
- * @since [产品/模块版本]
- */
-@Controller
-public class SetGlusterfsController {
-
- @RequestMapping("/tes")
- public Object defaultHandler(HttpServletRequest req, HttpServletResponse request) {
- //���?ƥ�������
- try {
-
- System.out.println("fsdfds");
-
- return "listAll";
- } catch (Exception e) {
- e.printStackTrace();
-
- return "result";
- }
-
-
- }
-
-}
+
+/**
+ * 文件名 : SetGlusterfs.java
+ * 版权 : <版权/公司名>
+ * 描述 : <描述>
+ * @author liliy
+ * 版本 : <版本>
+ * 修改时间: 2016年9月8日
+ * 修改内容: <修改内容>
+ */
+package com.platform.controller;
+
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+import org.springframework.stereotype.Controller;
+import org.springframework.web.bind.annotation.RequestMapping;
+
+/**
+
+ * <一句话功能简述>
+
+
+ * <一句话功能简述>
+
+ * <功能详细描述>
+ * @author liliy
+ * @version [版本号,2016年9月8日]
+ * @see [相关类/方法]
+ * @since [产品/模块版本]
+ */
+@Controller
+public class SetGlusterfsController {
+
+ @RequestMapping("/tes")
+ public Object defaultHandler(HttpServletRequest req, HttpServletResponse request) {
+ //���?ƥ�������
+ try {
+
+ System.out.println("fsdfds");
+
+ return "listAll";
+ } catch (Exception e) {
+ e.printStackTrace();
+
+ return "result";
+ }
+
+
+ }
+
+}
diff --git a/src/com/platform/controller/ShowGlusterfsController.java b/src/com/platform/controller/ShowGlusterfsController.java
index 6fa3fadd..7667bc2b 100644
--- a/src/com/platform/controller/ShowGlusterfsController.java
+++ b/src/com/platform/controller/ShowGlusterfsController.java
@@ -1,50 +1,50 @@
-
-/**
- * 文件名 : ShowGlusterfsController.java
- * 版权 : <版权/公司名>
- * 描述 : <描述>
- * @author liliy
- * 版本 : <版本>
- * 修改时间: 2016年9月8日
- * 修改内容: <修改内容>
- */
-package com.platform.controller;
-
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-
-import org.springframework.stereotype.Controller;
-import org.springframework.web.bind.annotation.RequestMapping;
-
-import com.platform.glusterfs.ClusterInfo;
-import com.platform.glusterfs.VolumeInfo;
-
-/**
- * <一句话功能简述>
-
- * <功能详细描述>
- * @author liliy
- * @version [版本号,2016年9月8日]
- * @see [相关类/方法]
- * @since [产品/模块版本]
- */
-@Controller
-public class ShowGlusterfsController {
-
-
- /**
- * <一句话功能简述>
-
- * <功能详细描述>
- * @return
- * @see [类、类#方法、类#成员]
- */
- @RequestMapping("/showPeerStatus")
- public Map showPeerStatus(){
- Map peer_status=new ClusterInfo().showClusterInfo();
- return peer_status;
- }
-
-
-}
+
+/**
+ * 文件名 : ShowGlusterfsController.java
+ * 版权 : <版权/公司名>
+ * 描述 : <描述>
+ * @author liliy
+ * 版本 : <版本>
+ * 修改时间: 2016年9月8日
+ * 修改内容: <修改内容>
+ */
+package com.platform.controller;
+
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+import org.springframework.stereotype.Controller;
+import org.springframework.web.bind.annotation.RequestMapping;
+
+import com.platform.glusterfs.ClusterInfo;
+import com.platform.glusterfs.VolumeInfo;
+
+/**
+ * <一句话功能简述>
+
+ * <功能详细描述>
+ * @author liliy
+ * @version [版本号,2016年9月8日]
+ * @see [相关类/方法]
+ * @since [产品/模块版本]
+ */
+@Controller
+public class ShowGlusterfsController {
+
+
+ /**
+ * <一句话功能简述>
+
+ * <功能详细描述>
+ * @return
+ * @see [类、类#方法、类#成员]
+ */
+ @RequestMapping("/showPeerStatus")
+ public Map showPeerStatus(){
+ Map peer_status=new ClusterInfo().showClusterInfo();
+ return peer_status;
+ }
+
+
+}
diff --git a/src/com/platform/controller/TaskModelController.java b/src/com/platform/controller/TaskModelController.java
index 7a861661..25d51555 100644
--- a/src/com/platform/controller/TaskModelController.java
+++ b/src/com/platform/controller/TaskModelController.java
@@ -1,28 +1,28 @@
-package com.platform.controller;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-
-import org.springframework.stereotype.Controller;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.ResponseBody;
-
-import com.base.BaseController;
-
-@Controller
-public class TaskModelController extends BaseController{
-
- @RequestMapping("/task/transfer/list")
- @ResponseBody
- public List getTransferTask(HttpServletRequest res, HttpServletResponse req) {
- List list = new ArrayList();
- list.add(1);
- list.add(2);
- list.add(3);
- list.add(4);
- return list;
- }
-}
+package com.platform.controller;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+import org.springframework.stereotype.Controller;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.ResponseBody;
+
+import com.base.BaseController;
+
+@Controller
+public class TaskModelController extends BaseController{
+
+ @RequestMapping("/task/transfer/list")
+ @ResponseBody
+ public List getTransferTask(HttpServletRequest res, HttpServletResponse req) {
+ List list = new ArrayList();
+ list.add(1);
+ list.add(2);
+ list.add(3);
+ list.add(4);
+ return list;
+ }
+}
diff --git a/src/com/platform/dao/DataInfoDao.java b/src/com/platform/dao/DataInfoDao.java
index 5b9419b0..005e2bc3 100644
--- a/src/com/platform/dao/DataInfoDao.java
+++ b/src/com/platform/dao/DataInfoDao.java
@@ -1,27 +1,27 @@
-package com.platform.dao;
-
-import java.util.List;
-import java.util.Map;
-
-import org.apache.ibatis.annotations.Param;
-import org.springframework.stereotype.Repository;
-
-import com.platform.entities.DataInfoEntity;
-import com.platform.entities.PagerOptions;
-
-@Repository(value = "dataInfoDao")
-public interface DataInfoDao {
-
- int getLimitedDataCount(PagerOptions pagerOptions);
-
- int getLimitedBeginId(PagerOptions pagerOptions);
-
- List getLimitedDataInfoEntities(PagerOptions pagerOptions);
-
- List getIdIsExist(List list)throws Exception;
-
- int removes(List list)throws Exception;
-
- int save(DataInfoEntity data) throws Exception;
-
-}
+package com.platform.dao;
+
+import java.util.List;
+import java.util.Map;
+
+import org.apache.ibatis.annotations.Param;
+import org.springframework.stereotype.Repository;
+
+import com.platform.entities.DataInfoEntity;
+import com.platform.entities.PagerOptions;
+
+@Repository(value = "dataInfoDao")
+public interface DataInfoDao {
+
+ int getLimitedDataCount(PagerOptions pagerOptions);
+
+ int getLimitedBeginId(PagerOptions pagerOptions);
+
+ List getLimitedDataInfoEntities(PagerOptions pagerOptions);
+
+ List getIdIsExist(List list)throws Exception;
+
+ int removes(List list)throws Exception;
+
+ int save(DataInfoEntity data) throws Exception;
+
+}
diff --git a/src/com/platform/dao/DataInfoMoveTmpDao.java b/src/com/platform/dao/DataInfoMoveTmpDao.java
index 3891c117..096d8938 100644
--- a/src/com/platform/dao/DataInfoMoveTmpDao.java
+++ b/src/com/platform/dao/DataInfoMoveTmpDao.java
@@ -1,29 +1,29 @@
-package com.platform.dao;
-
-import java.util.List;
-
-import org.springframework.stereotype.Repository;
-
-import com.platform.entities.DataInfoEntityMoveTmp;
-
-/**
- * @author chen
- * 数据迁移状态 临时 存放 ,
- */
-@Repository(value = "dataInfoMoveTmpDao")
-public interface DataInfoMoveTmpDao {
-
- /** 查
- * @return
- * @throws Exception
- */
- List findAll() throws Exception;
-
- int update(DataInfoEntityMoveTmp data) throws Exception;
-
- int save(DataInfoEntityMoveTmp data) throws Exception;
-
- void insertBatch(List list) throws Exception;
-
- int remove(int id) throws Exception;
-}
+package com.platform.dao;
+
+import java.util.List;
+
+import org.springframework.stereotype.Repository;
+
+import com.platform.entities.DataInfoEntityMoveTmp;
+
+/**
+ * @author chen
+ * 数据迁移状态 临时 存放 ,
+ */
+@Repository(value = "dataInfoMoveTmpDao")
+public interface DataInfoMoveTmpDao {
+
+ /** 查
+ * @return
+ * @throws Exception
+ */
+ List findAll() throws Exception;
+
+ int update(DataInfoEntityMoveTmp data) throws Exception;
+
+ int save(DataInfoEntityMoveTmp data) throws Exception;
+
+ void insertBatch(List list) throws Exception;
+
+ int remove(int id) throws Exception;
+}
diff --git a/src/com/platform/dao/EncodeInfoDao.java b/src/com/platform/dao/EncodeInfoDao.java
index 18fb399e..a877f5f3 100644
--- a/src/com/platform/dao/EncodeInfoDao.java
+++ b/src/com/platform/dao/EncodeInfoDao.java
@@ -1,99 +1,99 @@
-package com.platform.dao;
-
-import java.util.List;
-
-import org.apache.ibatis.annotations.Delete;
-import org.apache.ibatis.annotations.Insert;
-import org.apache.ibatis.annotations.Param;
-import org.apache.ibatis.annotations.Select;
-import org.apache.ibatis.annotations.Update;
-import org.springframework.stereotype.Repository;
-
-import com.platform.entities.EncodedInfoEntity;
-
-/**
- * 数据库操作: 实现增、删、改、查
- *
- * @author wuming
- *
- */
-@Repository(value = "encodeInfoDao")
-public interface EncodeInfoDao {
-
- /**
- * 获取查询表下的所有实体(行政区划/系统)信息
- *
- * @param tableName
- * 查询的表名
- * @return 所有实体信息:名称和编码
- */
- @Select("SELECT code, name FROM ${tableName}")
- public List getAllEntityInfo(
- @Param("tableName") String tableName);
-
- /**
- * 根据实体(行政区划/系统)的名称查询编码
- *
- * @param code
- * 实体编码
- * @param tableName
- * 查询的表名
- * @return 编码是主键,查询结果最多只有一条记录
- */
- @Select("SELECT name FROM ${tableName} WHERE code = #{code}")
- public String getEncodeNameByCode(@Param("code") String code,
- @Param("tableName") String tableName);
-
- /**
- * 根据实体(行政区划/系统)的编码查询名称
- *
- * @param name
- * 实体名称
- * @param tableName
- * 查询的表名
- * @return 名称不是主键,查询结果可能会有多个
- */
- @Select("SELECT code FROM ${tableName} WHERE name = #{name}")
- public List getEncodeCodeByName(@Param("name") String name,
- @Param("tableName") String tableName);
-
- /**
- * 根据实体(行政区划/系统)的编码,更新实体的名称
- *
- * @param code
- * 系统编码
- * @param tableName
- * 查询的表名
- * @return
- */
- @Update("UPDATE ${tableName} SET name = #{name} WHERE code = #{code}")
- public int updateEncodeNameByCode(@Param("code") String code,
- @Param("name") String name, @Param("tableName") String tableName);
-
- /**
- * 向表中插入实体(行政区划/系统)信息
- *
- * @param efe
- * 插入的实体信息
- * @param tableName
- * 表名
- * @return
- */
- @Insert("INSERT INTO ${tableName} (code, name) VALUES (#{efe.code}, #{efe.name})")
- public int insertEncodeEntity(@Param("efe") EncodedInfoEntity efe,
- @Param("tableName") String tableName);
-
- /**
- * 删除表中的实体(行政区划/系统)
- *
- * @param code
- * 实体的编码
- * @param tableName
- * 表名
- * @return
- */
- @Delete("DELETE FROM ${tableName} WHERE code = #{code}")
- public int deleteEncodeByCode(@Param("code") String code,
- @Param("tableName") String tableName);
-
+package com.platform.dao;
+
+import java.util.List;
+
+import org.apache.ibatis.annotations.Delete;
+import org.apache.ibatis.annotations.Insert;
+import org.apache.ibatis.annotations.Param;
+import org.apache.ibatis.annotations.Select;
+import org.apache.ibatis.annotations.Update;
+import org.springframework.stereotype.Repository;
+
+import com.platform.entities.EncodedInfoEntity;
+
+/**
+ * 数据库操作: 实现增、删、改、查
+ *
+ * @author wuming
+ *
+ */
+@Repository(value = "encodeInfoDao")
+public interface EncodeInfoDao {
+
+ /**
+ * 获取查询表下的所有实体(行政区划/系统)信息
+ *
+ * @param tableName
+ * 查询的表名
+ * @return 所有实体信息:名称和编码
+ */
+ @Select("SELECT code, name FROM ${tableName}")
+ public List getAllEntityInfo(
+ @Param("tableName") String tableName);
+
+ /**
+ * 根据实体(行政区划/系统)的名称查询编码
+ *
+ * @param code
+ * 实体编码
+ * @param tableName
+ * 查询的表名
+ * @return 编码是主键,查询结果最多只有一条记录
+ */
+ @Select("SELECT name FROM ${tableName} WHERE code = #{code}")
+ public String getEncodeNameByCode(@Param("code") String code,
+ @Param("tableName") String tableName);
+
+ /**
+ * 根据实体(行政区划/系统)的编码查询名称
+ *
+ * @param name
+ * 实体名称
+ * @param tableName
+ * 查询的表名
+ * @return 名称不是主键,查询结果可能会有多个
+ */
+ @Select("SELECT code FROM ${tableName} WHERE name = #{name}")
+ public List getEncodeCodeByName(@Param("name") String name,
+ @Param("tableName") String tableName);
+
+ /**
+ * 根据实体(行政区划/系统)的编码,更新实体的名称
+ *
+ * @param code
+ * 系统编码
+ * @param tableName
+ * 查询的表名
+ * @return
+ */
+ @Update("UPDATE ${tableName} SET name = #{name} WHERE code = #{code}")
+ public int updateEncodeNameByCode(@Param("code") String code,
+ @Param("name") String name, @Param("tableName") String tableName);
+
+ /**
+ * 向表中插入实体(行政区划/系统)信息
+ *
+ * @param efe
+ * 插入的实体信息
+ * @param tableName
+ * 表名
+ * @return
+ */
+ @Insert("INSERT INTO ${tableName} (code, name) VALUES (#{efe.code}, #{efe.name})")
+ public int insertEncodeEntity(@Param("efe") EncodedInfoEntity efe,
+ @Param("tableName") String tableName);
+
+ /**
+ * 删除表中的实体(行政区划/系统)
+ *
+ * @param code
+ * 实体的编码
+ * @param tableName
+ * 表名
+ * @return
+ */
+ @Delete("DELETE FROM ${tableName} WHERE code = #{code}")
+ public int deleteEncodeByCode(@Param("code") String code,
+ @Param("tableName") String tableName);
+
}
\ No newline at end of file
diff --git a/src/com/platform/dao/GatherOracleDao.java b/src/com/platform/dao/GatherOracleDao.java
index b2061c0c..43852cac 100644
--- a/src/com/platform/dao/GatherOracleDao.java
+++ b/src/com/platform/dao/GatherOracleDao.java
@@ -1,39 +1,39 @@
-package com.platform.dao;
-
-import java.util.List;
-
-import org.springframework.stereotype.Repository;
-
-import com.platform.entities.GatherOracleInfo;
-
-@Repository(value = "gatherOracleDao")
-public interface GatherOracleDao {
-
- /**
- * @return 查询所有的oracle记录
- * @throws Exception 异常
- */
- public List selectAllOracle() throws Exception;
-
- /**
- * @param id
- * @return
- * @throws Exception
- */
- public int deleteOracleById(int id) throws Exception;
-
- /**
- * @param oracle
- * @return
- * @throws Exception
- */
- public int insertOracle(GatherOracleInfo oracle) throws Exception;
-
- /**
- * @param oracle
- * @return
- * @throws Exception
- */
- public int updateOracleById(GatherOracleInfo oracle) throws Exception;
-
-}
+package com.platform.dao;
+
+import java.util.List;
+
+import org.springframework.stereotype.Repository;
+
+import com.platform.entities.GatherOracleInfo;
+
+@Repository(value = "gatherOracleDao")
+public interface GatherOracleDao {
+
+ /**
+ * @return 查询所有的oracle记录
+ * @throws Exception 异常
+ */
+ public List selectAllOracle() throws Exception;
+
+ /**
+ * @param id
+ * @return
+ * @throws Exception
+ */
+ public int deleteOracleById(int id) throws Exception;
+
+ /**
+ * @param oracle
+ * @return
+ * @throws Exception
+ */
+ public int insertOracle(GatherOracleInfo oracle) throws Exception;
+
+ /**
+ * @param oracle
+ * @return
+ * @throws Exception
+ */
+ public int updateOracleById(GatherOracleInfo oracle) throws Exception;
+
+}
diff --git a/src/com/platform/dao/IRegionalismCodeDao.java b/src/com/platform/dao/IRegionalismCodeDao.java
index dfc15b47..e89cd938 100644
--- a/src/com/platform/dao/IRegionalismCodeDao.java
+++ b/src/com/platform/dao/IRegionalismCodeDao.java
@@ -1,28 +1,28 @@
-package com.platform.dao;
-
-import java.util.List;
-
-import org.apache.ibatis.annotations.Param;
-import org.springframework.stereotype.Repository;
-
-import com.platform.entities.DataInfoEntity;
-import com.platform.entities.DataInfoEntityMoveTmp;
-import com.platform.entities.PagerOptions;
-import com.platform.entities.RegionalismEntity;
-
-/**
- * @author chen
- * 数据迁移状态 临时 存放 ,
- */
-@Repository(value = "regionalismCodeDao")
-public interface IRegionalismCodeDao {
-
- /** 查
- * @return
- * @throws Exception
- */
- List findAllRegionalism() throws Exception;
-
- List findSubRegionalism(RegionalismEntity region) throws Exception;
-
-}
+package com.platform.dao;
+
+import java.util.List;
+
+import org.apache.ibatis.annotations.Param;
+import org.springframework.stereotype.Repository;
+
+import com.platform.entities.DataInfoEntity;
+import com.platform.entities.DataInfoEntityMoveTmp;
+import com.platform.entities.PagerOptions;
+import com.platform.entities.RegionalismEntity;
+
+/**
+ * @author chen
+ * 数据迁移状态 临时 存放 ,
+ */
+@Repository(value = "regionalismCodeDao")
+public interface IRegionalismCodeDao {
+
+ /** 查
+ * @return
+ * @throws Exception
+ */
+ List findAllRegionalism() throws Exception;
+
+ List findSubRegionalism(RegionalismEntity region) throws Exception;
+
+}
diff --git a/src/com/platform/dao/ISystemCodeDao.java b/src/com/platform/dao/ISystemCodeDao.java
index 401b7787..fde3b02f 100644
--- a/src/com/platform/dao/ISystemCodeDao.java
+++ b/src/com/platform/dao/ISystemCodeDao.java
@@ -1,28 +1,28 @@
-package com.platform.dao;
-
-import java.util.List;
-
-import org.apache.ibatis.annotations.Param;
-import org.springframework.stereotype.Repository;
-
-import com.platform.entities.DataInfoEntity;
-import com.platform.entities.DataInfoEntityMoveTmp;
-import com.platform.entities.PagerOptions;
-import com.platform.entities.RegionalismEntity;
-import com.platform.entities.SystemEntity;
-
-/**
- * @author chen
- * 数据迁移状态 临时 存放 ,
- */
-@Repository(value = "systemCodeDao")
-public interface ISystemCodeDao {
-
- /** 查
- * @return
- * @throws Exception
- */
- List findAllSystem() throws Exception;
-
- List findSubSystem(SystemEntity system) throws Exception;
-}
+package com.platform.dao;
+
+import java.util.List;
+
+import org.apache.ibatis.annotations.Param;
+import org.springframework.stereotype.Repository;
+
+import com.platform.entities.DataInfoEntity;
+import com.platform.entities.DataInfoEntityMoveTmp;
+import com.platform.entities.PagerOptions;
+import com.platform.entities.RegionalismEntity;
+import com.platform.entities.SystemEntity;
+
+/**
+ * @author chen
+ * 数据迁移状态 临时 存放 ,
+ */
+@Repository(value = "systemCodeDao")
+public interface ISystemCodeDao {
+
+ /** 查
+ * @return
+ * @throws Exception
+ */
+ List findAllSystem() throws Exception;
+
+ List findSubSystem(SystemEntity system) throws Exception;
+}
diff --git a/src/com/platform/entities/BasedType.java b/src/com/platform/entities/BasedType.java
index e1568cec..d133a0eb 100644
--- a/src/com/platform/entities/BasedType.java
+++ b/src/com/platform/entities/BasedType.java
@@ -1,48 +1,48 @@
-package com.platform.entities;
-
-import java.util.Date;
-
-public enum BasedType {
-
- STRING("java.lang.String", String.class), INTEGER("java.lang.Integer",
- Integer.class), SHORT("java.lang.Short", Short.class), LONG(
- "java.lang.Long", Long.class), DATE("java.util.Date", Date.class);
-
- private String type;
- private Class> clazz;
-
- private BasedType(String type, Class> clazz) {
- this.type = type;
- this.clazz = clazz;
- }
-
- public static Class> getTypeClass(String type) {
- for (BasedType bt : BasedType.values()) {
- if (bt.equals(type))
- return bt.clazz;
- }
- return null;
- }
-
- public String getType() {
- return type;
- }
-
- public void setType(String type) {
- this.type = type;
- }
-
- public Class> getClazz() {
- return clazz;
- }
-
- public void setClazz(Class> clazz) {
- this.clazz = clazz;
- }
-
- @Override
- public String toString() {
- return this.type;
- }
-
-}
+package com.platform.entities;
+
+import java.util.Date;
+
+public enum BasedType {
+
+ STRING("java.lang.String", String.class), INTEGER("java.lang.Integer",
+ Integer.class), SHORT("java.lang.Short", Short.class), LONG(
+ "java.lang.Long", Long.class), DATE("java.util.Date", Date.class);
+
+ private String type;
+ private Class> clazz;
+
+ private BasedType(String type, Class> clazz) {
+ this.type = type;
+ this.clazz = clazz;
+ }
+
+ public static Class> getTypeClass(String type) {
+ for (BasedType bt : BasedType.values()) {
+ if (bt.equals(type))
+ return bt.clazz;
+ }
+ return null;
+ }
+
+ public String getType() {
+ return type;
+ }
+
+ public void setType(String type) {
+ this.type = type;
+ }
+
+ public Class> getClazz() {
+ return clazz;
+ }
+
+ public void setClazz(Class> clazz) {
+ this.clazz = clazz;
+ }
+
+ @Override
+ public String toString() {
+ return this.type;
+ }
+
+}
diff --git a/src/com/platform/entities/DataInfoEntity.java b/src/com/platform/entities/DataInfoEntity.java
index 062db3ce..bf5db6fa 100644
--- a/src/com/platform/entities/DataInfoEntity.java
+++ b/src/com/platform/entities/DataInfoEntity.java
@@ -1,269 +1,269 @@
-package com.platform.entities;
-
-/**
- * 数据信息实体类
- *
- * @author wuming
- *
- */
-public class DataInfoEntity {
- private int id;
- private String regionalismCode; // 行政区划编码
- private String cityName; // 市
- private String districtName; // 区县
- private int systemCode; // 系统编码
- private String systemName; // 系统名称
- private String dataType; // 数据类型:财政\社保\...
- private int dataVersion; // 数据版本
- private String submittedBatch; // 上报批次
- private String dataPath; // 数据路径
- private String collectingTime; // 采集时间
- private String collectorContacts; // 采集人的联系
- private String charset; // 数据的字符编码
- private String collectorName; // 采集人姓名
- private String year; // 数据年度
-
- /** 是否抽取 */
- private int extractStatus;
- /** 数据年度起始 */
- private String startYear;
- /** 数据年度结束 */
- private String endYear;
-
- /** volume的ip */
- private String volumeIp;
- /** volume的path */
- private String volumePath;
-
- public DataInfoEntity() {
- }
-
- public DataInfoEntity(int id, String regionalismCode, String cityName,
- String districtName, int systemCode, String systemName,
- String dataType, int dataVersion, String submittedBatch,
- String dataPath, String collectingTime, String collectorContacts,
- String charset, String collectorName, String year) {
- super();
- this.id = id;
- this.regionalismCode = regionalismCode;
- this.cityName = cityName;
- this.districtName = districtName;
- this.systemCode = systemCode;
- this.systemName = systemName;
- this.dataType = dataType;
- this.dataVersion = dataVersion;
- this.submittedBatch = submittedBatch;
- this.dataPath = dataPath;
- this.collectingTime = collectingTime;
- this.collectorContacts = collectorContacts;
- this.charset = charset;
- this.collectorName = collectorName;
- this.year = year;
- }
-
- public int getId() {
- return id;
- }
-
- public void setId(int id) {
- this.id = id;
- }
-
- public String getRegionalismCode() {
- return regionalismCode;
- }
-
- public void setRegionalismCode(String regionalismCode) {
- this.regionalismCode = regionalismCode;
- }
-
- public String getCityName() {
- return cityName;
- }
-
- public void setCityName(String cityName) {
- this.cityName = cityName;
- }
-
- public String getDistrictName() {
- return districtName;
- }
-
- public void setDistrictName(String districtName) {
- this.districtName = districtName;
- }
-
- public int getSystemCode() {
- return systemCode;
- }
-
- public void setSystemCode(int systemCode) {
- this.systemCode = systemCode;
- }
-
- public String getSystemName() {
- return systemName;
- }
-
- public void setSystemName(String systemName) {
- this.systemName = systemName;
- }
-
- public String getDataType() {
- return dataType;
- }
-
- public void setDataType(String dataType) {
- this.dataType = dataType;
- }
-
- public int getDataVersion() {
- return dataVersion;
- }
-
- public void setDataVersion(int dataVersion) {
- this.dataVersion = dataVersion;
- }
-
- public String getSubmittedBatch() {
- return submittedBatch;
- }
-
- public void setSubmittedBatch(String submittedBatch) {
- this.submittedBatch = submittedBatch;
- }
-
- public String getDataPath() {
- return dataPath;
- }
-
- public void setDataPath(String dataPath) {
- this.dataPath = dataPath;
- }
-
- public String getCollectingTime() {
- return collectingTime;
- }
-
- public void setCollectingTime(String collectingTime) {
- this.collectingTime = collectingTime;
- }
-
- public String getCollectorContacts() {
- return collectorContacts;
- }
-
- public void setCollectorContacts(String collectorContacts) {
- this.collectorContacts = collectorContacts;
- }
-
- public String getCharset() {
- return charset;
- }
-
- public void setCharset(String charset) {
- this.charset = charset;
- }
-
- public String getCollectorName() {
- return collectorName;
- }
-
- public void setCollectorName(String collectorName) {
- this.collectorName = collectorName;
- }
-
- public String getYear() {
- return year;
- }
-
- public void setYear(String year) {
- this.year = year;
- }
-
- /**
- * @return the startYear
- */
- public String getStartYear() {
- return startYear;
- }
-
- /**
- * @param startYear the startYear to set
- */
- public void setStartYear(String startYear) {
- this.startYear = startYear;
- }
-
- /**
- * @return the endYear
- */
- public String getEndYear() {
- return endYear;
- }
-
- /**
- * @param endYear the endYear to set
- */
- public void setEndYear(String endYear) {
- this.endYear = endYear;
- }
-
- /**
- * @return the extractStatus
- */
- public int getExtractStatus() {
- return extractStatus;
- }
-
- /**
- * @param extractStatus the extractStatus to set
- */
- public void setExtractStatus(int extractStatus) {
- this.extractStatus = extractStatus;
- }
-
- /**
- * @return the volumeIp
- */
- public String getVolumeIp() {
- return volumeIp;
- }
-
- /**
- * @param volumeIp the volumeIp to set
- */
- public void setVolumeIp(String volumeIp) {
- this.volumeIp = volumeIp;
- }
-
- /**
- * @return the volumePath
- */
- public String getVolumePath() {
- return volumePath;
- }
-
- /**
- * @param volumePath the volumePath to set
- */
- public void setVolumePath(String volumePath) {
- this.volumePath = volumePath;
- }
-
- @Override
- public String toString() {
- return "id=" + this.id + " ,regionalismCode=" + this.regionalismCode
- + " ,cityName=" + this.cityName + " ,districtName="
- + this.districtName + " ,systemCode=" + this.systemCode
- + " ,systemName" + this.systemName + " ,dataType="
- + this.dataType + " ,dataVersion=" + this.dataVersion
- + " ,submittedBatch=" + this.submittedBatch + " ,dataPath="
- + this.dataPath + " ,collectingTime=" + this.collectingTime
- + " ,collectorContacts=" + this.collectorContacts
- + " ,charset=" + this.charset + " ,collectorName="
- + this.collectorName + " ,year=" + this.year + " startYear="
- +this.startYear +" endYear="+this.endYear;
- }
-
-}
+package com.platform.entities;
+
+/**
+ * 数据信息实体类
+ *
+ * @author wuming
+ *
+ */
+public class DataInfoEntity {
+ private int id;
+ private String regionalismCode; // 行政区划编码
+ private String cityName; // 市
+ private String districtName; // 区县
+ private int systemCode; // 系统编码
+ private String systemName; // 系统名称
+ private String dataType; // 数据类型:财政\社保\...
+ private int dataVersion; // 数据版本
+ private String submittedBatch; // 上报批次
+ private String dataPath; // 数据路径
+ private String collectingTime; // 采集时间
+ private String collectorContacts; // 采集人的联系
+ private String charset; // 数据的字符编码
+ private String collectorName; // 采集人姓名
+ private String year; // 数据年度
+
+ /** 是否抽取 */
+ private int extractStatus;
+ /** 数据年度起始 */
+ private String startYear;
+ /** 数据年度结束 */
+ private String endYear;
+
+ /** volume的ip */
+ private String volumeIp;
+ /** volume的path */
+ private String volumePath;
+
+ public DataInfoEntity() {
+ }
+
+ public DataInfoEntity(int id, String regionalismCode, String cityName,
+ String districtName, int systemCode, String systemName,
+ String dataType, int dataVersion, String submittedBatch,
+ String dataPath, String collectingTime, String collectorContacts,
+ String charset, String collectorName, String year) {
+ super();
+ this.id = id;
+ this.regionalismCode = regionalismCode;
+ this.cityName = cityName;
+ this.districtName = districtName;
+ this.systemCode = systemCode;
+ this.systemName = systemName;
+ this.dataType = dataType;
+ this.dataVersion = dataVersion;
+ this.submittedBatch = submittedBatch;
+ this.dataPath = dataPath;
+ this.collectingTime = collectingTime;
+ this.collectorContacts = collectorContacts;
+ this.charset = charset;
+ this.collectorName = collectorName;
+ this.year = year;
+ }
+
+ public int getId() {
+ return id;
+ }
+
+ public void setId(int id) {
+ this.id = id;
+ }
+
+ public String getRegionalismCode() {
+ return regionalismCode;
+ }
+
+ public void setRegionalismCode(String regionalismCode) {
+ this.regionalismCode = regionalismCode;
+ }
+
+ public String getCityName() {
+ return cityName;
+ }
+
+ public void setCityName(String cityName) {
+ this.cityName = cityName;
+ }
+
+ public String getDistrictName() {
+ return districtName;
+ }
+
+ public void setDistrictName(String districtName) {
+ this.districtName = districtName;
+ }
+
+ public int getSystemCode() {
+ return systemCode;
+ }
+
+ public void setSystemCode(int systemCode) {
+ this.systemCode = systemCode;
+ }
+
+ public String getSystemName() {
+ return systemName;
+ }
+
+ public void setSystemName(String systemName) {
+ this.systemName = systemName;
+ }
+
+ public String getDataType() {
+ return dataType;
+ }
+
+ public void setDataType(String dataType) {
+ this.dataType = dataType;
+ }
+
+ public int getDataVersion() {
+ return dataVersion;
+ }
+
+ public void setDataVersion(int dataVersion) {
+ this.dataVersion = dataVersion;
+ }
+
+ public String getSubmittedBatch() {
+ return submittedBatch;
+ }
+
+ public void setSubmittedBatch(String submittedBatch) {
+ this.submittedBatch = submittedBatch;
+ }
+
+ public String getDataPath() {
+ return dataPath;
+ }
+
+ public void setDataPath(String dataPath) {
+ this.dataPath = dataPath;
+ }
+
+ public String getCollectingTime() {
+ return collectingTime;
+ }
+
+ public void setCollectingTime(String collectingTime) {
+ this.collectingTime = collectingTime;
+ }
+
+ public String getCollectorContacts() {
+ return collectorContacts;
+ }
+
+ public void setCollectorContacts(String collectorContacts) {
+ this.collectorContacts = collectorContacts;
+ }
+
+ public String getCharset() {
+ return charset;
+ }
+
+ public void setCharset(String charset) {
+ this.charset = charset;
+ }
+
+ public String getCollectorName() {
+ return collectorName;
+ }
+
+ public void setCollectorName(String collectorName) {
+ this.collectorName = collectorName;
+ }
+
+ public String getYear() {
+ return year;
+ }
+
+ public void setYear(String year) {
+ this.year = year;
+ }
+
+ /**
+ * @return the startYear
+ */
+ public String getStartYear() {
+ return startYear;
+ }
+
+ /**
+ * @param startYear the startYear to set
+ */
+ public void setStartYear(String startYear) {
+ this.startYear = startYear;
+ }
+
+ /**
+ * @return the endYear
+ */
+ public String getEndYear() {
+ return endYear;
+ }
+
+ /**
+ * @param endYear the endYear to set
+ */
+ public void setEndYear(String endYear) {
+ this.endYear = endYear;
+ }
+
+ /**
+ * @return the extractStatus
+ */
+ public int getExtractStatus() {
+ return extractStatus;
+ }
+
+ /**
+ * @param extractStatus the extractStatus to set
+ */
+ public void setExtractStatus(int extractStatus) {
+ this.extractStatus = extractStatus;
+ }
+
+ /**
+ * @return the volumeIp
+ */
+ public String getVolumeIp() {
+ return volumeIp;
+ }
+
+ /**
+ * @param volumeIp the volumeIp to set
+ */
+ public void setVolumeIp(String volumeIp) {
+ this.volumeIp = volumeIp;
+ }
+
+ /**
+ * @return the volumePath
+ */
+ public String getVolumePath() {
+ return volumePath;
+ }
+
+ /**
+ * @param volumePath the volumePath to set
+ */
+ public void setVolumePath(String volumePath) {
+ this.volumePath = volumePath;
+ }
+
+ @Override
+ public String toString() {
+ return "id=" + this.id + " ,regionalismCode=" + this.regionalismCode
+ + " ,cityName=" + this.cityName + " ,districtName="
+ + this.districtName + " ,systemCode=" + this.systemCode
+ + " ,systemName" + this.systemName + " ,dataType="
+ + this.dataType + " ,dataVersion=" + this.dataVersion
+ + " ,submittedBatch=" + this.submittedBatch + " ,dataPath="
+ + this.dataPath + " ,collectingTime=" + this.collectingTime
+ + " ,collectorContacts=" + this.collectorContacts
+ + " ,charset=" + this.charset + " ,collectorName="
+ + this.collectorName + " ,year=" + this.year + " startYear="
+ +this.startYear +" endYear="+this.endYear;
+ }
+
+}
diff --git a/src/com/platform/entities/DataInfoEntityMoveTmp.java b/src/com/platform/entities/DataInfoEntityMoveTmp.java
index bf64fdd9..30a02e7b 100644
--- a/src/com/platform/entities/DataInfoEntityMoveTmp.java
+++ b/src/com/platform/entities/DataInfoEntityMoveTmp.java
@@ -1,124 +1,124 @@
-package com.platform.entities;
-
-public class DataInfoEntityMoveTmp extends DataInfoEntity {
-
- private String dstPath;
-
- private String completeStatus;
-
- private int rate;
-
- /**
- *
- */
- private String lastTime;
-
- private String dstVolumeIp;
-
- private String dstVolumePath;
-
- private int fkid;
-
- public DataInfoEntityMoveTmp() {
- // TODO Auto-generated constructor stub
- }
-
- /**
- * @return the dstPath
- */
- public String getDstPath() {
- return dstPath;
- }
-
- /**
- * @param dstPath the dstPath to set
- */
- public void setDstPath(String dstPath) {
- this.dstPath = dstPath;
- }
-
- /**
- * @return the completeStatus
- */
- public String getCompleteStatus() {
- return completeStatus;
- }
-
- /**
- * @param completeStatus the completeStatus to set
- */
- public void setCompleteStatus(String completeStatus) {
- this.completeStatus = completeStatus;
- }
-
- /**
- * @return the rate
- */
- public int getRate() {
- return rate;
- }
-
- /**
- * @param rate the rate to set
- */
- public void setRate(int rate) {
- this.rate = rate;
- }
-
- /**
- * @return the lastTime
- */
- public String getLastTime() {
- return lastTime;
- }
-
- /**
- * @param lastTime the lastTime to set
- */
- public void setLastTime(String lastTime) {
- this.lastTime = lastTime;
- }
-
- /**
- * @return the fkid
- */
- public int getFkid() {
- return fkid;
- }
-
- /**
- * @param fkid the fkid to set
- */
- public void setFkid(int fkid) {
- this.fkid = fkid;
- }
-
- /**
- * @return the dstVolumeIp
- */
- public String getDstVolumeIp() {
- return dstVolumeIp;
- }
-
- /**
- * @param dstVolumeIp the dstVolumeIp to set
- */
- public void setDstVolumeIp(String dstVolumeIp) {
- this.dstVolumeIp = dstVolumeIp;
- }
-
- /**
- * @return the dstVolumePath
- */
- public String getDstVolumePath() {
- return dstVolumePath;
- }
-
- /**
- * @param dstVolumePath the dstVolumePath to set
- */
- public void setDstVolumePath(String dstVolumePath) {
- this.dstVolumePath = dstVolumePath;
- }
-
-}
+package com.platform.entities;
+
+public class DataInfoEntityMoveTmp extends DataInfoEntity {
+
+ private String dstPath;
+
+ private String completeStatus;
+
+ private int rate;
+
+ /**
+ *
+ */
+ private String lastTime;
+
+ private String dstVolumeIp;
+
+ private String dstVolumePath;
+
+ private int fkid;
+
+ public DataInfoEntityMoveTmp() {
+ // TODO Auto-generated constructor stub
+ }
+
+ /**
+ * @return the dstPath
+ */
+ public String getDstPath() {
+ return dstPath;
+ }
+
+ /**
+ * @param dstPath the dstPath to set
+ */
+ public void setDstPath(String dstPath) {
+ this.dstPath = dstPath;
+ }
+
+ /**
+ * @return the completeStatus
+ */
+ public String getCompleteStatus() {
+ return completeStatus;
+ }
+
+ /**
+ * @param completeStatus the completeStatus to set
+ */
+ public void setCompleteStatus(String completeStatus) {
+ this.completeStatus = completeStatus;
+ }
+
+ /**
+ * @return the rate
+ */
+ public int getRate() {
+ return rate;
+ }
+
+ /**
+ * @param rate the rate to set
+ */
+ public void setRate(int rate) {
+ this.rate = rate;
+ }
+
+ /**
+ * @return the lastTime
+ */
+ public String getLastTime() {
+ return lastTime;
+ }
+
+ /**
+ * @param lastTime the lastTime to set
+ */
+ public void setLastTime(String lastTime) {
+ this.lastTime = lastTime;
+ }
+
+ /**
+ * @return the fkid
+ */
+ public int getFkid() {
+ return fkid;
+ }
+
+ /**
+ * @param fkid the fkid to set
+ */
+ public void setFkid(int fkid) {
+ this.fkid = fkid;
+ }
+
+ /**
+ * @return the dstVolumeIp
+ */
+ public String getDstVolumeIp() {
+ return dstVolumeIp;
+ }
+
+ /**
+ * @param dstVolumeIp the dstVolumeIp to set
+ */
+ public void setDstVolumeIp(String dstVolumeIp) {
+ this.dstVolumeIp = dstVolumeIp;
+ }
+
+ /**
+ * @return the dstVolumePath
+ */
+ public String getDstVolumePath() {
+ return dstVolumePath;
+ }
+
+ /**
+ * @param dstVolumePath the dstVolumePath to set
+ */
+ public void setDstVolumePath(String dstVolumePath) {
+ this.dstVolumePath = dstVolumePath;
+ }
+
+}
diff --git a/src/com/platform/entities/EncodedInfoEntity.java b/src/com/platform/entities/EncodedInfoEntity.java
index 728850ff..3f2f425e 100644
--- a/src/com/platform/entities/EncodedInfoEntity.java
+++ b/src/com/platform/entities/EncodedInfoEntity.java
@@ -1,41 +1,41 @@
-package com.platform.entities;
-
-/**
- *
- * 编码信息实体
- * 行政区划/系统信息
- * @author wuming
- *
- */
-public class EncodedInfoEntity {
- private String name; //名称
- private String code; //编码
-
- public EncodedInfoEntity() {}
-
- public EncodedInfoEntity(String name, String code) {
- this.name = name;
- this.code = code;
- }
-
- public String getName() {
- return name;
- }
-
- public void setName(String name) {
- this.name = name;
- }
-
- public String getCode() {
- return code;
- }
-
- public void setCode(String code) {
- this.code = code;
- }
-
- @Override
- public String toString(){
- return "code=" + this.code + ", name=" + this.name;
- }
-}
+package com.platform.entities;
+
+/**
+ *
+ * 编码信息实体
+ * 行政区划/系统信息
+ * @author wuming
+ *
+ */
+public class EncodedInfoEntity {
+ private String name; //名称
+ private String code; //编码
+
+ public EncodedInfoEntity() {}
+
+ public EncodedInfoEntity(String name, String code) {
+ this.name = name;
+ this.code = code;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public String getCode() {
+ return code;
+ }
+
+ public void setCode(String code) {
+ this.code = code;
+ }
+
+ @Override
+ public String toString(){
+ return "code=" + this.code + ", name=" + this.name;
+ }
+}
diff --git a/src/com/platform/entities/FolderNode.java b/src/com/platform/entities/FolderNode.java
index e9bc91da..5a9a56b7 100644
--- a/src/com/platform/entities/FolderNode.java
+++ b/src/com/platform/entities/FolderNode.java
@@ -1,65 +1,65 @@
-package com.platform.entities;
-
-import java.util.ArrayList;
-import java.util.List;
-
-public class FolderNode {
- private String name;
- private int isFolder; // 1 is file and other integer is folder show children number
- private String path;
- private List childNodes = new ArrayList();
-
-
- public FolderNode() {
- // TODO Auto-generated constructor stub
- }
-
-
- public FolderNode(String name) {
- this.name = name;
- }
-
- public FolderNode(String name, int isFolder) {
- this.name = name;
- this.isFolder = isFolder;
- }
-
- public String getName() {
- return name;
- }
-
- public void setName(String name) {
- this.name = name;
- }
-
- /**
- * @return the isFolder
- */
- public int getIsFolder() {
- return isFolder;
- }
-
- /**
- * @param isFolder the isFolder to set
- */
- public void setIsFolder(int isFolder) {
- this.isFolder = isFolder;
- }
-
- public String getPath() {
- return path;
- }
-
- public void setPath(String path) {
- this.path = path;
- }
-
- public List getChildNodes() {
- return childNodes;
- }
-
- public void setChildNodes(List childNodes) {
- this.childNodes = childNodes;
- }
-
-}
+package com.platform.entities;
+
+import java.util.ArrayList;
+import java.util.List;
+
+public class FolderNode {
+ private String name;
+ private int isFolder; // 1 is file and other integer is folder show children number
+ private String path;
+ private List childNodes = new ArrayList();
+
+
+ public FolderNode() {
+ // TODO Auto-generated constructor stub
+ }
+
+
+ public FolderNode(String name) {
+ this.name = name;
+ }
+
+ public FolderNode(String name, int isFolder) {
+ this.name = name;
+ this.isFolder = isFolder;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ /**
+ * @return the isFolder
+ */
+ public int getIsFolder() {
+ return isFolder;
+ }
+
+ /**
+ * @param isFolder the isFolder to set
+ */
+ public void setIsFolder(int isFolder) {
+ this.isFolder = isFolder;
+ }
+
+ public String getPath() {
+ return path;
+ }
+
+ public void setPath(String path) {
+ this.path = path;
+ }
+
+ public List getChildNodes() {
+ return childNodes;
+ }
+
+ public void setChildNodes(List childNodes) {
+ this.childNodes = childNodes;
+ }
+
+}
diff --git a/src/com/platform/entities/GatherOracleInfo.java b/src/com/platform/entities/GatherOracleInfo.java
index b06fee63..4ceca3b4 100644
--- a/src/com/platform/entities/GatherOracleInfo.java
+++ b/src/com/platform/entities/GatherOracleInfo.java
@@ -1,82 +1,82 @@
-package com.platform.entities;
-
-import com.platform.entities.OracleConnectorParams;
-
-public class GatherOracleInfo extends OracleConnectorParams {
-
- private String tableName;
-
- private String suffix;
-
- private int id;
-
- private String remove;
-
- /**
- * 0:未知状态, 1:连接成功 ,2:在使用 ,3 :失败
- */
- private int status;
-
- public GatherOracleInfo() {
- super();
- }
-
- public GatherOracleInfo(String port, String ip, String name, String user,
- String password, String database) {
- super(port, ip, name, user, password, database);
- // TODO Auto-generated constructor stub
- }
-
- public GatherOracleInfo(String port, String ip, String name, String user,
- String password, String database, int _id, String tableName, String suffix, int status) {
- super(port, ip, name, user, password, database);
- this.tableName = tableName;
- this.suffix = suffix;
- this.id=_id;
- this.status = status;
- }
-
-
-
-
- public String getTableName() {
- return tableName;
- }
-
- public void setTableName(String tableName) {
- this.tableName = tableName;
- }
-
- public String getSuffix() {
- return suffix;
- }
-
- public void setSuffix(String suffix) {
- this.suffix = suffix;
- }
-
- public int getId() {
- return id;
- }
-
- public void setId(int id) {
- this.id = id;
- }
-
- public int getStatus() {
- return status;
- }
-
- public void setStatus(int status) {
- this.status = status;
- }
-
- public String getRemove() {
- return remove;
- }
-
- public void setRemove(String remove) {
- this.remove = remove;
- }
-
-}
+package com.platform.entities;
+
+import com.platform.entities.OracleConnectorParams;
+
+public class GatherOracleInfo extends OracleConnectorParams {
+
+ private String tableName;
+
+ private String suffix;
+
+ private int id;
+
+ private String remove;
+
+ /**
+ * 0:未知状态, 1:连接成功 ,2:在使用 ,3 :失败
+ */
+ private int status;
+
+ public GatherOracleInfo() {
+ super();
+ }
+
+ public GatherOracleInfo(String port, String ip, String name, String user,
+ String password, String database) {
+ super(port, ip, name, user, password, database);
+ // TODO Auto-generated constructor stub
+ }
+
+ public GatherOracleInfo(String port, String ip, String name, String user,
+ String password, String database, int _id, String tableName, String suffix, int status) {
+ super(port, ip, name, user, password, database);
+ this.tableName = tableName;
+ this.suffix = suffix;
+ this.id=_id;
+ this.status = status;
+ }
+
+
+
+
+ public String getTableName() {
+ return tableName;
+ }
+
+ public void setTableName(String tableName) {
+ this.tableName = tableName;
+ }
+
+ public String getSuffix() {
+ return suffix;
+ }
+
+ public void setSuffix(String suffix) {
+ this.suffix = suffix;
+ }
+
+ public int getId() {
+ return id;
+ }
+
+ public void setId(int id) {
+ this.id = id;
+ }
+
+ public int getStatus() {
+ return status;
+ }
+
+ public void setStatus(int status) {
+ this.status = status;
+ }
+
+ public String getRemove() {
+ return remove;
+ }
+
+ public void setRemove(String remove) {
+ this.remove = remove;
+ }
+
+}
diff --git a/src/com/platform/entities/GfsFolderEntity.java b/src/com/platform/entities/GfsFolderEntity.java
index ed87f85b..13429ddf 100644
--- a/src/com/platform/entities/GfsFolderEntity.java
+++ b/src/com/platform/entities/GfsFolderEntity.java
@@ -1,77 +1,77 @@
-
-/**
- * 文件名 : GfsPathModel.java
- * 版权 : <版权/公司名>
- * 描述 : <描述>
- * @author chen
- * 版本 : <版本>
- * 修改时间: 2016年9月8日
- * 修改内容: <修改内容>
- */
-package com.platform.entities;
-
-import java.util.List;
-
-/**
- * <一句话功能简述>
- * <功能详细描述>
- * @author chen
- * @version [版本号,2016年9月8日]
- * @see [相关类/方法]
- * @since [产品/模块版本]
- */
-
-public class GfsFolderEntity {
-
- /** 当前路径 */
- private String path;
-
- /** 当前路径 */
- private String name;
-
- /** 子目录 */
- private List children;
-
- /**
- * @return the path
- */
- public String getPath() {
- return path;
- }
-
- /**
- * @param path the path to set
- */
- public void setPath(String path) {
- this.path = path;
- }
-
- /**
- * @return the name
- */
- public String getName() {
- return name;
- }
-
- /**
- * @param name the name to set
- */
- public void setName(String name) {
- this.name = name;
- }
-
- /**
- * @return the children
- */
- public List getChildren() {
- return children;
- }
-
- /**
- * @param children the children to set
- */
- public void setChildren(List children) {
- this.children = children;
- }
-
-}
+
+/**
+ * 文件名 : GfsPathModel.java
+ * 版权 : <版权/公司名>
+ * 描述 : <描述>
+ * @author chen
+ * 版本 : <版本>
+ * 修改时间: 2016年9月8日
+ * 修改内容: <修改内容>
+ */
+package com.platform.entities;
+
+import java.util.List;
+
+/**
+ * <一句话功能简述>
+ * <功能详细描述>
+ * @author chen
+ * @version [版本号,2016年9月8日]
+ * @see [相关类/方法]
+ * @since [产品/模块版本]
+ */
+
+public class GfsFolderEntity {
+
+ /** 当前路径 */
+ private String path;
+
+ /** 当前路径 */
+ private String name;
+
+ /** 子目录 */
+ private List children;
+
+ /**
+ * @return the path
+ */
+ public String getPath() {
+ return path;
+ }
+
+ /**
+ * @param path the path to set
+ */
+ public void setPath(String path) {
+ this.path = path;
+ }
+
+ /**
+ * @return the name
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * @param name the name to set
+ */
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ /**
+ * @return the children
+ */
+ public List getChildren() {
+ return children;
+ }
+
+ /**
+ * @param children the children to set
+ */
+ public void setChildren(List children) {
+ this.children = children;
+ }
+
+}
diff --git a/src/com/platform/entities/OracleConnectorParams.java b/src/com/platform/entities/OracleConnectorParams.java
index 8391a84a..0e1ba753 100644
--- a/src/com/platform/entities/OracleConnectorParams.java
+++ b/src/com/platform/entities/OracleConnectorParams.java
@@ -1,93 +1,93 @@
-package com.platform.entities;
-
-import java.util.Properties;
-
-import com.platform.utils.ConfigPropertyReader;
-import com.platform.utils.Configs;
-
-public class OracleConnectorParams {
- private String port;
- private String ip;
- private String name;
- private String user;
- private String password;
- private String databaseName;
-
- public OracleConnectorParams() {
- // TODO Auto-generated constructor stub
- maybeInit();
- }
-
- public OracleConnectorParams(String port, String ip, String name) {
- maybeInit();
- this.port = port;
- this.ip = ip;
- this.name = name;
- }
-
- public OracleConnectorParams(String port, String ip, String name,
- String user, String password, String database) {
- this.port = port;
- this.ip = ip;
- this.name = name;
- this.user = user;
- this.password = password;
- this.databaseName = database;
- }
-
- private void maybeInit() {
- Properties properties = ConfigPropertyReader.Builder(
- Configs.CONFIG_LOCALTION).getProperties();
- this.user = properties.getProperty("collect-user-name");
- this.password = properties.getProperty("collect-password");
- this.databaseName = properties.getProperty("collect-service-name");
- }
-
- public String getPort() {
- return port;
- }
-
- public void setPort(String port) {
- this.port = port;
- }
-
- public String getIp() {
- return ip;
- }
-
- public void setIp(String ip) {
- this.ip = ip;
- }
-
- public String getName() {
- return name;
- }
-
- public void setName(String name) {
- this.name = name;
- }
-
- public String getUser() {
- return user;
- }
-
- public void setUser(String user) {
- this.user = user;
- }
-
- public String getPassword() {
- return password;
- }
-
- public void setPassword(String password) {
- this.password = password;
- }
-
- public String getDatabaseName() {
- return databaseName;
- }
-
- public void setDatabaseName(String databaseName) {
- this.databaseName = databaseName;
- }
-}
+package com.platform.entities;
+
+import java.util.Properties;
+
+import com.platform.utils.ConfigPropertyReader;
+import com.platform.utils.Configs;
+
+public class OracleConnectorParams {
+ private String port;
+ private String ip;
+ private String name;
+ private String user;
+ private String password;
+ private String databaseName;
+
+ public OracleConnectorParams() {
+ // TODO Auto-generated constructor stub
+ maybeInit();
+ }
+
+ public OracleConnectorParams(String port, String ip, String name) {
+ maybeInit();
+ this.port = port;
+ this.ip = ip;
+ this.name = name;
+ }
+
+ public OracleConnectorParams(String port, String ip, String name,
+ String user, String password, String database) {
+ this.port = port;
+ this.ip = ip;
+ this.name = name;
+ this.user = user;
+ this.password = password;
+ this.databaseName = database;
+ }
+
+ private void maybeInit() {
+ Properties properties = ConfigPropertyReader.Builder(
+ Configs.CONFIG_LOCALTION).getProperties();
+ this.user = properties.getProperty("collect-user-name");
+ this.password = properties.getProperty("collect-password");
+ this.databaseName = properties.getProperty("collect-service-name");
+ }
+
+ public String getPort() {
+ return port;
+ }
+
+ public void setPort(String port) {
+ this.port = port;
+ }
+
+ public String getIp() {
+ return ip;
+ }
+
+ public void setIp(String ip) {
+ this.ip = ip;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public String getUser() {
+ return user;
+ }
+
+ public void setUser(String user) {
+ this.user = user;
+ }
+
+ public String getPassword() {
+ return password;
+ }
+
+ public void setPassword(String password) {
+ this.password = password;
+ }
+
+ public String getDatabaseName() {
+ return databaseName;
+ }
+
+ public void setDatabaseName(String databaseName) {
+ this.databaseName = databaseName;
+ }
+}
diff --git a/src/com/platform/entities/PagerOptions.java b/src/com/platform/entities/PagerOptions.java
index e69e560a..96c5b77f 100644
--- a/src/com/platform/entities/PagerOptions.java
+++ b/src/com/platform/entities/PagerOptions.java
@@ -1,158 +1,158 @@
-package com.platform.entities;
-
-import java.util.List;
-
-public class PagerOptions {
- private Integer currentPageNum; //当前页码
-
- private String dataType; //数据类型
-
- private String submittedBatch; //数据批次
-
- private String cityName; //城市名称
-
- private String districtName; //区县名
-
- private Integer dataVersion; //数据版本
-
- private String systemName; //系统名称
-
- private String dataYear; // 数据年度
-
- private Integer limit; //一次查询返回记录条数
-
- private Integer offset; // 查询偏移量:起始id
-
- private Integer totalLimit; //当前页前面已有多少条数据
-
- private Integer priorTableSize; //前一次操作一页显示的数据条数
-
- private String keyQuery;
-
- private String[] array;
-
- public Integer getCurrentPageNum() {
- return currentPageNum;
- }
-
- public void setCurrentPageNum(Integer currentPageNum) {
- this.currentPageNum = currentPageNum;
- }
-
- public String getDataType() {
- return dataType;
- }
-
- public void setDataType(String dataType) {
- this.dataType = dataType;
- }
-
- public String getSubmittedBatch() {
- return submittedBatch;
- }
-
- public void setSubmittedBatch(String submittedBatch) {
- this.submittedBatch = submittedBatch;
- }
-
- public String getCityName() {
- return cityName;
- }
-
- public void setCityName(String cityName) {
- this.cityName = cityName;
- }
-
- public String getDistrictName() {
- return districtName;
- }
-
- public void setDistrictName(String districtName) {
- this.districtName = districtName;
- }
-
- public Integer getDataVersion() {
- return dataVersion;
- }
-
- public void setDataVersion(Integer dataVersion) {
- this.dataVersion = dataVersion;
- }
-
- public String getSystemName() {
- return systemName;
- }
-
- public void setSystemName(String systemName) {
- this.systemName = systemName;
- }
-
- public String getDataYear() {
- return dataYear;
- }
-
- public void setDataYear(String dataYear) {
- this.dataYear = dataYear;
- }
-
- public Integer getLimit() {
- return limit;
- }
-
- public void setLimit(Integer limit) {
- this.limit = limit;
- }
-
- public Integer getOffset() {
- return offset;
- }
-
- public void setOffset(Integer offset) {
- this.offset = offset;
- }
-
- public Integer getTotalLimit() {
- return totalLimit;
- }
-
- public void setTotalLimit(Integer totalLimit) {
- this.totalLimit = totalLimit;
- }
-
- public Integer getPriorTableSize() {
- return priorTableSize;
- }
-
- public void setPriorTableSize(Integer priorTableSize) {
- this.priorTableSize = priorTableSize;
- }
-
- /**
- * @return the keyQuery
- */
- public String getKeyQuery() {
- return keyQuery;
- }
-
- /**
- * @param keyQuery the keyQuery to set
- */
- public void setKeyQuery(String keyQuery) {
- this.keyQuery = keyQuery;
- }
-
- /**
- * @return the array
- */
- public String[] getArray() {
- return array;
- }
-
- /**
- * @param array the array to set
- */
- public void setArray(String[] array) {
- this.array = array;
- }
-
-}
+package com.platform.entities;
+
+import java.util.List;
+
+public class PagerOptions {
+ private Integer currentPageNum; //当前页码
+
+ private String dataType; //数据类型
+
+ private String submittedBatch; //数据批次
+
+ private String cityName; //城市名称
+
+ private String districtName; //区县名
+
+ private Integer dataVersion; //数据版本
+
+ private String systemName; //系统名称
+
+ private String dataYear; // 数据年度
+
+ private Integer limit; //一次查询返回记录条数
+
+ private Integer offset; // 查询偏移量:起始id
+
+ private Integer totalLimit; //当前页前面已有多少条数据
+
+ private Integer priorTableSize; //前一次操作一页显示的数据条数
+
+ private String keyQuery;
+
+ private String[] array;
+
+ public Integer getCurrentPageNum() {
+ return currentPageNum;
+ }
+
+ public void setCurrentPageNum(Integer currentPageNum) {
+ this.currentPageNum = currentPageNum;
+ }
+
+ public String getDataType() {
+ return dataType;
+ }
+
+ public void setDataType(String dataType) {
+ this.dataType = dataType;
+ }
+
+ public String getSubmittedBatch() {
+ return submittedBatch;
+ }
+
+ public void setSubmittedBatch(String submittedBatch) {
+ this.submittedBatch = submittedBatch;
+ }
+
+ public String getCityName() {
+ return cityName;
+ }
+
+ public void setCityName(String cityName) {
+ this.cityName = cityName;
+ }
+
+ public String getDistrictName() {
+ return districtName;
+ }
+
+ public void setDistrictName(String districtName) {
+ this.districtName = districtName;
+ }
+
+ public Integer getDataVersion() {
+ return dataVersion;
+ }
+
+ public void setDataVersion(Integer dataVersion) {
+ this.dataVersion = dataVersion;
+ }
+
+ public String getSystemName() {
+ return systemName;
+ }
+
+ public void setSystemName(String systemName) {
+ this.systemName = systemName;
+ }
+
+ public String getDataYear() {
+ return dataYear;
+ }
+
+ public void setDataYear(String dataYear) {
+ this.dataYear = dataYear;
+ }
+
+ public Integer getLimit() {
+ return limit;
+ }
+
+ public void setLimit(Integer limit) {
+ this.limit = limit;
+ }
+
+ public Integer getOffset() {
+ return offset;
+ }
+
+ public void setOffset(Integer offset) {
+ this.offset = offset;
+ }
+
+ public Integer getTotalLimit() {
+ return totalLimit;
+ }
+
+ public void setTotalLimit(Integer totalLimit) {
+ this.totalLimit = totalLimit;
+ }
+
+ public Integer getPriorTableSize() {
+ return priorTableSize;
+ }
+
+ public void setPriorTableSize(Integer priorTableSize) {
+ this.priorTableSize = priorTableSize;
+ }
+
+ /**
+ * @return the keyQuery
+ */
+ public String getKeyQuery() {
+ return keyQuery;
+ }
+
+ /**
+ * @param keyQuery the keyQuery to set
+ */
+ public void setKeyQuery(String keyQuery) {
+ this.keyQuery = keyQuery;
+ }
+
+ /**
+ * @return the array
+ */
+ public String[] getArray() {
+ return array;
+ }
+
+ /**
+ * @param array the array to set
+ */
+ public void setArray(String[] array) {
+ this.array = array;
+ }
+
+}
diff --git a/src/com/platform/entities/RegionalismEntity.java b/src/com/platform/entities/RegionalismEntity.java
index ad494fca..ba1b7f2b 100644
--- a/src/com/platform/entities/RegionalismEntity.java
+++ b/src/com/platform/entities/RegionalismEntity.java
@@ -1,53 +1,53 @@
-package com.platform.entities;
-
-public class RegionalismEntity {
-
- private String code;
-
- private String cityName;
-
- private String districtName;
-
- /**
- * @return the code
- */
- public String getCode() {
- return code;
- }
-
- /**
- * @param code the code to set
- */
- public void setCode(String code) {
- this.code = code;
- }
-
- /**
- * @return the cityName
- */
- public String getCityName() {
- return cityName;
- }
-
- /**
- * @param cityName the cityName to set
- */
- public void setCityName(String cityName) {
- this.cityName = cityName;
- }
-
- /**
- * @return the districtName
- */
- public String getDistrictName() {
- return districtName;
- }
-
- /**
- * @param districtName the districtName to set
- */
- public void setDistrictName(String districtName) {
- this.districtName = districtName;
- }
-
-}
+package com.platform.entities;
+
+public class RegionalismEntity {
+
+ private String code;
+
+ private String cityName;
+
+ private String districtName;
+
+ /**
+ * @return the code
+ */
+ public String getCode() {
+ return code;
+ }
+
+ /**
+ * @param code the code to set
+ */
+ public void setCode(String code) {
+ this.code = code;
+ }
+
+ /**
+ * @return the cityName
+ */
+ public String getCityName() {
+ return cityName;
+ }
+
+ /**
+ * @param cityName the cityName to set
+ */
+ public void setCityName(String cityName) {
+ this.cityName = cityName;
+ }
+
+ /**
+ * @return the districtName
+ */
+ public String getDistrictName() {
+ return districtName;
+ }
+
+ /**
+ * @param districtName the districtName to set
+ */
+ public void setDistrictName(String districtName) {
+ this.districtName = districtName;
+ }
+
+}
diff --git a/src/com/platform/entities/SimpleConfigParamsBean.java b/src/com/platform/entities/SimpleConfigParamsBean.java
index 6453a5a7..520d5ee7 100644
--- a/src/com/platform/entities/SimpleConfigParamsBean.java
+++ b/src/com/platform/entities/SimpleConfigParamsBean.java
@@ -1,44 +1,44 @@
-package com.platform.entities;
-
-public class SimpleConfigParamsBean {
- private String masterUrl;
-
- private String oracleUserName;
-
- private String oraclePassword;
-
- private String oracleDBName;
-
- public String getMasterUrl() {
- return masterUrl;
- }
-
- public void setMasterUrl(String masterUrl) {
- this.masterUrl = masterUrl;
- }
-
- public String getOracleUserName() {
- return oracleUserName;
- }
-
- public void setOracleUserName(String oracleUserName) {
- this.oracleUserName = oracleUserName;
- }
-
- public String getOraclePassword() {
- return oraclePassword;
- }
-
- public void setOraclePassword(String oraclePassword) {
- this.oraclePassword = oraclePassword;
- }
-
- public String getOracleDBName() {
- return oracleDBName;
- }
-
- public void setOracleDBName(String oracleDBName) {
- this.oracleDBName = oracleDBName;
- }
-
-}
+package com.platform.entities;
+
+public class SimpleConfigParamsBean {
+ private String masterUrl;
+
+ private String oracleUserName;
+
+ private String oraclePassword;
+
+ private String oracleDBName;
+
+ public String getMasterUrl() {
+ return masterUrl;
+ }
+
+ public void setMasterUrl(String masterUrl) {
+ this.masterUrl = masterUrl;
+ }
+
+ public String getOracleUserName() {
+ return oracleUserName;
+ }
+
+ public void setOracleUserName(String oracleUserName) {
+ this.oracleUserName = oracleUserName;
+ }
+
+ public String getOraclePassword() {
+ return oraclePassword;
+ }
+
+ public void setOraclePassword(String oraclePassword) {
+ this.oraclePassword = oraclePassword;
+ }
+
+ public String getOracleDBName() {
+ return oracleDBName;
+ }
+
+ public void setOracleDBName(String oracleDBName) {
+ this.oracleDBName = oracleDBName;
+ }
+
+}
diff --git a/src/com/platform/entities/SystemEntity.java b/src/com/platform/entities/SystemEntity.java
index 40eb0750..6ac6cfb8 100644
--- a/src/com/platform/entities/SystemEntity.java
+++ b/src/com/platform/entities/SystemEntity.java
@@ -1,37 +1,37 @@
-package com.platform.entities;
-
-public class SystemEntity {
-
- private int code;
-
- private String systemName;
-
- /**
- * @return the code
- */
- public int getCode() {
- return code;
- }
-
- /**
- * @param code the code to set
- */
- public void setCode(int code) {
- this.code = code;
- }
-
- /**
- * @return the systemName
- */
- public String getSystemName() {
- return systemName;
- }
-
- /**
- * @param systemName the systemName to set
- */
- public void setSystemName(String systemName) {
- this.systemName = systemName;
- }
-
-}
+package com.platform.entities;
+
+public class SystemEntity {
+
+ private int code;
+
+ private String systemName;
+
+ /**
+ * @return the code
+ */
+ public int getCode() {
+ return code;
+ }
+
+ /**
+ * @param code the code to set
+ */
+ public void setCode(int code) {
+ this.code = code;
+ }
+
+ /**
+ * @return the systemName
+ */
+ public String getSystemName() {
+ return systemName;
+ }
+
+ /**
+ * @param systemName the systemName to set
+ */
+ public void setSystemName(String systemName) {
+ this.systemName = systemName;
+ }
+
+}
diff --git a/src/com/platform/entities/VolumeEntity.java b/src/com/platform/entities/VolumeEntity.java
index ae2604ea..13b4eb27 100644
--- a/src/com/platform/entities/VolumeEntity.java
+++ b/src/com/platform/entities/VolumeEntity.java
@@ -1,162 +1,162 @@
-
-/**
- * 文件名 : VolumeEntity.java
- * 版权 : <版权/公司名>
- * 描述 : <描述>
- * @author chen
- * 版本 : <版本>
- * 修改时间: 2016年9月9日
- * 修改内容: <修改内容>
- */
-package com.platform.entities;
-
-import java.util.ArrayList;
-import java.util.List;
-
-/**
- * <一句话功能简述> gfs的 volume 对象
- * <功能详细描述>
- * @author chen
- * @version [版本号,2016年9月9日]
- * @see [相关类/方法]
- * @since [产品/模块版本]
- */
-
-public class VolumeEntity {
-
- /** volume总大小 */
- private double allSize;
-
- /** volume已使用大小 */
- private double usedSize;
-
- /** volume名称 */
- private String name;
-
- /** 挂载点 */
- private String path;
-
- /** * exist,正常返回状态Started,Stopped,Created */
- private String status;
-
- private String type;
-
- /** volume树形目录 */
- private List folder = new ArrayList();
-
- /** volume的 块 */
- private List brick = new ArrayList();
-
- /**
- * @return the allSize
- */
- public double getAllSize() {
- return allSize;
- }
-
- /**
- * @param allSize the allSize to set
- */
- public void setAllSize(double allSize) {
- this.allSize = allSize;
- }
-
- /**
- * @return the usedSize
- */
- public double getUsedSize() {
- return usedSize;
- }
-
- /**
- * @param usedSize the usedSize to set
- */
- public void setUsedSize(double usedSize) {
- this.usedSize = usedSize;
- }
-
- /**
- * @return the name
- */
- public String getName() {
- return name;
- }
-
- /**
- * @param name the name to set
- */
- public void setName(String name) {
- this.name = name;
- }
-
- /**
- * @return the path
- */
- public String getPath() {
- return path;
- }
-
- /**
- * @param path the path to set
- */
- public void setPath(String path) {
- this.path = path;
- }
-
- /**
- * @return the status
- */
- public String getStatus() {
- return status;
- }
-
- /**
- * @param status the status to set
- */
- public void setStatus(String status) {
- this.status = status;
- }
-
- /**
- * @return the type
- */
- public String getType() {
- return type;
- }
-
- /**
- * @param type the type to set
- */
- public void setType(String type) {
- this.type = type;
- }
-
- /**
- * @return the folder
- */
- public List getFolder() {
- return folder;
- }
-
- /**
- * @param folder the folder to set
- */
- public void setFolder(List folder) {
- this.folder = folder;
- }
-
- /**
- * @return the brick
- */
- public List getBrick() {
- return brick;
- }
-
- /**
- * @param brick the brick to set
- */
- public void setBrick(List brick) {
- this.brick = brick;
- }
-
-}
+
+/**
+ * 文件名 : VolumeEntity.java
+ * 版权 : <版权/公司名>
+ * 描述 : <描述>
+ * @author chen
+ * 版本 : <版本>
+ * 修改时间: 2016年9月9日
+ * 修改内容: <修改内容>
+ */
+package com.platform.entities;
+
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ * <一句话功能简述> gfs的 volume 对象
+ * <功能详细描述>
+ * @author chen
+ * @version [版本号,2016年9月9日]
+ * @see [相关类/方法]
+ * @since [产品/模块版本]
+ */
+
+public class VolumeEntity {
+
+ /** volume总大小 */
+ private double allSize;
+
+ /** volume已使用大小 */
+ private double usedSize;
+
+ /** volume名称 */
+ private String name;
+
+ /** 挂载点 */
+ private String path;
+
+ /** * exist,正常返回状态Started,Stopped,Created */
+ private String status;
+
+ private String type;
+
+ /** volume树形目录 */
+ private List folder = new ArrayList();
+
+ /** volume的 块 */
+ private List brick = new ArrayList();
+
+ /**
+ * @return the allSize
+ */
+ public double getAllSize() {
+ return allSize;
+ }
+
+ /**
+ * @param allSize the allSize to set
+ */
+ public void setAllSize(double allSize) {
+ this.allSize = allSize;
+ }
+
+ /**
+ * @return the usedSize
+ */
+ public double getUsedSize() {
+ return usedSize;
+ }
+
+ /**
+ * @param usedSize the usedSize to set
+ */
+ public void setUsedSize(double usedSize) {
+ this.usedSize = usedSize;
+ }
+
+ /**
+ * @return the name
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * @param name the name to set
+ */
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ /**
+ * @return the path
+ */
+ public String getPath() {
+ return path;
+ }
+
+ /**
+ * @param path the path to set
+ */
+ public void setPath(String path) {
+ this.path = path;
+ }
+
+ /**
+ * @return the status
+ */
+ public String getStatus() {
+ return status;
+ }
+
+ /**
+ * @param status the status to set
+ */
+ public void setStatus(String status) {
+ this.status = status;
+ }
+
+ /**
+ * @return the type
+ */
+ public String getType() {
+ return type;
+ }
+
+ /**
+ * @param type the type to set
+ */
+ public void setType(String type) {
+ this.type = type;
+ }
+
+ /**
+ * @return the folder
+ */
+ public List getFolder() {
+ return folder;
+ }
+
+ /**
+ * @param folder the folder to set
+ */
+ public void setFolder(List folder) {
+ this.folder = folder;
+ }
+
+ /**
+ * @return the brick
+ */
+ public List getBrick() {
+ return brick;
+ }
+
+ /**
+ * @param brick the brick to set
+ */
+ public void setBrick(List brick) {
+ this.brick = brick;
+ }
+
+}
diff --git a/src/com/platform/glusterfs/CheckoutMD5.java b/src/com/platform/glusterfs/CheckoutMD5.java
index 810ec443..d0be3dad 100644
--- a/src/com/platform/glusterfs/CheckoutMD5.java
+++ b/src/com/platform/glusterfs/CheckoutMD5.java
@@ -1,106 +1,106 @@
-package com.platform.glusterfs;
-
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-
-import org.apache.log4j.Logger;
-import org.aspectj.weaver.ast.And;
-
-import com.mysql.jdbc.log.Log;
-import com.platform.utils.Constant;
-
-public class CheckoutMD5 {
- public static Logger log = Logger.getLogger(CheckoutMD5.class);
- String sourcePath;
- String destPath;
- String dataName;
- // String cmd_crateSourceMD5File="find "+sourcePath+dataName+"/app/ -type f
- // -print0 | xargs -0 md5sum | sort >"+deskPath+dataName+"_md5.txt";
- String cmd_getSourceMD5File;
- // String cmd_crateDestMD5File="find "+destPath+dataName+"/app/ -type f
- // -print0 | xargs -0 md5sum | sort >"+deskPath+dataName+"_md5.txt";
- String cmd_getDestMD5File;
- Map source_md5 = new HashMap();
- Map dest_md5 = new HashMap();
-
- public CheckoutMD5() {
- // TODO Auto-generated constructor stub
- }
-
- public CheckoutMD5(String sourcePath, String destPath, String dataName) {
- // TODO Auto-generated constructor stub
- this.sourcePath = sourcePath;
- this.destPath = destPath;
- this.dataName = dataName;
- cmd_getSourceMD5File = "find " + sourcePath + dataName + "/app/ -type f -print0 | xargs -0 md5sum | sort ";
- cmd_getDestMD5File = "find " + destPath + dataName + "/app/ -type f -print0 | xargs -0 md5sum | sort ";
- }
-
- /**
- * 文件夹校验 校验sourcePath和destPath是否完全相同,如果相同,返回1;
- * 如果不相同,返回0,如果获取文件MD5出错,返回-1;如何源文件不存在返回-2;目标文件不存在,返回-3;
- *
- * @param sourcePath
- * @param destPath
- * @return
- * @see [类、类#方法、类#成员]
- */
- public int checkoutMD5Folder(String sourcePath, String destPath) {
- log.info("start checkout md5 "+sourcePath+" and "+ destPath);
- List wrong_files = new ArrayList();
- String source_cmd = "find " + sourcePath + " -type f -print0 | xargs -0 md5sum";
- String dest_cmd = "find " + destPath + " -type f -print0 | xargs -0 md5sum";
- List sourceReStrings = Constant.ganymedSSH.execCmdWaitAcquiescent(source_cmd);
- if (sourceReStrings == null || sourceReStrings.size() == 0) {
- log.error("get " + sourcePath + " MD5 error!");
- return -1;
- }
- if(sourceReStrings.get(0).contains(Constant.noSuchFile)){
- log.error(sourcePath+" is not exist!");
- return -2;
- }
- List destReStrings = Constant.ganymedSSH.execCmdWaitAcquiescent(dest_cmd);
- if (destReStrings == null || destReStrings.size() == 0) {
- log.error("get " + destReStrings + " MD5 error!");
- return -1;
- }
- if(destReStrings.get(0).contains(Constant.noSuchFile)){
- log.error(destPath+" is not exist!");
- return -3;
- }
- Map source_md5 = new HashMap();
- Map dest_md5 = new HashMap();
- for (String line : sourceReStrings) {
- String[] lines = line.split(" ");
- String key = lines[1].replace(sourcePath, "").trim();
- String value = lines[0].trim();
- source_md5.put(key, value);
- }
- for (String line : destReStrings) {
- String[] lines = line.split(" ");
- String key = lines[1].replace(destPath, "").trim();
- String value = lines[0].trim();
- dest_md5.put(key, value);
- }
- for (Map.Entry mapEntry : source_md5.entrySet()) {
- if (!(dest_md5.containsKey(mapEntry.getKey())
- && dest_md5.get(mapEntry.getKey()).equals(mapEntry.getValue()))) {
-
- log.info(sourcePath + " and " + destPath + " is not same!");
- return 0;
- // System.out.println(mapEntry.getKey());
- }
-
- }
-
- log.info(sourcePath + " and " + destPath + " is same!");
- return 1;
- }
-
- public static void main(String[] args) {
- CheckoutMD5 checkoutMD5 = new CheckoutMD5();
- System.out.println(checkoutMD5.checkoutMD5Folder("/home/v1_copy","/home/ubuntu"));
- }
-}
+package com.platform.glusterfs;
+
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+import org.apache.log4j.Logger;
+import org.aspectj.weaver.ast.And;
+
+import com.mysql.jdbc.log.Log;
+import com.platform.utils.Constant;
+
+public class CheckoutMD5 {
+ public static Logger log = Logger.getLogger(CheckoutMD5.class);
+ String sourcePath;
+ String destPath;
+ String dataName;
+ // String cmd_crateSourceMD5File="find "+sourcePath+dataName+"/app/ -type f
+ // -print0 | xargs -0 md5sum | sort >"+deskPath+dataName+"_md5.txt";
+ String cmd_getSourceMD5File;
+ // String cmd_crateDestMD5File="find "+destPath+dataName+"/app/ -type f
+ // -print0 | xargs -0 md5sum | sort >"+deskPath+dataName+"_md5.txt";
+ String cmd_getDestMD5File;
+ Map source_md5 = new HashMap();
+ Map dest_md5 = new HashMap();
+
+ public CheckoutMD5() {
+ // TODO Auto-generated constructor stub
+ }
+
+ public CheckoutMD5(String sourcePath, String destPath, String dataName) {
+ // TODO Auto-generated constructor stub
+ this.sourcePath = sourcePath;
+ this.destPath = destPath;
+ this.dataName = dataName;
+ cmd_getSourceMD5File = "find " + sourcePath + dataName + "/app/ -type f -print0 | xargs -0 md5sum | sort ";
+ cmd_getDestMD5File = "find " + destPath + dataName + "/app/ -type f -print0 | xargs -0 md5sum | sort ";
+ }
+
+ /**
+ * 文件夹校验 校验sourcePath和destPath是否完全相同,如果相同,返回1;
+ * 如果不相同,返回0,如果获取文件MD5出错,返回-1;如何源文件不存在返回-2;目标文件不存在,返回-3;
+ *
+ * @param sourcePath
+ * @param destPath
+ * @return
+ * @see [类、类#方法、类#成员]
+ */
+ public int checkoutMD5Folder(String sourcePath, String destPath) {
+ log.info("start checkout md5 "+sourcePath+" and "+ destPath);
+ List wrong_files = new ArrayList();
+ String source_cmd = "find " + sourcePath + " -type f -print0 | xargs -0 md5sum";
+ String dest_cmd = "find " + destPath + " -type f -print0 | xargs -0 md5sum";
+ List sourceReStrings = Constant.ganymedSSH.execCmdWaitAcquiescent(source_cmd);
+ if (sourceReStrings == null || sourceReStrings.size() == 0) {
+ log.error("get " + sourcePath + " MD5 error!");
+ return -1;
+ }
+ if(sourceReStrings.get(0).contains(Constant.noSuchFile)){
+ log.error(sourcePath+" is not exist!");
+ return -2;
+ }
+ List destReStrings = Constant.ganymedSSH.execCmdWaitAcquiescent(dest_cmd);
+ if (destReStrings == null || destReStrings.size() == 0) {
+ log.error("get " + destReStrings + " MD5 error!");
+ return -1;
+ }
+ if(destReStrings.get(0).contains(Constant.noSuchFile)){
+ log.error(destPath+" is not exist!");
+ return -3;
+ }
+ Map source_md5 = new HashMap();
+ Map dest_md5 = new HashMap();
+ for (String line : sourceReStrings) {
+ String[] lines = line.split(" ");
+ String key = lines[1].replace(sourcePath, "").trim();
+ String value = lines[0].trim();
+ source_md5.put(key, value);
+ }
+ for (String line : destReStrings) {
+ String[] lines = line.split(" ");
+ String key = lines[1].replace(destPath, "").trim();
+ String value = lines[0].trim();
+ dest_md5.put(key, value);
+ }
+ for (Map.Entry mapEntry : source_md5.entrySet()) {
+ if (!(dest_md5.containsKey(mapEntry.getKey())
+ && dest_md5.get(mapEntry.getKey()).equals(mapEntry.getValue()))) {
+
+ log.info(sourcePath + " and " + destPath + " is not same!");
+ return 0;
+ // System.out.println(mapEntry.getKey());
+ }
+
+ }
+
+ log.info(sourcePath + " and " + destPath + " is same!");
+ return 1;
+ }
+
+ public static void main(String[] args) {
+ CheckoutMD5 checkoutMD5 = new CheckoutMD5();
+ System.out.println(checkoutMD5.checkoutMD5Folder("/home/v1_copy","/home/ubuntu"));
+ }
+}
diff --git a/src/com/platform/glusterfs/ClusterInfo.java b/src/com/platform/glusterfs/ClusterInfo.java
index 793b86ca..add5e191 100644
--- a/src/com/platform/glusterfs/ClusterInfo.java
+++ b/src/com/platform/glusterfs/ClusterInfo.java
@@ -1,124 +1,124 @@
-
-
-package com.platform.glusterfs;
-
-
-
-import java.io.File;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Map;
-
-import org.apache.log4j.Logger;
-import org.apache.log4j.PropertyConfigurator;
-
-import com.platform.utils.Constant;
-
-/**
- * 获取集群信息
- * @author liliy
- * @version [版本号,2016年9月12日]
- * @see [相关类/方法]
- * @since [产品/模块版本]
- */
-public class ClusterInfo {
- public static Logger log = Logger.getLogger(ClusterInfo.class);
-
- /**
- * 获取集群节点信息
- * 如果获取不正常,则返回null,如果获取正常,返回map表示节点ip和ip的状态
- * 如果ip在集群中且联通状态为PeerinCluster(Connected)
- * 如果ip在集群中且但不连通为PeerinCluster(Disconnected)
- * @return
- * @see [类、类#方法、类#成员]
- */
- public Map showClusterInfo() {
- log.info("get cluster info");
- Map peerIps = new HashMap();
-
- List reStrings = Constant.ganymedSSH.execCmdWaitAcquiescent(Constant.glusterPeerStatus);
- if (reStrings == null) {
- log.error("1101 command get result is null");
- return null;
- }
- if (reStrings.size() == 0) {
- log.error("1102 command get result is nothing");
- return null;
- }
-
- if (!(reStrings.get(0).split(":")[0].contains("Number of Peers"))) {
-
- log.error("1103 get result string wrong");
- return null;
- }
-
-
- // System.out.print(reStrings.get(0));
-
- int flag = 0;
- String ipString = "";
- String state = "";
- for (Iterator it2 = reStrings.iterator(); it2.hasNext();) {
- String line = (String) it2.next();
- line=line.replaceAll(" +", " ");
- String keyValue[] = line.split(":");
- if (keyValue[0].equals("Hostname")) {
-
- if (keyValue.length < 2) {
- log.error("1105 command get result is wrong");
- continue;
- }
-
- ipString = keyValue[1].replaceAll(" ", "");
- flag = 1;
- } else if (flag == 1 && keyValue[0].equals("State")) {
-
- if (keyValue.length < 2) {
- log.error("1106 command get result is wrong");
- continue;
- }
-
- state = keyValue[1].replaceAll(" ", "");
- flag = 0;
- peerIps.put(ipString, state);
- }
-
- }
- return peerIps;
- }
-
- /**
- * 根据给定的ip获的ip的状态,即是否在集群中并联通
- * 如果ip不在集群中,返回null
- * 如果ip在集群中且联通状态为PeerinCluster(Connected)
- * 如果ip在集群中且但不连通为PeerinCluster(Disconnected)
- * @param peerip
- * @return
- * @see [类、类#方法、类#成员]
- */
- public String getPeerStatus(String peerip){
- Map peerIps=showClusterInfo();
- if(peerIps==null || peerIps.size()==0){
- return null;
- }
-
- if(peerip.equals(Constant.hostIp)){
- return Constant.peerincluster_connected;
- }
- if(!peerIps.containsKey(peerip)){
- return Constant.peerNotinCluster;
- }
- return peerIps.get(peerip);
- }
-
-
- public static void main(String[] args) {
-// PropertyConfigurator.configure("log4j.properties");
- System.out.println(new ClusterInfo().showClusterInfo());
- System.out.println(new ClusterInfo().getPeerStatus("192.168.0.116"));
- }
-}
-
-
+
+
+package com.platform.glusterfs;
+
+
+
+import java.io.File;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Map;
+
+import org.apache.log4j.Logger;
+import org.apache.log4j.PropertyConfigurator;
+
+import com.platform.utils.Constant;
+
+/**
+ * 获取集群信息
+ * @author liliy
+ * @version [版本号,2016年9月12日]
+ * @see [相关类/方法]
+ * @since [产品/模块版本]
+ */
+public class ClusterInfo {
+ public static Logger log = Logger.getLogger(ClusterInfo.class);
+
+ /**
+ * 获取集群节点信息
+ * 如果获取不正常,则返回null,如果获取正常,返回map表示节点ip和ip的状态
+ * 如果ip在集群中且联通状态为PeerinCluster(Connected)
+ * 如果ip在集群中且但不连通为PeerinCluster(Disconnected)
+ * @return
+ * @see [类、类#方法、类#成员]
+ */
+ public Map showClusterInfo() {
+ log.info("get cluster info");
+ Map peerIps = new HashMap();
+
+ List reStrings = Constant.ganymedSSH.execCmdWaitAcquiescent(Constant.glusterPeerStatus);
+ if (reStrings == null) {
+ log.error("1101 command get result is null");
+ return null;
+ }
+ if (reStrings.size() == 0) {
+ log.error("1102 command get result is nothing");
+ return null;
+ }
+
+ if (!(reStrings.get(0).split(":")[0].contains("Number of Peers"))) {
+
+ log.error("1103 get result string wrong");
+ return null;
+ }
+
+
+ // System.out.print(reStrings.get(0));
+
+ int flag = 0;
+ String ipString = "";
+ String state = "";
+ for (Iterator it2 = reStrings.iterator(); it2.hasNext();) {
+ String line = (String) it2.next();
+ line=line.replaceAll(" +", " ");
+ String keyValue[] = line.split(":");
+ if (keyValue[0].equals("Hostname")) {
+
+ if (keyValue.length < 2) {
+ log.error("1105 command get result is wrong");
+ continue;
+ }
+
+ ipString = keyValue[1].replaceAll(" ", "");
+ flag = 1;
+ } else if (flag == 1 && keyValue[0].equals("State")) {
+
+ if (keyValue.length < 2) {
+ log.error("1106 command get result is wrong");
+ continue;
+ }
+
+ state = keyValue[1].replaceAll(" ", "");
+ flag = 0;
+ peerIps.put(ipString, state);
+ }
+
+ }
+ return peerIps;
+ }
+
+ /**
+ * 根据给定的ip获的ip的状态,即是否在集群中并联通
+ * 如果ip不在集群中,返回null
+ * 如果ip在集群中且联通状态为PeerinCluster(Connected)
+ * 如果ip在集群中且但不连通为PeerinCluster(Disconnected)
+ * @param peerip
+ * @return
+ * @see [类、类#方法、类#成员]
+ */
+ public String getPeerStatus(String peerip){
+ Map peerIps=showClusterInfo();
+ if(peerIps==null || peerIps.size()==0){
+ return null;
+ }
+
+ if(peerip.equals(Constant.hostIp)){
+ return Constant.peerincluster_connected;
+ }
+ if(!peerIps.containsKey(peerip)){
+ return Constant.peerNotinCluster;
+ }
+ return peerIps.get(peerip);
+ }
+
+
+ public static void main(String[] args) {
+// PropertyConfigurator.configure("log4j.properties");
+ System.out.println(new ClusterInfo().showClusterInfo());
+ System.out.println(new ClusterInfo().getPeerStatus("192.168.0.116"));
+ }
+}
+
+
diff --git a/src/com/platform/glusterfs/GetTreeData.java b/src/com/platform/glusterfs/GetTreeData.java
index 4fce07bc..81f3ba5b 100644
--- a/src/com/platform/glusterfs/GetTreeData.java
+++ b/src/com/platform/glusterfs/GetTreeData.java
@@ -1,125 +1,125 @@
-
-
-package com.platform.glusterfs;
-
-import java.util.ArrayList;
-import java.util.List;
-import java.util.Map;
-
-import org.junit.Test;
-import com.platform.entities.FolderNode;
-import com.platform.utils.Constant;
-import com.platform.utils.FileOperateHelper;
-import com.platform.utils.GanymedSSH;
-
-/**
- * <一句话功能简述> 获得GFS某个目录下的子目录
- * <功能详细描述>
- * @author chen
- * @version [版本号,2016年9月8日]
- * @see [相关类/方法]
- * @since [产品/模块版本]
- */
-public class GetTreeData {
- ShowData showData = new ShowData();
-
- /**
- * <一句话功能简述> 获得所以子目录
- * <功能详细描述>
- * @param name
- * @return
- * @see [类、类#方法、类#成员]
- */
- public FolderNode getDatas(String name) {
- String names[]=name.split("/");
- String only_name=names[names.length-1];
- FolderNode fileNode = new FolderNode(only_name);
- fileNode.setPath(name);
- Map files = showData.showFolderData(name);
- if(files==null || files.size()==0){
- return fileNode;
- }
- fileNode.setIsFolder(files.size());
- List list = new ArrayList();
- fileNode.setChildNodes(list);
- for (Map.Entry entry : files.entrySet()) {
- if(entry.getKey().equals("app")){
- continue;
- }
- int number = Integer.parseInt(entry.getValue());
- if (number == 1) {
- fileNode.getChildNodes().add(new FolderNode(entry.getKey(), number));
- }
- if (number > 1) {
- FolderNode temp=getDatas(name+"/"+entry.getKey());
- fileNode.getChildNodes().add(temp);
- }
- }
-
- return fileNode;
- }
-
-
- /**
- * <一句话功能简述> 获得所以子目录
- * <功能详细描述>
- * @param name
- * @return
- * @see [类、类#方法、类#成员]
- */
- public FolderNode getDatasWithShell(String name) {
- if(name.endsWith("/")){
- name=name.substring(0, name.length()-1);
- }
-// String names[]=name.split("/");
-// String only_name=names[names.length-1];
- FolderNode fileNode = new FolderNode(name);
- fileNode.setPath(name);
-
-// String shellComment= new FileOperateHelper().fileReaderAndendline(Constant.fileGetTreeData);
- String shellComment= Constant.strGetTreeData;
- String sh_path="/getTreedata.sh";
- String cmd="echo -e \""+shellComment+"\" > "+sh_path+" & chmod +x "+sh_path;
- Constant.ganymedSSH.execCmdWaitAcquiescent(cmd);
-// Map files = showData.showFolderData(name);
- List files=Constant.ganymedSSH.execCmdWaitAcquiescent(sh_path+" "+name);
- if(files==null){
- return null;
- }
- if(files.size()==0){
- return fileNode;
- }
- for(String file:files){
-
- }
-
- return fileNode;
- }
- @Test
- public void test_getTreeData() {
-
- GetTreeData getTreeData=new GetTreeData();
-// FolderNode fileOrFolder=getTreeData.getDatas("/home/gfs_ftp_point");
- FolderNode fileOrFolder=getTreeData.getDatasWithShell("/home/gfs_ftp_point/");
- System.out.println(fileOrFolder);
- }
-}
-/*
-class FileOrFolder {
- String name;
- int isFolder; // 1 is file and other integer is folder show children number
- List children;
-
- public FileOrFolder(String name) {
- // TODO Auto-generated constructor stub
- this.name = name;
- }
-
- public FileOrFolder(String name, int isFolder) {
- // TODO Auto-generated constructor stub
- this.name = name;
- this.isFolder = isFolder;
- }
-}
-
-*/
+
+
+package com.platform.glusterfs;
+
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Map;
+
+import org.junit.Test;
+import com.platform.entities.FolderNode;
+import com.platform.utils.Constant;
+import com.platform.utils.FileOperateHelper;
+import com.platform.utils.GanymedSSH;
+
+/**
+ * <一句话功能简述> 获得GFS某个目录下的子目录
+ * <功能详细描述>
+ * @author chen
+ * @version [版本号,2016年9月8日]
+ * @see [相关类/方法]
+ * @since [产品/模块版本]
+ */
+public class GetTreeData {
+ ShowData showData = new ShowData();
+
+ /**
+ * <一句话功能简述> 获得所以子目录
+ * <功能详细描述>
+ * @param name
+ * @return
+ * @see [类、类#方法、类#成员]
+ */
+ public FolderNode getDatas(String name) {
+ String names[]=name.split("/");
+ String only_name=names[names.length-1];
+ FolderNode fileNode = new FolderNode(only_name);
+ fileNode.setPath(name);
+ Map files = showData.showFolderData(name);
+ if(files==null || files.size()==0){
+ return fileNode;
+ }
+ fileNode.setIsFolder(files.size());
+ List list = new ArrayList();
+ fileNode.setChildNodes(list);
+ for (Map.Entry entry : files.entrySet()) {
+ if(entry.getKey().equals("app")){
+ continue;
+ }
+ int number = Integer.parseInt(entry.getValue());
+ if (number == 1) {
+ fileNode.getChildNodes().add(new FolderNode(entry.getKey(), number));
+ }
+ if (number > 1) {
+ FolderNode temp=getDatas(name+"/"+entry.getKey());
+ fileNode.getChildNodes().add(temp);
+ }
+ }
+
+ return fileNode;
+ }
+
+
+ /**
+ * <一句话功能简述> 获得所以子目录
+ * <功能详细描述>
+ * @param name
+ * @return
+ * @see [类、类#方法、类#成员]
+ */
+ public FolderNode getDatasWithShell(String name) {
+ if(name.endsWith("/")){
+ name=name.substring(0, name.length()-1);
+ }
+// String names[]=name.split("/");
+// String only_name=names[names.length-1];
+ FolderNode fileNode = new FolderNode(name);
+ fileNode.setPath(name);
+
+// String shellComment= new FileOperateHelper().fileReaderAndendline(Constant.fileGetTreeData);
+ String shellComment= Constant.strGetTreeData;
+ String sh_path="/getTreedata.sh";
+ String cmd="echo -e \""+shellComment+"\" > "+sh_path+" & chmod +x "+sh_path;
+ Constant.ganymedSSH.execCmdWaitAcquiescent(cmd);
+// Map files = showData.showFolderData(name);
+ List files=Constant.ganymedSSH.execCmdWaitAcquiescent(sh_path+" "+name);
+ if(files==null){
+ return null;
+ }
+ if(files.size()==0){
+ return fileNode;
+ }
+ for(String file:files){
+
+ }
+
+ return fileNode;
+ }
+ @Test
+ public void test_getTreeData() {
+
+ GetTreeData getTreeData=new GetTreeData();
+// FolderNode fileOrFolder=getTreeData.getDatas("/home/gfs_ftp_point");
+ FolderNode fileOrFolder=getTreeData.getDatasWithShell("/home/gfs_ftp_point/");
+ System.out.println(fileOrFolder);
+ }
+}
+/*
+class FileOrFolder {
+ String name;
+ int isFolder; // 1 is file and other integer is folder show children number
+ List children;
+
+ public FileOrFolder(String name) {
+ // TODO Auto-generated constructor stub
+ this.name = name;
+ }
+
+ public FileOrFolder(String name, int isFolder) {
+ // TODO Auto-generated constructor stub
+ this.name = name;
+ this.isFolder = isFolder;
+ }
+}
+
+*/
diff --git a/src/com/platform/glusterfs/RemoveData.java b/src/com/platform/glusterfs/RemoveData.java
index e06cebd3..6f854b26 100644
--- a/src/com/platform/glusterfs/RemoveData.java
+++ b/src/com/platform/glusterfs/RemoveData.java
@@ -1,56 +1,56 @@
-package com.platform.glusterfs;
-
-import java.util.HashMap;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Map;
-
-import org.apache.log4j.Logger;
-import org.apache.log4j.PropertyConfigurator;
-import org.junit.Test;
-
-import com.platform.utils.Constant;
-
-
-
-public class RemoveData {
-
- public static Logger log = Logger.getLogger ( RemoveData.class);
-
-
- /**
- * -1 :error; 0: the filename is not exists ; 1: right
- * @param folderName
- * @param fileName
- * @return
- */
- public int deleteFolder(String folderName){
- log.info("start delete "+folderName);
-
- ShowData showData=new ShowData();
- Map reStrings=showData.showFolderData(folderName);
-
- if(reStrings==null){
- log.error("3301 "+folderName+" is not exists");
- return -1;
- }
-
- String command="rm -r "+folderName;
-
-// int status=runCommand.runCommand(command);
- Constant.ganymedSSH.execCmdNoWaitAcquiescent(command);
-
- log.info("delete "+folderName+" running");
- return 1;
- }
-
-
-
-
- @Test
- public void testDeleteFolderFiles() {
- PropertyConfigurator.configure("log4j.properties");
- deleteFolder("/home/ubuntu");
- }
-
-}
+package com.platform.glusterfs;
+
+import java.util.HashMap;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Map;
+
+import org.apache.log4j.Logger;
+import org.apache.log4j.PropertyConfigurator;
+import org.junit.Test;
+
+import com.platform.utils.Constant;
+
+
+
+public class RemoveData {
+
+ public static Logger log = Logger.getLogger ( RemoveData.class);
+
+
+ /**
+ * -1 :error; 0: the filename is not exists ; 1: right
+ * @param folderName
+ * @param fileName
+ * @return
+ */
+ public int deleteFolder(String folderName){
+ log.info("start delete "+folderName);
+
+ ShowData showData=new ShowData();
+ Map reStrings=showData.showFolderData(folderName);
+
+ if(reStrings==null){
+ log.error("3301 "+folderName+" is not exists");
+ return -1;
+ }
+
+ String command="rm -r "+folderName;
+
+// int status=runCommand.runCommand(command);
+ Constant.ganymedSSH.execCmdNoWaitAcquiescent(command);
+
+ log.info("delete "+folderName+" running");
+ return 1;
+ }
+
+
+
+
+ @Test
+ public void testDeleteFolderFiles() {
+ PropertyConfigurator.configure("log4j.properties");
+ deleteFolder("/home/ubuntu");
+ }
+
+}
diff --git a/src/com/platform/glusterfs/SetCluster.java b/src/com/platform/glusterfs/SetCluster.java
index 598b8753..8f260e5a 100644
--- a/src/com/platform/glusterfs/SetCluster.java
+++ b/src/com/platform/glusterfs/SetCluster.java
@@ -1,67 +1,67 @@
-
-package com.platform.glusterfs;
-
-import java.util.List;
-
-import org.apache.log4j.Logger;
-import org.hamcrest.core.Is;
-
-import com.platform.utils.Constant;
-import com.platform.utils.Support;
-
-public class SetCluster {
- public static Logger log = Logger.getLogger ( SetCluster.class);
-
- /**
- * 向集群中添加节点
- * 返回1表示添加成功;-1表示ip不合法,-2 表示出错,0表示添加失败
- * @param peerip
- * @return
- * @see [类、类#方法、类#成员]
- */
- public int probePeer(String peerip){
- if(!Support.checkIP(peerip)){
- log.error(peerip +"is illegal!" );
- return -1;
- }
- String cmd="gluster peer probe "+peerip;
- List reStrings=Constant.ganymedSSH.execCmdWaitAcquiescent(cmd);
- if(reStrings==null || reStrings.size()==0){
- log.error("detach error! ");
- return -2;
- }
- if(reStrings.contains(Constant.success)){
- log.info("probe success!");
- return 1;
- }
- log.info("probe failed!");
- return 0;
- }
-
- /**
- * 删除集群中节点
- * 返回1表示删除成功;-1表示ip不合法,-2 表示出错,0表示添加失败
- * @param peerip
- * @return
- * @see [类、类#方法、类#成员]
- */
- public int detachPeer(String peerip){
- if(!Support.checkIP(peerip)){
- log.error(peerip +"is illegal!" );
- return -1;
- }
- String cmd="gluster peer detach "+peerip;
- List reStrings=Constant.ganymedSSH.execCmdWaitAcquiescent(cmd);
- if(reStrings==null || reStrings.size()==0){
- log.error("detach error! ");
- return -2;
- }
- if(reStrings.contains(Constant.success)){
- log.info("detach success!");
- return 1;
- }
- log.info("detach failed!");
- return 0;
- }
-}
-
+
+package com.platform.glusterfs;
+
+import java.util.List;
+
+import org.apache.log4j.Logger;
+import org.hamcrest.core.Is;
+
+import com.platform.utils.Constant;
+import com.platform.utils.Support;
+
+public class SetCluster {
+ public static Logger log = Logger.getLogger ( SetCluster.class);
+
+ /**
+ * 向集群中添加节点
+ * 返回1表示添加成功;-1表示ip不合法,-2 表示出错,0表示添加失败
+ * @param peerip
+ * @return
+ * @see [类、类#方法、类#成员]
+ */
+ public int probePeer(String peerip){
+ if(!Support.checkIP(peerip)){
+ log.error(peerip +"is illegal!" );
+ return -1;
+ }
+ String cmd="gluster peer probe "+peerip;
+ List reStrings=Constant.ganymedSSH.execCmdWaitAcquiescent(cmd);
+ if(reStrings==null || reStrings.size()==0){
+ log.error("detach error! ");
+ return -2;
+ }
+ if(reStrings.contains(Constant.success)){
+ log.info("probe success!");
+ return 1;
+ }
+ log.info("probe failed!");
+ return 0;
+ }
+
+ /**
+ * 删除集群中节点
+ * 返回1表示删除成功;-1表示ip不合法,-2 表示出错,0表示添加失败
+ * @param peerip
+ * @return
+ * @see [类、类#方法、类#成员]
+ */
+ public int detachPeer(String peerip){
+ if(!Support.checkIP(peerip)){
+ log.error(peerip +"is illegal!" );
+ return -1;
+ }
+ String cmd="gluster peer detach "+peerip;
+ List reStrings=Constant.ganymedSSH.execCmdWaitAcquiescent(cmd);
+ if(reStrings==null || reStrings.size()==0){
+ log.error("detach error! ");
+ return -2;
+ }
+ if(reStrings.contains(Constant.success)){
+ log.info("detach success!");
+ return 1;
+ }
+ log.info("detach failed!");
+ return 0;
+ }
+}
+
diff --git a/src/com/platform/glusterfs/SetVolume.java b/src/com/platform/glusterfs/SetVolume.java
index 8a361b18..6b4dddcc 100644
--- a/src/com/platform/glusterfs/SetVolume.java
+++ b/src/com/platform/glusterfs/SetVolume.java
@@ -1,540 +1,540 @@
-
-/**
- * @author 李乾坤
- * 进行volume的一系列操作,如创建、开启停止volume,为volume添加或删除brick
- */
-package com.platform.glusterfs;
-
-import java.io.File;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Map;
-
-import org.apache.log4j.Logger;
-import org.apache.log4j.PropertyConfigurator;
-import org.junit.Test;
-
-import com.platform.utils.Constant;
-
-public class SetVolume {
- public static Logger log = Logger.getLogger(SetVolume.class);
-
- /**
- * 创建volume 返回值:创建并挂载成功 1 1:可以创建 ;-1:brick的ip不在集群中或者未连接; -2 -3
- * -4:类型与brick数目不匹配 ; -5 :volumeName 已经存在;-6:挂载点存在且不为空,不能作为挂载点; -7:未知错误
- *
- * @param volumeName
- * @param count
- * @param type
- * @param bricks
- * @param mountPoint
- * @return
- * @see [类、类#方法、类#成员]
- */
- public int createVolume(String volumeName, int count, String type, List bricks, String mountPoint) {
- log.info("Creat new volume");
-
- // 判断创建volume的条件是否满足
- int able = isAbleCreateVolume(volumeName, count, type, bricks, mountPoint);
-
- if (able == 1) {
- String command = null;
- // 将brics从List变量中提取出来并连接成可以在命令行中使用的格式
- String commandarg = concat(bricks);
-
- /*
- * verify the type
- */
- if (type.equals(Constant.distributed)) {
- command = "gluster volume create " + volumeName + " " + commandarg + "force";
- } else if (type.equals(Constant.replica) || type.equals(Constant.stripe)) {
- command = "gluster volume create " + volumeName + " " + type + " " + count + " " + commandarg + "force";
- }
-
- // 执行命令
- List reStrings = Constant.ganymedSSH.execCmdWaitAcquiescent(command);
-
- // 创建成功时返回信息格式:volume create: volumename success:
- if (reStrings == null || reStrings.size() == 0) {
- log.error("3106 " + command + " run return error");
- return -7;
- }
- if (reStrings.get(0).contains("volume create: " + volumeName + ": " + "success:")) {
- log.info("create volume " + volumeName + " successed!");
- // 创建成功则启动并进行挂载
- if (startVolume(volumeName) == 0) {
- log.info("start volume " + volumeName + " successed!");
-
- log.info("create "+mountPoint);
- new CopyData().createFolders(mountPoint);
-
- // 进行挂载
- String command3 = "mount -t glusterfs " + Constant.hostIp + ":" + volumeName + " " + mountPoint;
- List reStrings3 = Constant.ganymedSSH.execCmdWaitAcquiescent(command3);
-
- if (reStrings3.size() == 0 || reStrings.get(0).contains("GlusterFS is already mounted")) {
- log.info("mount point successed!");
- String addRecord = "echo \"" + volumeName + ":" + mountPoint + "\" >> " + Constant.MountRecord;
- Constant.ganymedSSH.execCmdNoWaitAcquiescent(addRecord);
- return 1;
- }
- }
- } else {
- log.error("3104 volume create failed with error" + reStrings.get(0));
- // System.out.println(reStrings.get(0));
- return -7;
- }
- return 1;
- } else {
- log.error("给出的参数不满足创建条件");
- // System.out.println("给出的参数不满足创建条件");
- return able;
- }
-
- }
-
- /**
- * 删除volume 1 表示成功 ;-1表示volume name不存在;-2表示停止volume 失败;
- * -3表示删除失败,-4表示/gfsAutoMount/mountPoint.record文件不存在
- * @param volumeName
- * @return
- * @see [类、类#方法、类#成员]
- */
- public int deleteVolume(String volumeName) {
- int status = 0;
- VolumeInfo volumeInfo = new VolumeInfo();
- List volumeNames = volumeInfo.showAllVolumeName();
- if (!volumeNames.contains(volumeName)) {
- log.error("3801 " + volumeName + " is not exists !");
- return -1;
- }
-
- List mountPoints = volumeInfo.getVolumeMountPoint(volumeName);
-
- String cmd = "cat " + Constant.MountRecord;
- List mountRecord = Constant.ganymedSSH.execCmdWaitAcquiescent(cmd);
-
- if (stopVolume(volumeName) != 0) {
-
- return -2;
- }
-
- String command = "echo -e \"y\"| gluster volume delete " + volumeName;
- List reStrings = Constant.ganymedSSH.execCmdWaitAcquiescent(command);
- if (reStrings == null || reStrings.size() == 0
- || !(reStrings.get(0).contains("volume delete: " + volumeName + ": success"))) {
- log.error("3803 : delete volume " + volumeName + " failed !");
- return -3;
- }
- log.info("delete " + volumeName + " successed!");
- if (mountRecord.size() != 0 && mountPoints.get(0).contains(Constant.noSuchFile)) {
- log.error("3804 : " + Constant.MountRecord + " is not exits");
- return -4;
- }
- for (String mountPoint : mountPoints) {
- command = "umount -l " + mountPoint;
- Constant.ganymedSSH.execCmdNoWaitAcquiescent(command);
- log.info("umount " + mountPoint + " successed!");
- String oneRecord=volumeName+":"+mountPoint;
- if (mountRecord.contains(oneRecord)) {
- mountRecord.remove(oneRecord);
- }
-
- }
- String newRecords="";
- for(String one:mountRecord){
- newRecords+=one+"\n";
- }
- command="echo -ne \""+newRecords+"\" > "+Constant.MountRecord;
- Constant.ganymedSSH.execCmdNoWaitAcquiescent(command);
- return 1;
- }
-
- /**
- * 为指定的volume添加brick,参数中需要指定类型、数量等 返回值:1成功 ;其他失败
- * 过程中需要先检查volume是否存在,还需检查给出的brick数量与类型、count是否相符
- *
- * @param volumeName
- * @param brickName
- * @param count
- * @param type
- * @return
- * @see [类、类#方法、类#成员]
- */
- public int addBrickVolume(String volumeName, List brickName, int count, String type) {
- // 检查是否满足添加bricks的条件
- int able = isAble(volumeName, count, type, brickName);
- if (able != 1) {
- return able;
- }
-
- String command = "";
- log.info("add brick to the specified volume");
-
- String brick = concat(brickName);
-
- if (type.equals(Constant.distributed))
- command = "gluster volume add-brick " + volumeName + " " + brick + "force";
- else if (type.equals(Constant.replica))
- command = "gluster volume add-brick " + volumeName + " " + "replica " + count + " " + brick + "force";
- else if (type.equals(Constant.stripe))
- command = "gluster volume add-brick " + volumeName + " " + "stripe " + count + " " + brick + "force";
-
- List reStrings = Constant.ganymedSSH.execCmdWaitAcquiescent(command);
-
- // 添加成功的返回信息是:volume add-brick: success
- if (reStrings != null && reStrings.size() > 0 && reStrings.get(0).contains("volume add-brick: success")) {
- log.info("添加brick成功!");
- return 1;
- } else {
- log.error("3205 add brick failed,please check the system");
- // System.out.println("3202 add brick failed,please check the
- // system");
- return -5;
- }
- }
-
- /**
- * 为指定的volume删除brick,参数中需要指定类型、数量等 返回值:1 成功 ;其他 失败
- * 过程中需要先检查volume是否存在,还需检查给出的brick数量与类型、count是否相符
- *
- * @param volumeName
- * @param brickName
- * @param count
- * @param type
- * @return
- * @see [类、类#方法、类#成员]
- */
- public int deleteBrickVolume(String volumeName, List brickName, int count, String type) {
- int able = isAble(volumeName, count, type, brickName);
-
- if (able != 1) {
- return able;
- }
- String command = null;
-
- log.info("delete brick of the specified volume");
-
- String brick = concat(brickName);
-
- if (type.equals(Constant.distributed)) {
- command = "echo -e \"y\" | gluster volume remove-brick " + volumeName + " " + brick + " force";
- } else if (type.equals(Constant.replica)) {
- command = "echo -e \"y\" | gluster volume remove-brick " + volumeName + " repli " + count + " " + brick
- + " force";
- } else if (type.equals(Constant.stripe)) {
- command = "echo -e \"y\" | gluster volume remove-brick " + volumeName + " stripe " + count + " " + brick
- + " force";
- }
-
- if (command == null) {
- log.error("3305 remove brick failed,please check the system");
- return -5;
- }
- log.info("即将执行删除命令");
- List reStrings = Constant.ganymedSSH.execCmdWaitAcquiescent(command);
- // System.out.println(reStrings);
- log.info("删除命令执行完毕");
-
- // 删除成功的返回信息是“volume remove-brick: success”
- if (reStrings.get(0).contains("volume remove-brick: success")) {
- {
- log.info("删除brick成功");
- return 1;
- }
- } else {
- log.error("3305 remove brick failed,please check the system");
-
- return -5;
- }
-
- }
-
- /*
- * 停止指定volume 参数中需给出volume的名字 返回值: 0 成功 -1 失败
- * 需要先检查volume是否存在,然后判断volume的状态是否已经是停止状态
- */
- public int stopVolume(String volumeName) {
- log.info("stop volume");
-
- // 首先需要判断volume是否存在,调用其他函数返回所有volume的名字
- boolean volumeExist = false;
-
- List volume = new VolumeInfo().showAllVolumeName();
- for (String temp : volume) {
- if (temp.equals(volumeName)) {
- volumeExist = true;
- break;
- }
- }
-
- if (!volumeExist) {
- // volume不存在
- log.error("3501 the volume doesnot exist");
- System.out.println("3501 the volume doesnot exist");
- return -1;
- } else {
- // volume存在,则需判断volume的状态是否已经为“stop”
- if (new VolumeInfo().getVolumeStatus(volumeName).equals("Stopped")) {
- log.error("3502 the volume is already stoped");
- System.out.println("3502 the volume is already stoped");
- return -1;
- } else {
- String command = "echo -e \"y\"| gluster volume stop " + volumeName;
- List reStrings = Constant.ganymedSSH.execCmdWaitAcquiescent(command);
-
- // 标记操作结果:operation = 1 操作成功
- // operation = 0 操作失败
- int operation = 0;
- for (String temp2 : reStrings) {
- if (temp2.contains("volume stop: " + volumeName + ": " + "success")) {
- operation = 1;
- break;
- }
- System.out.println("operation: " + operation);
- }
-
- if (operation == 1) {
- return 0;
- } else {
- log.error("3503 stop " + volumeName + " failed");
- System.out.println("3503 stop " + volumeName + " failed");
- return -1;
- }
-
- }
- }
- }
-
- /*
- * 开启指定volume 参数中需给出volume的名字 返回值: 0 成功 -1 失败
- * 需要先检查volume是否存在,然后判断volume的状态是否已经是开启状态
- */
- public int startVolume(String volumeName) {
- log.info("start volume");
- boolean volumeExist = false;
- List volume = new VolumeInfo().showAllVolumeName();
-
- for (String temp : volume) {
- if (temp.equals(volumeName)) {
- volumeExist = true;
- break;
- }
- }
-
- if (volumeExist) {
- if (!(new VolumeInfo().getVolumeStatus(volumeName).equals("Started"))) {
- String command = "gluster volume start " + volumeName;
-
- int operation = 0;
-
- // 执行命令
- List reStrings = Constant.ganymedSSH.execCmdWaitAcquiescent(command);
- for (String temp2 : reStrings) {
- if (temp2.equals("volume start: " + volumeName + ": " + "success")) {
- operation = 1;
- }
- }
-
- if (operation == 1) {
- return 0;
- } else {
- log.error("3602 start volume failed");
- System.out.println("3602 start volume failed");
- return -1;
- }
- } else {
- log.error("volume已经开启");
- System.out.println("volume已经开启");
- return -1;
- }
- } else {
- log.error("3601 the volume does not exist");
- // System.out.println("3601 the volume does not exist");
- return -1;
- }
- }
-
- // 需要将存于List变量中的brick的位置组装成可以在glusterfs命令行中直接使用的格式
- public String concat(List brickName) {
- StringBuffer result = new StringBuffer();
- int len = brickName.size();
- for (int i = 0; i < len; i++) {
- result.append(brickName.get(i));
- result.append(" ");
- }
- return result.toString();
- }
-
- /*
- * 只在创建volume时使用此函数 创建volume时对不同数据卷,brick的数量需要满足和count的关系
- * 首先判断它们是否满足关系,在不满足的关系的情况下是肯定无法完成操作的 1:可以创建 ;-1:brick的ip不在集群中或者未连接; -2 -3
- * -4 :类型与brick数目不匹配 ; -5 :volumeName 已经存在;-6:挂载点存在且不为空,不能作为挂载点; -7:未知错误
- */
- public int isAbleCreateVolume(String volumeName, int count, String type, List bricks, String mountPoint) {
- int status = 0;
-
- int length = bricks.size();
-
- if (type.equals(Constant.distributed)) {
- if (count != 0) {
- log.error("3101 the kind of distributed requires the arg of count to be 0");
- return -2;
- }
- }
- if (type.equals(Constant.stripe)) {
- if (length % count != 0) {
- log.error("3102 the number of bricks should be the same as or the times of the stripe count");
- return -3;
- }
- }
- if (type.equals(Constant.replica)) {
- if ((length % count) != 0) {
- log.error(
- "3103 the number of bricks should be the same as the replicate count or the times of replicate count");
- return -4;
- }
- }
-
- Map peer_status = new ClusterInfo().showClusterInfo();
- peer_status.put(Constant.hostIp, Constant.peerincluster_connected);
- for (String brick : bricks) {
- brick = brick.split(":")[0];
- if (!(peer_status.containsKey(brick) && peer_status.get(brick).equals(Constant.peerincluster_connected))) {
- log.error("3105 birck " + brick + " ip is not in cluster");
- return -1;
- }
-
- }
-
- List volumeNames = new VolumeInfo().showAllVolumeName();
- if (volumeNames == null) {
- log.error("3108 showAllVolumeName return error");
- return -7;
- }
- if (volumeNames.contains(volumeName)) {
- log.error("3106 " + volumeName + " is already exists! ");
- return -5;
- }
-
- /*
- Map datas = new ShowData().showFolderData(mountPoint);
- if (datas != null && datas.size() > 0) {
- log.error("3107 " + mountPoint + " is not exists or not empty ! ");
- return -6;
- }
- */
- return 1;
- }
-
- /**
- * 添加或删除volume的brick时,首先需要判断volume是否存在,然后需要判断volume类型、count及brick数目
- *
- * @param volumeName
- * @param count
- * @param type
- * @param bricks
- * @return 1 满足条件,可以添加;-1 :volume name is not exists;-2,-3,-4 类型与brick数量不匹配;
- */
- public int isAble(String volumeName, int count, String type, List bricks) {
- List volumeNames = new VolumeInfo().showAllVolumeName();
-
- if (!volumeNames.contains(volumeName)) {
- log.error("3201:" + volumeName + " is not exists! ");
- return -1;
- }
-
- int length = bricks.size();
- if (type.equals("distribute")) {
- if (count == 0)
- return 1;
- else {
- log.error("3202: the kind of distributed requires the arg of count to be 0");
- // System.out.println(" the kind of distributed requires the
- // arg of count to be 0");
- return -2;
- }
- }
-
- if (type.equals("stripe")) {
- if (length % count == 0)
- return 1;
- else {
- log.error("3203: the number of bricks should be the same as or the times of the stripe count");
- // System.out.println(" the number of bricks should be the
- // same as or the times of the stripe count");
- return -3;
-
- }
- }
- if (type.equals("replicate")) {
- if ((length % count) == 0)
- return 1;
- else {
- log.error(
- "3204: the number of bricks should be the same as the replicate count or the times of replicate count");
-
- return -4;
- }
- }
-
- return 1;
- }
-
- @Test
- public void test_deleteVolume(){
- System.out.println(deleteVolume("lili_test1"));
- }
-// @Test
- public void test_createVolume(){
- List bricksToCreate = new ArrayList();
- bricksToCreate.add("192.168.0.110:/lili_test1");
- bricksToCreate.add("192.168.0.116:/lili_test1");
- System.out.println(createVolume("lili_test1", 0, "distributed", bricksToCreate, "/home/lili_test1_point"));
- }
- public static void main(String[] args) {
- SetVolume setVolume = new SetVolume();
- int operation = 0;
- // PropertyConfigurator.configure("log4j.properties");
- // TODO Auto-generated method stub
- // 测试创建volume的代码
-
-// List bricksToCreate = new ArrayList();
-// bricksToCreate.add("192.168.0.110:/v2");
-// bricksToCreate.add("192.168.0.116:/v2");
-// operation = setVolume.createVolume("v2", 0, "distributed", bricksToCreate, "/home/v2_point");
- // operation = setVolume.deleteVolume("v3");
- //
- // // 以下是测试添加brick的代码
- //
- // List bricksToAdd = new ArrayList();
- // bricksToAdd.add("192.168.191.23:/v3");
- // operation = setVolume.addBrickVolume("v3", bricksToAdd, 0,
- // "distribute");
- // System.out.println(operation);
-
- // 以下代码是测试删除brick的代码
- // List bricksToAdd= new ArrayList();
- // bricksToAdd.add("192.168.191.23:/v3");
- // operation =
- // setVolume.deleteBrickVolume("v3",bricksToAdd,0,"distribute");
- // System.out.println(operation);
- // 以下是测试start volume的代码
- // String volumeToStart = "testcreate" ;
- // int startOperation = startVolume(volumeToStart);
- // System.out.println(startOperation);
- // 以下是测试stop volume
- String volumeToStop = "v3";
- // int startOperation = setVolume.stopVolume(volumeToStop);
- // 以下是测试创建volume并完成挂载的代码
- // List bricksToCreate= new ArrayList();
- // bricksToCreate.add("192.168.214.135:/home/create");
- // bricksToCreate.add("192.168.214.138:/home/create");
- //
- // int operation =
- // createVolume("createAndmount",0,"distribute",bricksToCreate,"/mnt/create");
- // System.out.println(operation);
- }
-}
+
+/**
+ * @author 李乾坤
+ * 进行volume的一系列操作,如创建、开启停止volume,为volume添加或删除brick
+ */
+package com.platform.glusterfs;
+
+import java.io.File;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Map;
+
+import org.apache.log4j.Logger;
+import org.apache.log4j.PropertyConfigurator;
+import org.junit.Test;
+
+import com.platform.utils.Constant;
+
+public class SetVolume {
+ public static Logger log = Logger.getLogger(SetVolume.class);
+
+ /**
+ * 创建volume 返回值:创建并挂载成功 1 1:可以创建 ;-1:brick的ip不在集群中或者未连接; -2 -3
+ * -4:类型与brick数目不匹配 ; -5 :volumeName 已经存在;-6:挂载点存在且不为空,不能作为挂载点; -7:未知错误
+ *
+ * @param volumeName
+ * @param count
+ * @param type
+ * @param bricks
+ * @param mountPoint
+ * @return
+ * @see [类、类#方法、类#成员]
+ */
+ public int createVolume(String volumeName, int count, String type, List bricks, String mountPoint) {
+ log.info("Creat new volume");
+
+ // 判断创建volume的条件是否满足
+ int able = isAbleCreateVolume(volumeName, count, type, bricks, mountPoint);
+
+ if (able == 1) {
+ String command = null;
+ // 将brics从List变量中提取出来并连接成可以在命令行中使用的格式
+ String commandarg = concat(bricks);
+
+ /*
+ * verify the type
+ */
+ if (type.equals(Constant.distributed)) {
+ command = "gluster volume create " + volumeName + " " + commandarg + "force";
+ } else if (type.equals(Constant.replica) || type.equals(Constant.stripe)) {
+ command = "gluster volume create " + volumeName + " " + type + " " + count + " " + commandarg + "force";
+ }
+
+ // 执行命令
+ List reStrings = Constant.ganymedSSH.execCmdWaitAcquiescent(command);
+
+ // 创建成功时返回信息格式:volume create: volumename success:
+ if (reStrings == null || reStrings.size() == 0) {
+ log.error("3106 " + command + " run return error");
+ return -7;
+ }
+ if (reStrings.get(0).contains("volume create: " + volumeName + ": " + "success:")) {
+ log.info("create volume " + volumeName + " successed!");
+ // 创建成功则启动并进行挂载
+ if (startVolume(volumeName) == 0) {
+ log.info("start volume " + volumeName + " successed!");
+
+ log.info("create "+mountPoint);
+ new CopyData().createFolders(mountPoint);
+
+ // 进行挂载
+ String command3 = "mount -t glusterfs " + Constant.hostIp + ":" + volumeName + " " + mountPoint;
+ List reStrings3 = Constant.ganymedSSH.execCmdWaitAcquiescent(command3);
+
+ if (reStrings3.size() == 0 || reStrings.get(0).contains("GlusterFS is already mounted")) {
+ log.info("mount point successed!");
+ String addRecord = "echo \"" + volumeName + ":" + mountPoint + "\" >> " + Constant.MountRecord;
+ Constant.ganymedSSH.execCmdNoWaitAcquiescent(addRecord);
+ return 1;
+ }
+ }
+ } else {
+ log.error("3104 volume create failed with error" + reStrings.get(0));
+ // System.out.println(reStrings.get(0));
+ return -7;
+ }
+ return 1;
+ } else {
+ log.error("给出的参数不满足创建条件");
+ // System.out.println("给出的参数不满足创建条件");
+ return able;
+ }
+
+ }
+
+ /**
+ * 删除volume 1 表示成功 ;-1表示volume name不存在;-2表示停止volume 失败;
+ * -3表示删除失败,-4表示/gfsAutoMount/mountPoint.record文件不存在
+ * @param volumeName
+ * @return
+ * @see [类、类#方法、类#成员]
+ */
+ public int deleteVolume(String volumeName) {
+ int status = 0;
+ VolumeInfo volumeInfo = new VolumeInfo();
+ List volumeNames = volumeInfo.showAllVolumeName();
+ if (!volumeNames.contains(volumeName)) {
+ log.error("3801 " + volumeName + " is not exists !");
+ return -1;
+ }
+
+ List mountPoints = volumeInfo.getVolumeMountPoint(volumeName);
+
+ String cmd = "cat " + Constant.MountRecord;
+ List mountRecord = Constant.ganymedSSH.execCmdWaitAcquiescent(cmd);
+
+ if (stopVolume(volumeName) != 0) {
+
+ return -2;
+ }
+
+ String command = "echo -e \"y\"| gluster volume delete " + volumeName;
+ List reStrings = Constant.ganymedSSH.execCmdWaitAcquiescent(command);
+ if (reStrings == null || reStrings.size() == 0
+ || !(reStrings.get(0).contains("volume delete: " + volumeName + ": success"))) {
+ log.error("3803 : delete volume " + volumeName + " failed !");
+ return -3;
+ }
+ log.info("delete " + volumeName + " successed!");
+ if (mountRecord.size() != 0 && mountPoints.get(0).contains(Constant.noSuchFile)) {
+ log.error("3804 : " + Constant.MountRecord + " is not exits");
+ return -4;
+ }
+ for (String mountPoint : mountPoints) {
+ command = "umount -l " + mountPoint;
+ Constant.ganymedSSH.execCmdNoWaitAcquiescent(command);
+ log.info("umount " + mountPoint + " successed!");
+ String oneRecord=volumeName+":"+mountPoint;
+ if (mountRecord.contains(oneRecord)) {
+ mountRecord.remove(oneRecord);
+ }
+
+ }
+ String newRecords="";
+ for(String one:mountRecord){
+ newRecords+=one+"\n";
+ }
+ command="echo -ne \""+newRecords+"\" > "+Constant.MountRecord;
+ Constant.ganymedSSH.execCmdNoWaitAcquiescent(command);
+ return 1;
+ }
+
+ /**
+ * 为指定的volume添加brick,参数中需要指定类型、数量等 返回值:1成功 ;其他失败
+ * 过程中需要先检查volume是否存在,还需检查给出的brick数量与类型、count是否相符
+ *
+ * @param volumeName
+ * @param brickName
+ * @param count
+ * @param type
+ * @return
+ * @see [类、类#方法、类#成员]
+ */
+ public int addBrickVolume(String volumeName, List brickName, int count, String type) {
+ // 检查是否满足添加bricks的条件
+ int able = isAble(volumeName, count, type, brickName);
+ if (able != 1) {
+ return able;
+ }
+
+ String command = "";
+ log.info("add brick to the specified volume");
+
+ String brick = concat(brickName);
+
+ if (type.equals(Constant.distributed))
+ command = "gluster volume add-brick " + volumeName + " " + brick + "force";
+ else if (type.equals(Constant.replica))
+ command = "gluster volume add-brick " + volumeName + " " + "replica " + count + " " + brick + "force";
+ else if (type.equals(Constant.stripe))
+ command = "gluster volume add-brick " + volumeName + " " + "stripe " + count + " " + brick + "force";
+
+ List reStrings = Constant.ganymedSSH.execCmdWaitAcquiescent(command);
+
+ // 添加成功的返回信息是:volume add-brick: success
+ if (reStrings != null && reStrings.size() > 0 && reStrings.get(0).contains("volume add-brick: success")) {
+ log.info("添加brick成功!");
+ return 1;
+ } else {
+ log.error("3205 add brick failed,please check the system");
+ // System.out.println("3202 add brick failed,please check the
+ // system");
+ return -5;
+ }
+ }
+
+ /**
+ * 为指定的volume删除brick,参数中需要指定类型、数量等 返回值:1 成功 ;其他 失败
+ * 过程中需要先检查volume是否存在,还需检查给出的brick数量与类型、count是否相符
+ *
+ * @param volumeName
+ * @param brickName
+ * @param count
+ * @param type
+ * @return
+ * @see [类、类#方法、类#成员]
+ */
+ public int deleteBrickVolume(String volumeName, List brickName, int count, String type) {
+ int able = isAble(volumeName, count, type, brickName);
+
+ if (able != 1) {
+ return able;
+ }
+ String command = null;
+
+ log.info("delete brick of the specified volume");
+
+ String brick = concat(brickName);
+
+ if (type.equals(Constant.distributed)) {
+ command = "echo -e \"y\" | gluster volume remove-brick " + volumeName + " " + brick + " force";
+ } else if (type.equals(Constant.replica)) {
+ command = "echo -e \"y\" | gluster volume remove-brick " + volumeName + " repli " + count + " " + brick
+ + " force";
+ } else if (type.equals(Constant.stripe)) {
+ command = "echo -e \"y\" | gluster volume remove-brick " + volumeName + " stripe " + count + " " + brick
+ + " force";
+ }
+
+ if (command == null) {
+ log.error("3305 remove brick failed,please check the system");
+ return -5;
+ }
+ log.info("即将执行删除命令");
+ List reStrings = Constant.ganymedSSH.execCmdWaitAcquiescent(command);
+ // System.out.println(reStrings);
+ log.info("删除命令执行完毕");
+
+ // 删除成功的返回信息是“volume remove-brick: success”
+ if (reStrings.get(0).contains("volume remove-brick: success")) {
+ {
+ log.info("删除brick成功");
+ return 1;
+ }
+ } else {
+ log.error("3305 remove brick failed,please check the system");
+
+ return -5;
+ }
+
+ }
+
+ /*
+ * 停止指定volume 参数中需给出volume的名字 返回值: 0 成功 -1 失败
+ * 需要先检查volume是否存在,然后判断volume的状态是否已经是停止状态
+ */
+ public int stopVolume(String volumeName) {
+ log.info("stop volume");
+
+ // 首先需要判断volume是否存在,调用其他函数返回所有volume的名字
+ boolean volumeExist = false;
+
+ List volume = new VolumeInfo().showAllVolumeName();
+ for (String temp : volume) {
+ if (temp.equals(volumeName)) {
+ volumeExist = true;
+ break;
+ }
+ }
+
+ if (!volumeExist) {
+ // volume不存在
+ log.error("3501 the volume doesnot exist");
+ System.out.println("3501 the volume doesnot exist");
+ return -1;
+ } else {
+ // volume存在,则需判断volume的状态是否已经为“stop”
+ if (new VolumeInfo().getVolumeStatus(volumeName).equals("Stopped")) {
+ log.error("3502 the volume is already stoped");
+ System.out.println("3502 the volume is already stoped");
+ return -1;
+ } else {
+ String command = "echo -e \"y\"| gluster volume stop " + volumeName;
+ List reStrings = Constant.ganymedSSH.execCmdWaitAcquiescent(command);
+
+ // 标记操作结果:operation = 1 操作成功
+ // operation = 0 操作失败
+ int operation = 0;
+ for (String temp2 : reStrings) {
+ if (temp2.contains("volume stop: " + volumeName + ": " + "success")) {
+ operation = 1;
+ break;
+ }
+ System.out.println("operation: " + operation);
+ }
+
+ if (operation == 1) {
+ return 0;
+ } else {
+ log.error("3503 stop " + volumeName + " failed");
+ System.out.println("3503 stop " + volumeName + " failed");
+ return -1;
+ }
+
+ }
+ }
+ }
+
+ /*
+ * 开启指定volume 参数中需给出volume的名字 返回值: 0 成功 -1 失败
+ * 需要先检查volume是否存在,然后判断volume的状态是否已经是开启状态
+ */
+ public int startVolume(String volumeName) {
+ log.info("start volume");
+ boolean volumeExist = false;
+ List volume = new VolumeInfo().showAllVolumeName();
+
+ for (String temp : volume) {
+ if (temp.equals(volumeName)) {
+ volumeExist = true;
+ break;
+ }
+ }
+
+ if (volumeExist) {
+ if (!(new VolumeInfo().getVolumeStatus(volumeName).equals("Started"))) {
+ String command = "gluster volume start " + volumeName;
+
+ int operation = 0;
+
+ // 执行命令
+ List reStrings = Constant.ganymedSSH.execCmdWaitAcquiescent(command);
+ for (String temp2 : reStrings) {
+ if (temp2.equals("volume start: " + volumeName + ": " + "success")) {
+ operation = 1;
+ }
+ }
+
+ if (operation == 1) {
+ return 0;
+ } else {
+ log.error("3602 start volume failed");
+ System.out.println("3602 start volume failed");
+ return -1;
+ }
+ } else {
+ log.error("volume已经开启");
+ System.out.println("volume已经开启");
+ return -1;
+ }
+ } else {
+ log.error("3601 the volume does not exist");
+ // System.out.println("3601 the volume does not exist");
+ return -1;
+ }
+ }
+
+ // 需要将存于List变量中的brick的位置组装成可以在glusterfs命令行中直接使用的格式
+ public String concat(List brickName) {
+ StringBuffer result = new StringBuffer();
+ int len = brickName.size();
+ for (int i = 0; i < len; i++) {
+ result.append(brickName.get(i));
+ result.append(" ");
+ }
+ return result.toString();
+ }
+
+ /*
+ * 只在创建volume时使用此函数 创建volume时对不同数据卷,brick的数量需要满足和count的关系
+ * 首先判断它们是否满足关系,在不满足的关系的情况下是肯定无法完成操作的 1:可以创建 ;-1:brick的ip不在集群中或者未连接; -2 -3
+ * -4 :类型与brick数目不匹配 ; -5 :volumeName 已经存在;-6:挂载点存在且不为空,不能作为挂载点; -7:未知错误
+ */
+ public int isAbleCreateVolume(String volumeName, int count, String type, List bricks, String mountPoint) {
+ int status = 0;
+
+ int length = bricks.size();
+
+ if (type.equals(Constant.distributed)) {
+ if (count != 0) {
+ log.error("3101 the kind of distributed requires the arg of count to be 0");
+ return -2;
+ }
+ }
+ if (type.equals(Constant.stripe)) {
+ if (length % count != 0) {
+ log.error("3102 the number of bricks should be the same as or the times of the stripe count");
+ return -3;
+ }
+ }
+ if (type.equals(Constant.replica)) {
+ if ((length % count) != 0) {
+ log.error(
+ "3103 the number of bricks should be the same as the replicate count or the times of replicate count");
+ return -4;
+ }
+ }
+
+ Map peer_status = new ClusterInfo().showClusterInfo();
+ peer_status.put(Constant.hostIp, Constant.peerincluster_connected);
+ for (String brick : bricks) {
+ brick = brick.split(":")[0];
+ if (!(peer_status.containsKey(brick) && peer_status.get(brick).equals(Constant.peerincluster_connected))) {
+ log.error("3105 birck " + brick + " ip is not in cluster");
+ return -1;
+ }
+
+ }
+
+ List volumeNames = new VolumeInfo().showAllVolumeName();
+ if (volumeNames == null) {
+ log.error("3108 showAllVolumeName return error");
+ return -7;
+ }
+ if (volumeNames.contains(volumeName)) {
+ log.error("3106 " + volumeName + " is already exists! ");
+ return -5;
+ }
+
+ /*
+ Map datas = new ShowData().showFolderData(mountPoint);
+ if (datas != null && datas.size() > 0) {
+ log.error("3107 " + mountPoint + " is not exists or not empty ! ");
+ return -6;
+ }
+ */
+ return 1;
+ }
+
+ /**
+ * 添加或删除volume的brick时,首先需要判断volume是否存在,然后需要判断volume类型、count及brick数目
+ *
+ * @param volumeName
+ * @param count
+ * @param type
+ * @param bricks
+ * @return 1 满足条件,可以添加;-1 :volume name is not exists;-2,-3,-4 类型与brick数量不匹配;
+ */
+ public int isAble(String volumeName, int count, String type, List bricks) {
+ List volumeNames = new VolumeInfo().showAllVolumeName();
+
+ if (!volumeNames.contains(volumeName)) {
+ log.error("3201:" + volumeName + " is not exists! ");
+ return -1;
+ }
+
+ int length = bricks.size();
+ if (type.equals("distribute")) {
+ if (count == 0)
+ return 1;
+ else {
+ log.error("3202: the kind of distributed requires the arg of count to be 0");
+ // System.out.println(" the kind of distributed requires the
+ // arg of count to be 0");
+ return -2;
+ }
+ }
+
+ if (type.equals("stripe")) {
+ if (length % count == 0)
+ return 1;
+ else {
+ log.error("3203: the number of bricks should be the same as or the times of the stripe count");
+ // System.out.println(" the number of bricks should be the
+ // same as or the times of the stripe count");
+ return -3;
+
+ }
+ }
+ if (type.equals("replicate")) {
+ if ((length % count) == 0)
+ return 1;
+ else {
+ log.error(
+ "3204: the number of bricks should be the same as the replicate count or the times of replicate count");
+
+ return -4;
+ }
+ }
+
+ return 1;
+ }
+
+ @Test
+ public void test_deleteVolume(){
+ System.out.println(deleteVolume("lili_test1"));
+ }
+// @Test
+ public void test_createVolume(){
+ List bricksToCreate = new ArrayList();
+ bricksToCreate.add("192.168.0.110:/lili_test1");
+ bricksToCreate.add("192.168.0.116:/lili_test1");
+ System.out.println(createVolume("lili_test1", 0, "distributed", bricksToCreate, "/home/lili_test1_point"));
+ }
+ public static void main(String[] args) {
+ SetVolume setVolume = new SetVolume();
+ int operation = 0;
+ // PropertyConfigurator.configure("log4j.properties");
+ // TODO Auto-generated method stub
+ // 测试创建volume的代码
+
+// List bricksToCreate = new ArrayList();
+// bricksToCreate.add("192.168.0.110:/v2");
+// bricksToCreate.add("192.168.0.116:/v2");
+// operation = setVolume.createVolume("v2", 0, "distributed", bricksToCreate, "/home/v2_point");
+ // operation = setVolume.deleteVolume("v3");
+ //
+ // // 以下是测试添加brick的代码
+ //
+ // List bricksToAdd = new ArrayList();
+ // bricksToAdd.add("192.168.191.23:/v3");
+ // operation = setVolume.addBrickVolume("v3", bricksToAdd, 0,
+ // "distribute");
+ // System.out.println(operation);
+
+ // 以下代码是测试删除brick的代码
+ // List bricksToAdd= new ArrayList();
+ // bricksToAdd.add("192.168.191.23:/v3");
+ // operation =
+ // setVolume.deleteBrickVolume("v3",bricksToAdd,0,"distribute");
+ // System.out.println(operation);
+ // 以下是测试start volume的代码
+ // String volumeToStart = "testcreate" ;
+ // int startOperation = startVolume(volumeToStart);
+ // System.out.println(startOperation);
+ // 以下是测试stop volume
+ String volumeToStop = "v3";
+ // int startOperation = setVolume.stopVolume(volumeToStop);
+ // 以下是测试创建volume并完成挂载的代码
+ // List bricksToCreate= new ArrayList();
+ // bricksToCreate.add("192.168.214.135:/home/create");
+ // bricksToCreate.add("192.168.214.138:/home/create");
+ //
+ // int operation =
+ // createVolume("createAndmount",0,"distribute",bricksToCreate,"/mnt/create");
+ // System.out.println(operation);
+ }
+}
diff --git a/src/com/platform/glusterfs/ShowData.java b/src/com/platform/glusterfs/ShowData.java
index 0ca8b438..ff4180ff 100644
--- a/src/com/platform/glusterfs/ShowData.java
+++ b/src/com/platform/glusterfs/ShowData.java
@@ -1,132 +1,132 @@
-package com.platform.glusterfs;
-
-import java.util.HashMap;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Map;
-
-import org.apache.log4j.Logger;
-
-
-import org.apache.log4j.PropertyConfigurator;
-import org.junit.Test;
-
-import com.platform.utils.Constant;
-
-
-public class ShowData {
-
- public static Logger log = Logger.getLogger ( ShowData.class);
-
- /**
- * get the data of volumeName Map s1 is data name and s2 is type file or folder
- * <功能详细描述>
- * @param volumeName
- * @return
- * @see [类、类#方法、类#成员]
- */
- public Map showVolumeFiles(String volumeName){
- log.info("start show the data");
- Map data_type=new HashMap();
- /**
- * get mount point of volumeName
- */
- String folderName=volumeName;
-
- data_type=showFolderData(volumeName);
- return data_type;
-}
- /**
- * get the data of folder name
- * Map is folder name and type 1 is file and others is folder
-
-
- * @param FolderName
- * @return
- */
- public Map showFolderData(String folderName){
- log.info(" start get "+folderName+" data");
-
-
- Map data_type=new HashMap();
- String command="ls -l "+folderName;
-
- /*
-<<<<<<< HEAD
- * RunCommand runCommand=new RunCommand(); List
- * reStrings=runCommand.runCommandWait(command);
- */
- List reStrings = Constant.ganymedSSH.execCmdWaitAcquiescent(command);
- if (reStrings == null) {
- log.error("2101 command get result is null");
- return null;
- }
- if(reStrings.size()==0){
- log.info("2102 the folder is empty");
- return data_type;
- }
- if(reStrings.get(0).contains("No such file or directory")){
- log.info("2103 the "+folderName+" is not exists");
- return null;
- }
- /**
- * remove first line total number
- */
- reStrings.remove(0);
-
- for(Iterator it2 = reStrings.iterator();it2.hasNext();){
- String line=(String)it2.next();
- line=line.replaceAll(" +", " ");
- String keyValue[]=line.split(" ");
- if(keyValue.length<9){
- log.error("2104 "+line+" length is short");
- continue;
- }
-
- data_type.put(keyValue[8], keyValue[1]);
-
- }
- log.info(" get "+folderName+" data successed");
- return data_type;
- }
-
- /**
- * 返回folder的大小字节表示
- * -2表示获取大小出错,-1表示folder不存在,其他表示folder的大小
- * @param folderPath
- * @return
- * @see [类、类#方法、类#成员]
- */
- public long getFolderSize(String folderPath) {
- log.info("get " + folderPath + " Size ");
-
- String command = "du -k -d 0 "+folderPath+" | grep " + folderPath + "|awk \'{print $1}\'";
- List reStrings = Constant.ganymedSSH.execCmdWaitAcquiescent(command);
- if(reStrings==null || reStrings.size()==0){
- log.error("get " + folderPath + " Size error!");
- return -2;
- }
- if (reStrings.get(0).contains(Constant.noSuchFile)) {
- log.error(folderPath+" is not exists");
- return -1;
- }
- long size = Long.valueOf(reStrings.get(0));
-
-
- return size;
- }
-
-
- /**
- *
- * <一句话功能简述>
- * <功能详细描述>
- * @see [类、类#方法、类#成员]
- */
- @Test
- public void testShowData(){
-
- System.out.println(showFolderData("/home"));
-
- }
+package com.platform.glusterfs;
+
+import java.util.HashMap;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Map;
+
+import org.apache.log4j.Logger;
+
+
+import org.apache.log4j.PropertyConfigurator;
+import org.junit.Test;
+
+import com.platform.utils.Constant;
+
+
+public class ShowData {
+
+ public static Logger log = Logger.getLogger ( ShowData.class);
+
+ /**
+ * get the data of volumeName Map s1 is data name and s2 is type file or folder
+ * <功能详细描述>
+ * @param volumeName
+ * @return
+ * @see [类、类#方法、类#成员]
+ */
+ public Map showVolumeFiles(String volumeName){
+ log.info("start show the data");
+ Map data_type=new HashMap();
+ /**
+ * get mount point of volumeName
+ */
+ String folderName=volumeName;
+
+ data_type=showFolderData(volumeName);
+ return data_type;
+}
+ /**
+ * get the data of folder name
+ * Map is folder name and type 1 is file and others is folder
+
+
+ * @param FolderName
+ * @return
+ */
+ public Map showFolderData(String folderName){
+ log.info(" start get "+folderName+" data");
+
+
+ Map data_type=new HashMap();
+ String command="ls -l "+folderName;
+
+ /*
+<<<<<<< HEAD
+ * RunCommand runCommand=new RunCommand(); List
+ * reStrings=runCommand.runCommandWait(command);
+ */
+ List reStrings = Constant.ganymedSSH.execCmdWaitAcquiescent(command);
+ if (reStrings == null) {
+ log.error("2101 command get result is null");
+ return null;
+ }
+ if(reStrings.size()==0){
+ log.info("2102 the folder is empty");
+ return data_type;
+ }
+ if(reStrings.get(0).contains("No such file or directory")){
+ log.info("2103 the "+folderName+" is not exists");
+ return null;
+ }
+ /**
+ * remove first line total number
+ */
+ reStrings.remove(0);
+
+ for(Iterator it2 = reStrings.iterator();it2.hasNext();){
+ String line=(String)it2.next();
+ line=line.replaceAll(" +", " ");
+ String keyValue[]=line.split(" ");
+ if(keyValue.length<9){
+ log.error("2104 "+line+" length is short");
+ continue;
+ }
+
+ data_type.put(keyValue[8], keyValue[1]);
+
+ }
+ log.info(" get "+folderName+" data successed");
+ return data_type;
+ }
+
+ /**
+ * 返回folder的大小字节表示
+ * -2表示获取大小出错,-1表示folder不存在,其他表示folder的大小
+ * @param folderPath
+ * @return
+ * @see [类、类#方法、类#成员]
+ */
+ public long getFolderSize(String folderPath) {
+ log.info("get " + folderPath + " Size ");
+
+ String command = "du -k -d 0 "+folderPath+" | grep " + folderPath + "|awk \'{print $1}\'";
+ List reStrings = Constant.ganymedSSH.execCmdWaitAcquiescent(command);
+ if(reStrings==null || reStrings.size()==0){
+ log.error("get " + folderPath + " Size error!");
+ return -2;
+ }
+ if (reStrings.get(0).contains(Constant.noSuchFile)) {
+ log.error(folderPath+" is not exists");
+ return -1;
+ }
+ long size = Long.valueOf(reStrings.get(0));
+
+
+ return size;
+ }
+
+
+ /**
+ *
+ * <一句话功能简述>
+ * <功能详细描述>
+ * @see [类、类#方法、类#成员]
+ */
+ @Test
+ public void testShowData(){
+
+ System.out.println(showFolderData("/home"));
+
+ }
}
\ No newline at end of file
diff --git a/src/com/platform/glusterfs/SizeInfo.java b/src/com/platform/glusterfs/SizeInfo.java
index 4d639be2..1aad2969 100644
--- a/src/com/platform/glusterfs/SizeInfo.java
+++ b/src/com/platform/glusterfs/SizeInfo.java
@@ -1,93 +1,93 @@
-package com.platform.glusterfs;
-
-
-import java.io.File;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Map;
-
-import org.apache.log4j.Logger;
-import org.apache.log4j.PropertyConfigurator;
-
-import com.platform.utils.Constant;
-
-public class SizeInfo {
- public static Logger log = Logger.getLogger(ClusterInfo.class);
- VolumeInfo volumeInfo = new VolumeInfo();
-
- /**
- * 获取集群�?��volume size
- * 返回值:-1:错�? 0:没有volume long:size大小
- * @return
- */
- public long showAllSize() {
- log.info("get AllSize ");
- List volumeNames = volumeInfo.showAllVolumeName();
- if (volumeNames == null) {
- log.error("1201 showAllVolumeName error");
- return -1;
- }
- if (volumeNames.size() == 0) {
- log.error("1202 It is not exist any volume");
- return 0;
- }
- List reStrings = null;
- long size = 0L;
-
- for (String str : volumeNames) {
- String command = "df |grep " + str + "|awk \'{print $2}\'";
- reStrings = Constant.ganymedSSH.execCmdWait(Constant.hostIp, Constant.rootUser, Constant.rootPasswd, Constant.port,
- command);
- if (reStrings.isEmpty()) {
- log.error("1203 The brick is unmount");
- } else {
- size += Long.parseLong(reStrings.get(0));
- }
-
- }
-
- return size;
- }
- /**
- * 返回集群已用大小
- * @return
- * 返回值:-1:错�? 0:没有volume long:size大小
- */
- public long showUseSize() {
- log.info("get UseSize ");
-
- List volumeNames = volumeInfo.showAllVolumeName();
- List reStrings = null;
- long size = 0L;
- if (volumeNames == null) {
- log.error("1201 showAllVolumeName error");
- return -1;
- }
- if (volumeNames.size() == 0) {
- log.error("1202 It is not exist any volume");
- return 0;
- }
-
- for (String str : volumeNames) {
- String command = "df |grep " + str + "|awk \'{print $3}\'";
- reStrings = Constant.ganymedSSH.execCmdWait(Constant.hostIp, Constant.rootUser, Constant.rootPasswd,
- Constant.port, command);
- if (reStrings.isEmpty()) {
- log.error("1202 The brick is unmount");
- } else {
- size += Integer.valueOf(reStrings.get(0));
- }
-
- }
-
- return size;
- }
-
- public static void main(String[] args) {
- PropertyConfigurator.configure("log4j.properties");
- System.out.println(new SizeInfo().showAllSize());
- System.out.println(new SizeInfo().showUseSize());
- }
+package com.platform.glusterfs;
+
+
+import java.io.File;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Map;
+
+import org.apache.log4j.Logger;
+import org.apache.log4j.PropertyConfigurator;
+
+import com.platform.utils.Constant;
+
+public class SizeInfo {
+ public static Logger log = Logger.getLogger(ClusterInfo.class);
+ VolumeInfo volumeInfo = new VolumeInfo();
+
+ /**
+ * 获取集群�?��volume size
+ * 返回值:-1:错�? 0:没有volume long:size大小
+ * @return
+ */
+ public long showAllSize() {
+ log.info("get AllSize ");
+ List volumeNames = volumeInfo.showAllVolumeName();
+ if (volumeNames == null) {
+ log.error("1201 showAllVolumeName error");
+ return -1;
+ }
+ if (volumeNames.size() == 0) {
+ log.error("1202 It is not exist any volume");
+ return 0;
+ }
+ List reStrings = null;
+ long size = 0L;
+
+ for (String str : volumeNames) {
+ String command = "df |grep " + str + "|awk \'{print $2}\'";
+ reStrings = Constant.ganymedSSH.execCmdWait(Constant.hostIp, Constant.rootUser, Constant.rootPasswd, Constant.port,
+ command);
+ if (reStrings.isEmpty()) {
+ log.error("1203 The brick is unmount");
+ } else {
+ size += Long.parseLong(reStrings.get(0));
+ }
+
+ }
+
+ return size;
+ }
+ /**
+ * 返回集群已用大小
+ * @return
+ * 返回值:-1:错�? 0:没有volume long:size大小
+ */
+ public long showUseSize() {
+ log.info("get UseSize ");
+
+ List volumeNames = volumeInfo.showAllVolumeName();
+ List reStrings = null;
+ long size = 0L;
+ if (volumeNames == null) {
+ log.error("1201 showAllVolumeName error");
+ return -1;
+ }
+ if (volumeNames.size() == 0) {
+ log.error("1202 It is not exist any volume");
+ return 0;
+ }
+
+ for (String str : volumeNames) {
+ String command = "df |grep " + str + "|awk \'{print $3}\'";
+ reStrings = Constant.ganymedSSH.execCmdWait(Constant.hostIp, Constant.rootUser, Constant.rootPasswd,
+ Constant.port, command);
+ if (reStrings.isEmpty()) {
+ log.error("1202 The brick is unmount");
+ } else {
+ size += Integer.valueOf(reStrings.get(0));
+ }
+
+ }
+
+ return size;
+ }
+
+ public static void main(String[] args) {
+ PropertyConfigurator.configure("log4j.properties");
+ System.out.println(new SizeInfo().showAllSize());
+ System.out.println(new SizeInfo().showUseSize());
+ }
}
\ No newline at end of file
diff --git a/src/com/platform/glusterfs/VolumeInfo.java b/src/com/platform/glusterfs/VolumeInfo.java
index e2ece069..3c4bfb1d 100644
--- a/src/com/platform/glusterfs/VolumeInfo.java
+++ b/src/com/platform/glusterfs/VolumeInfo.java
@@ -1,406 +1,406 @@
-
-package com.platform.glusterfs;
-
-import java.io.File;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Map;
-
-import org.apache.log4j.Logger;
-import org.apache.log4j.PropertyConfigurator;
-import org.junit.Test;
-import org.omg.CosNaming.NamingContextExtPackage.StringNameHelper;
-
-import com.platform.utils.Constant;
-import com.platform.utils.GanymedSSH;
-
-import java.util.regex.Matcher;
-import java.util.regex.Pattern;
-
-/**
- * 获取volume信息 <功能详细描述>
- *
- * @author liliy
- * @version [版本号,2016年9月13日]
- * @see [相关类/方法]
- * @since [产品/模块版本]
- */
-public class VolumeInfo {
- public static Logger log = Logger.getLogger(VolumeInfo.class);
-
- /**
- * 显示所有volume名称 <功能详细描述>
- *
- * @return
- * @see [类、类#方法、类#成员]
- */
- public List showAllVolumeName() {
- log.info("get volume name");
- List volNames = new ArrayList();
-
- /*
- * String command = "echo \"" + Constant.rootPasswd +
- * "\" |sudo -S gluster volume info|grep ^Volume.Name"; RunCommand
- * runCommand = new RunCommand(); List reStrings =
- * runCommand.runCommandWait(command);
- */
- List reStrings = Constant.ganymedSSH
- .execCmdWaitAcquiescent(Constant.glusterVolumeInfo + "|grep ^Volume.Name");
- // System.out.println(reStrings);
- if (reStrings == null) {
- log.error("1401 get result is null");
- return null;
- }
- if (reStrings.size() == 0) {
- log.error("1402 get result is nothing");
- return null;
- }
- if (reStrings.get(0).contains(Constant.noVolume)) {
- reStrings.clear();
- return reStrings;
- }
- if (!(reStrings.get(0).split(":")[0].contains("Volume Name"))) {
- log.error("1403 get result string wrong");
- return null;
- }
-
- String nameInfo = "";
- for (Iterator it = reStrings.iterator(); it.hasNext();) {
- String line = (String) it.next();
- String str[] = line.split(":");
- volNames.add(str[1].replaceAll(" ", ""));
- }
- return volNames;
-
- }
-
- /**
- * 给定参数volume的名称获得volume的类型
- *
- * @param volumeName
- * @return
- * @see [类、类#方法、类#成员]
- */
- public String getVolumeType(String volumeName) {
- log.info("get volume type");
- String volType = "";
-
- List reStrings = Constant.ganymedSSH
- .execCmdWaitAcquiescent(Constant.glusterVolumeInfo + volumeName + "|grep ^Type");
- // System.out.println(reStrings);
- if (reStrings == null) {
- log.error("1501 get result is null");
- return null;
- }
- if (reStrings.size() == 0) {
- log.error("1502 get result is nothing");
- return null;
- }
- if (!(reStrings.get(0).split(":")[0].contains("Type"))) {
- log.error("1503 get result string wrong");
- return null;
- }
-
- // System.out.println(reStrings);
-
- for (Iterator it = reStrings.iterator(); it.hasNext();) {
- String line = (String) it.next();
- String str[] = line.split(":");
- volType = str[1];
- }
- volType = volType.replaceAll(" ", "");
- return volType;
- }
-
- /**
- * 获取volumeName的状态 如果出错返回null,如果volumeName不存在则返回Volume volumeName does not
- * exist,正常返回状态Started,Stopped,Created
- *
- * @param volumeName
- * @return
- * @see [类、类#方法、类#成员]
- */
- public String getVolumeStatus(String volumeName) {
- log.info("get volume status");
- String volStatus = "";
- String cmd = Constant.glusterVolumeInfo + " " + volumeName + " |grep ^Status";
- List reStrings = Constant.ganymedSSH.execCmdWaitAcquiescent(cmd);
- // System.out.println(reStrings);
- if (reStrings == null) {
- log.error("1701 get result is null");
- return null;
- }
- if (reStrings.size() == 0) {
- log.error("1702 get result is nothing");
- return null;
- }
-
- if (reStrings.get(0).contains("does not exist")) {
- log.error("1703 " + reStrings.get(0));
- return reStrings.get(0);
- }
- if (!(reStrings.get(0).split(":")[0].contains("Status"))) {
- log.error("1704 get result string wrong");
- return null;
- }
- for (Iterator it = reStrings.iterator(); it.hasNext();) {
- String line = (String) it.next();
- String str[] = line.split(":");
- volStatus = str[1].replaceAll(" ", "");
- }
-
- return volStatus;
- }
-
- /**
- * 获取volumeName的可用大小
- * volumeName不存在返回-1,获取大小错误返回-2 ,正常返回volumeName的可用大小
- * @param volumeName
- * @return
- * @see [类、类#方法、类#成员]
- */
- public Long getVolumeAvailableSize(String volumeName) throws Exception{
- log.info("get volume availableSize");
- Long allSize = 0L;
-
- String cmd = Constant.df + " | grep " + volumeName + "|awk '{print $4}'";
- List reStrings = Constant.ganymedSSH.execCmdWaitAcquiescent(cmd);
- // System.out.println(reStrings);
- if (reStrings == null) {
- log.error("1802 get result is error");
- return -2L;
- }
- if (reStrings.size() == 0) {
- log.error("1801 " + volumeName + " is not exists!");
- return -1L;
- }
- allSize = Long.parseLong(reStrings.get(0));
- return allSize;
- }
-
- /**
- * 获取volumeName已用空间
- * volumeName不存在返回-1,获取大小错误返回-2 ,正常返回volumeName的已用的大小
- * @param volumeName
- * @return
- * @see [类、类#方法、类#成员]
- */
- public Long getVolumeUseSize(String volumeName) throws Exception{
- log.info("get volume used size");
- Long usedSize = 0L;
- if (volumeIsExists(volumeName) == false) {
- log.error("1901 " + volumeName + " is not exists!");
- return -1L;
-
- }
-
- String cmd = "df | grep " + volumeName + "|awk '{print $3}'";
- List reStrings = Constant.ganymedSSH.execCmdWaitAcquiescent(cmd);
- // System.out.println(reStrings);
- if (reStrings == null) {
- log.error("1901 get result is null");
- return -2L;
- }
- if (reStrings.size() == 0) {
- log.error("1902 " + volumeName + " is not exists!");
- return -1L;
- }
- usedSize = Long.parseLong(reStrings.get(0));
- return usedSize;
- }
-
- /**
- * 获取volumeName的bricks
- * 返回一个bircks的list ip:path,如果volumeName不存在返回null
- * @param volumeName
- * @return
- * @see [类、类#方法、类#成员]
- */
- public List getVolumeBricks(String volumeName) {
- log.info("get volume bricks");
-
- String cmd = "gluster volume info " + volumeName + " |grep ^Brick'[0-9]\\+' |awk '{print $2}'";
- List reStrings = Constant.ganymedSSH.execCmdWaitAcquiescent(cmd);
- // System.out.println(reStrings);
- if (reStrings == null) {
- log.error("1601 get volume bricks wrong");
- return null;
- }
- if (reStrings.size()==0) {
- log.error("1602 "+volumeName+" is not exists!");
- return null;
- }
- return reStrings;
- }
-
- /**
- * 获取volumeName所有挂载点
- * <功能详细描述>
- * @param volumeName
- * @return
- * @see [类、类#方法、类#成员]
- */
- public List getVolumeMountPoint(String volumeName) {
- log.info("get volume MountPoint");
- List mountPoints = new ArrayList<>();
- String cmd=Constant.df + "|grep " + volumeName + "|awk '{print $6}'";
- List