Mercurial > hg > Applications > AliceVNC
changeset 74:d05de910a3f1
update Alice TopologyNodeConfig for over NAT
author | Nozomi |
---|---|
date | Thu, 26 Nov 2015 20:09:52 +0900 |
parents | 281b667970de |
children | e6bbe25072b1 |
files | .idea/compiler.xml .idea/gradle.xml .idea/misc.xml .idea/workspace.xml AliceVNC.iml build.gradle src/main/java/jp/ac/u_ryukyu/alicevnc/StartAliceVNC.java |
diffstat | 7 files changed, 43 insertions(+), 71 deletions(-) [+] |
line wrap: on
line diff
--- a/.idea/compiler.xml Thu Nov 26 03:39:36 2015 +0900 +++ b/.idea/compiler.xml Thu Nov 26 20:09:52 2015 +0900 @@ -11,6 +11,7 @@ <entry name="!?*.flex" /> <entry name="!?*.kt" /> <entry name="!?*.clj" /> + <entry name="!?*.aj" /> </wildcardResourcePatterns> <annotationProcessing> <profile default="true" name="Default" enabled="false">
--- a/.idea/gradle.xml Thu Nov 26 03:39:36 2015 +0900 +++ b/.idea/gradle.xml Thu Nov 26 20:09:52 2015 +0900 @@ -5,7 +5,7 @@ <GradleProjectSettings> <option name="distributionType" value="LOCAL" /> <option name="externalProjectPath" value="$PROJECT_DIR$" /> - <option name="gradleHome" value="/usr/local/Cellar/gradle/2.2.1/libexec" /> + <option name="gradleHome" value="/usr/local/share/gradle" /> <option name="gradleJvm" value="1.8" /> <option name="modules"> <set>
--- a/.idea/misc.xml Thu Nov 26 03:39:36 2015 +0900 +++ b/.idea/misc.xml Thu Nov 26 20:09:52 2015 +0900 @@ -1,5 +1,8 @@ <?xml version="1.0" encoding="UTF-8"?> <project version="4"> + <component name="EntryPointsManager"> + <entry_points version="2.0" /> + </component> <component name="ProjectLevelVcsManager" settingsEditedManually="false"> <OptionsSetting value="true" id="Add" /> <OptionsSetting value="true" id="Remove" /> @@ -10,14 +13,13 @@ <ConfirmationsSetting value="0" id="Add" /> <ConfirmationsSetting value="0" id="Remove" /> </component> - <component name="ProjectRootManager" version="2" languageLevel="JDK_1_6" assert-keyword="true" jdk-15="true" project-jdk-name="1.8" project-jdk-type="JavaSDK"> + <component name="ProjectRootManager" version="2" languageLevel="JDK_1_6" assert-keyword="true" jdk-15="true" project-jdk-name="1.8 (1)" project-jdk-type="JavaSDK"> <output url="file://$PROJECT_DIR$/classes" /> </component> <component name="masterDetails"> <states> <state key="ProjectJDKs.UI"> <settings> - <last-edited>1.8</last-edited> <splitter-proportions> <option name="proportions"> <list>
--- a/.idea/workspace.xml Thu Nov 26 03:39:36 2015 +0900 +++ b/.idea/workspace.xml Thu Nov 26 20:09:52 2015 +0900 @@ -1,19 +1,14 @@ <?xml version="1.0" encoding="UTF-8"?> <project version="4"> <component name="ChangeListManager"> - <list default="true" id="b0cc22eb-4440-4b44-9c5c-b48bc3dfb6a0" name="Default" comment=""> - <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.gradle/2.2.1/taskArtifacts/cache.properties.lock" afterPath="$PROJECT_DIR$/.gradle/2.2.1/taskArtifacts/cache.properties.lock" /> - <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.gradle/2.2.1/taskArtifacts/fileHashes.bin" afterPath="$PROJECT_DIR$/.gradle/2.2.1/taskArtifacts/fileHashes.bin" /> - <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.gradle/2.2.1/taskArtifacts/fileSnapshots.bin" afterPath="$PROJECT_DIR$/.gradle/2.2.1/taskArtifacts/fileSnapshots.bin" /> - <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.gradle/2.2.1/taskArtifacts/outputFileStates.bin" afterPath="$PROJECT_DIR$/.gradle/2.2.1/taskArtifacts/outputFileStates.bin" /> - <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.gradle/2.2.1/taskArtifacts/taskArtifacts.bin" afterPath="$PROJECT_DIR$/.gradle/2.2.1/taskArtifacts/taskArtifacts.bin" /> - <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.hgignore" afterPath="$PROJECT_DIR$/.hgignore" /> + <list default="true" id="8fef99ae-24c9-4790-8af0-88735ddcc74e" name="Default" comment=""> <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/compiler.xml" afterPath="$PROJECT_DIR$/.idea/compiler.xml" /> <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/gradle.xml" afterPath="$PROJECT_DIR$/.idea/gradle.xml" /> <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/misc.xml" afterPath="$PROJECT_DIR$/.idea/misc.xml" /> <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" /> <change type="MODIFICATION" beforePath="$PROJECT_DIR$/AliceVNC.iml" afterPath="$PROJECT_DIR$/AliceVNC.iml" /> <change type="MODIFICATION" beforePath="$PROJECT_DIR$/build.gradle" afterPath="$PROJECT_DIR$/build.gradle" /> + <change type="MODIFICATION" beforePath="$PROJECT_DIR$/src/main/java/jp/ac/u_ryukyu/alicevnc/StartAliceVNC.java" afterPath="$PROJECT_DIR$/src/main/java/jp/ac/u_ryukyu/alicevnc/StartAliceVNC.java" /> </list> <ignored path="AliceVNC.iws" /> <ignored path=".idea/workspace.xml" /> @@ -48,11 +43,11 @@ </component> <component name="FileEditorManager"> <leaf> - <file leaf-file-name="build.gradle" pinned="false" current-in-tab="true"> - <entry file="file://$PROJECT_DIR$/build.gradle"> + <file leaf-file-name="StartAliceVNC.java" pinned="false" current-in-tab="true"> + <entry file="file://$PROJECT_DIR$/src/main/java/jp/ac/u_ryukyu/alicevnc/StartAliceVNC.java"> <provider selected="true" editor-type-id="text-editor"> - <state vertical-scroll-proportion="0.7217573"> - <caret line="24" column="54" selection-start-line="24" selection-start-column="54" selection-end-line="24" selection-end-column="54" /> + <state vertical-scroll-proportion="0.32238504"> + <caret line="27" column="82" selection-start-line="27" selection-start-column="82" selection-end-line="27" selection-end-column="82" /> <folding /> </state> </provider> @@ -184,12 +179,12 @@ <option name="name" value="javadoc" /> </ExternalTaskPojo> <ExternalTaskPojo> - <option name="description" value="Processes JVM resources 'main:resources'." /> + <option name="description" value="Processes resources 'main:resources'." /> <option name="linkedExternalProjectPath" value="$PROJECT_DIR$" /> <option name="name" value="processResources" /> </ExternalTaskPojo> <ExternalTaskPojo> - <option name="description" value="Processes JVM resources 'test:resources'." /> + <option name="description" value="Processes resources 'test:resources'." /> <option name="linkedExternalProjectPath" value="$PROJECT_DIR$" /> <option name="name" value="processTestResources" /> </ExternalTaskPojo> @@ -210,24 +205,13 @@ </option> <option name="modificationStamps"> <map> - <entry key="$USER_HOME$/Development/CR/AliceVNC" value="1448296211000" /> - <entry key="$USER_HOME$/Development/CR/OldAliceVNC" value="1446365710000" /> - <entry key="$USER_HOME$/Development/CR/tvnjviewer" value="1447682158000" /> - <entry key="$USER_HOME$/Development/IdeaProjects/Alice" value="1448284556000" /> - <entry key="$USER_HOME$/Development/IdeaProjects/Alice_old/Alice" value="1440142856000" /> - <entry key="$USER_HOME$/Development/IdeaProjects/OldAlice/Alice" value="1447995807000" /> - <entry key="$PROJECT_DIR$/../Alice" value="1448458165000" /> - <entry key="$PROJECT_DIR$" value="1448458325000" /> + <entry key="$PROJECT_DIR$/../Alice" value="1448525556000" /> + <entry key="$PROJECT_DIR$" value="1448535896000" /> + <entry key="$PROJECT_DIR$/../TreeVNC" value="1423654115000" /> + <entry key="$PROJECT_DIR$/../tvnjviewer" value="1448447294000" /> </map> </option> </component> - <component name="IdeDocumentHistory"> - <option name="CHANGED_PATHS"> - <list> - <option value="$PROJECT_DIR$/build.gradle" /> - </list> - </option> - </component> <component name="MavenImportPreferences"> <option name="generalSettings"> <MavenGeneralSettings> @@ -236,9 +220,10 @@ </option> </component> <component name="ProjectFrameBounds"> + <option name="x" value="4" /> <option name="y" value="23" /> - <option name="width" value="1440" /> - <option name="height" value="873" /> + <option name="width" value="3836" /> + <option name="height" value="2137" /> </component> <component name="ProjectLevelVcsManager" settingsEditedManually="false"> <OptionsSetting value="true" id="Add" /> @@ -266,6 +251,7 @@ </navigator> <panes> <pane id="PackagesPane" /> + <pane id="Scope" /> <pane id="Scratches" /> <pane id="ProjectPane"> <subPane> @@ -274,10 +260,6 @@ <option name="myItemId" value="AliceVNC" /> <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" /> </PATH_ELEMENT> - <PATH_ELEMENT> - <option name="myItemId" value="External Libraries" /> - <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ExternalLibrariesNode" /> - </PATH_ELEMENT> </PATH> <PATH> <PATH_ELEMENT> @@ -317,7 +299,6 @@ </PATH> </subPane> </pane> - <pane id="Scope" /> </panes> </component> <component name="PropertiesComponent"> @@ -327,9 +308,9 @@ <property name="MemberChooser.sorted" value="false" /> <property name="MemberChooser.showClasses" value="true" /> <property name="MemberChooser.copyJavadoc" value="false" /> - <property name="last_opened_file_path" value="$PROJECT_DIR$/../Alice/build.gradle" /> <property name="settings.editor.selected.configurable" value="reference.projectsettings.compiler.javacompiler" /> <property name="settings.editor.splitter.proportion" value="0.2" /> + <property name="last_opened_file_path" value="$PROJECT_DIR$/build.gradle" /> </component> <component name="RunManager"> <configuration default="true" type="#org.jetbrains.idea.devkit.run.PluginConfigurationType" factoryName="Plugin"> @@ -422,27 +403,26 @@ <component name="ShelveChangesManager" show_recycled="false" /> <component name="TaskManager"> <task active="true" id="Default" summary="Default task"> - <changelist id="b0cc22eb-4440-4b44-9c5c-b48bc3dfb6a0" name="Default" comment="" /> - <created>1448458936205</created> + <changelist id="8fef99ae-24c9-4790-8af0-88735ddcc74e" name="Default" comment="" /> + <created>1448535937492</created> <option name="number" value="Default" /> - <updated>1448458936205</updated> + <updated>1448535937492</updated> </task> <servers /> </component> <component name="ToolWindowManager"> - <frame x="0" y="23" width="1440" height="873" extended-state="6" /> + <frame x="4" y="23" width="3836" height="2137" extended-state="6" /> <editor active="true" /> <layout> <window_info id="Palette" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" /> <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" /> - <window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" /> <window_info id="Palette	" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" /> <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" /> <window_info id="Maven Projects" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" /> <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" /> - <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.32980132" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" /> + <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" /> <window_info id="Designer" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" /> - <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.24964234" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" /> + <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" /> <window_info id="Gradle" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" /> <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" /> <window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" /> @@ -465,31 +445,19 @@ <breakpoint-manager /> <watches-manager /> </component> - <component name="antWorkspaceConfiguration"> - <option name="IS_AUTOSCROLL_TO_SOURCE" value="false" /> - <option name="FILTER_TARGETS" value="false" /> - </component> <component name="editorHistoryManager"> - <entry file="file://$PROJECT_DIR$/AliceVNC.iml"> + <entry file="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.glavsoft.viewer/tightvnc-jviewer/2.7.2/3a8d6a527230a722ef44889d0c56841779fa7a22/tightvnc-jviewer-2.7.2.jar!/alice/topology/node/TopologyNodeConfig.class"> <provider selected="true" editor-type-id="text-editor"> - <state vertical-scroll-proportion="0.0"> - <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" /> + <state vertical-scroll-proportion="0.34180498"> + <caret line="36" column="49" selection-start-line="36" selection-start-column="49" selection-end-line="36" selection-end-column="49" /> <folding /> </state> </provider> </entry> - <entry file="file://$PROJECT_DIR$/../Alice/Alice.iml"> + <entry file="file://$PROJECT_DIR$/src/main/java/jp/ac/u_ryukyu/alicevnc/StartAliceVNC.java"> <provider selected="true" editor-type-id="text-editor"> - <state vertical-scroll-proportion="0.0"> - <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" /> - <folding /> - </state> - </provider> - </entry> - <entry file="file://$PROJECT_DIR$/build.gradle"> - <provider selected="true" editor-type-id="text-editor"> - <state vertical-scroll-proportion="0.7217573"> - <caret line="24" column="54" selection-start-line="24" selection-start-column="54" selection-end-line="24" selection-end-column="54" /> + <state vertical-scroll-proportion="0.32238504"> + <caret line="27" column="82" selection-start-line="27" selection-start-column="82" selection-end-line="27" selection-end-column="82" /> <folding /> </state> </provider>
--- a/AliceVNC.iml Thu Nov 26 03:39:36 2015 +0900 +++ b/AliceVNC.iml Thu Nov 26 20:09:52 2015 +0900 @@ -17,7 +17,7 @@ <orderEntry type="module-library" exported=""> <library name="Gradle: com.glavsoft.viewer:tightvnc-jviewer:2.7.2"> <CLASSES> - <root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.glavsoft.viewer/tightvnc-jviewer/2.7.2/389ef780510b73af44702e902967cae059c320b9/tightvnc-jviewer-2.7.2.jar!/" /> + <root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.glavsoft.viewer/tightvnc-jviewer/2.7.2/3a8d6a527230a722ef44889d0c56841779fa7a22/tightvnc-jviewer-2.7.2.jar!/" /> </CLASSES> <JAVADOC /> <SOURCES /> @@ -26,7 +26,7 @@ <orderEntry type="module-library" exported=""> <library name="Gradle: cr.ie.u_ryukyu.ac.jp:Alice:1.1"> <CLASSES> - <root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/cr.ie.u_ryukyu.ac.jp/Alice/1.1/508c6f1b3941ccd1e59da029b0c238671504766c/Alice-1.1.jar!/" /> + <root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/cr.ie.u_ryukyu.ac.jp/Alice/1.1/1588864da5c0930bbe662a91c085fd82d1aa342/Alice-1.1.jar!/" /> </CLASSES> <JAVADOC /> <SOURCES />
--- a/build.gradle Thu Nov 26 03:39:36 2015 +0900 +++ b/build.gradle Thu Nov 26 20:09:52 2015 +0900 @@ -8,7 +8,7 @@ repositories { maven(){ - url 'http://www.cr.ie.u-ryukyu.ac.jp/hg/maven/raw-file/tip/' + url 'http://www.cr.ie.u-ryukyu.ac.jp/hg/maven/raw-file/3bdb20eef3d1/' } }
--- a/src/main/java/jp/ac/u_ryukyu/alicevnc/StartAliceVNC.java Thu Nov 26 03:39:36 2015 +0900 +++ b/src/main/java/jp/ac/u_ryukyu/alicevnc/StartAliceVNC.java Thu Nov 26 20:09:52 2015 +0900 @@ -1,9 +1,11 @@ package jp.ac.u_ryukyu.alicevnc; import java.util.ArrayList; +import java.util.LinkedList; import alice.daemon.AliceDaemon; import alice.topology.node.TopologyNode; +import alice.topology.node.TopologyNodeConfig; /** * java -cp AliceVNC.jar alice.topology.manager.TopologyManager @@ -23,11 +25,10 @@ return; } - if (conf.getManagerHostName() ==null){ - conf.setManagerHostName("firefly.cr.ie.u-ryukyu.ac.jp"); - conf.setManagerPort(10000); + LinkedList<TopologyNodeConfig> topologyNodeConfigs = TopologyNodeConfig.MultiTopologyNodeCongingFactory(args); + for(TopologyNodeConfig config : topologyNodeConfigs){ + new TopologyNode(config, cs); } - new TopologyNode(conf, cs); } }