@@ -0,0 +1,655 @@
+package org.palm.hazelcast.config;%0A%0Aimport com.hazelcast.config.Config;%0Aimport com.hazelcast.config.NetworkConfig;%0Aimport com.hazelcast.core.Hazelcast;%0A%0A/**%0A * %E5%B1%95%E7%A4%BA%E5%9C%A8%E4%BB%A3%E7%A0%81%E6%89%A7%E8%A1%8C%E6%97%B6%E4%BF%AE%E6%94%B9%E9%85%8D%E7%BD%AE%E5%88%9D%E5%A7%8B%E5%8C%96%E6%96%B9%E6%B3%95%0A * %0A * @author chkui%0A */%0Apublic class HazelcastConfigRuntimeModify %7B%0A%09public static void main(String%5B%5D args) %7B%0A%09%09// %E5%88%9B%E5%BB%BA%E9%BB%98%E8%AE%A4config%E5%AF%B9%E8%B1%A1%0A%09%09Config config = new Config();%0A%09%09// %E8%8E%B7%E5%8F%96NetworkConfig%0A%09%09NetworkConfig netConfig = config.getNetworkConfig();%0A%09%09System.out.println(%22Default port:%22 + netConfig.getPort());%0A%0A%09%09// %E8%AE%BE%E7%BD%AENetworkConfig%0A%09%09netConfig.setPort(9701);%0A%09%09System.out.println(%22Customer port:%22 + netConfig.getPort());%0A%09%09%0A%09%09// %E5%88%9D%E5%A7%8B%E5%8C%96Hazelcast%0A%09%09Hazelcast.newHazelcastInstance(config);%0A%09%7D%0A%7D%0A

add class:HazelcastConfigRuntimeModify