river-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gtra...@apache.org
Subject svn commit: r1057396 [2/2] - in /incubator/river/extra/JiniInfrastructure/trunk: ./ nbproject/ policy/ src/ src/org/ src/org/apache/ src/org/apache/river/ src/org/apache/river/extra/ src/org/apache/river/extra/start/ src/org/apache/river/extra/start/in...
Date Mon, 10 Jan 2011 22:14:42 GMT
Added: incubator/river/extra/JiniInfrastructure/trunk/src/org/apache/river/extra/start/infrastructure/MessageNames.java
URL: http://svn.apache.org/viewvc/incubator/river/extra/JiniInfrastructure/trunk/src/org/apache/river/extra/start/infrastructure/MessageNames.java?rev=1057396&view=auto
==============================================================================
--- incubator/river/extra/JiniInfrastructure/trunk/src/org/apache/river/extra/start/infrastructure/MessageNames.java
(added)
+++ incubator/river/extra/JiniInfrastructure/trunk/src/org/apache/river/extra/start/infrastructure/MessageNames.java
Mon Jan 10 22:14:41 2011
@@ -0,0 +1,30 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.river.extra.start.infrastructure;
+
+/**
+ *
+ * @author trasukg
+ */
+public class MessageNames {
+    public static final String BUNDLE_NAME=
+            "org.apache.river.extra.start.infrastructure.Messages";
+
+    public static final String
+            USAGE="show.usage";
+}

Added: incubator/river/extra/JiniInfrastructure/trunk/src/org/apache/river/extra/start/infrastructure/Messages.properties
URL: http://svn.apache.org/viewvc/incubator/river/extra/JiniInfrastructure/trunk/src/org/apache/river/extra/start/infrastructure/Messages.properties?rev=1057396&view=auto
==============================================================================
--- incubator/river/extra/JiniInfrastructure/trunk/src/org/apache/river/extra/start/infrastructure/Messages.properties
(added)
+++ incubator/river/extra/JiniInfrastructure/trunk/src/org/apache/river/extra/start/infrastructure/Messages.properties
Mon Jan 10 22:14:41 2011
@@ -0,0 +1,24 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
+show.usage=\
+Usage: java -jar JiniInfrastructure group\n\
+    \tgroup is the discovery workgroup\n\
+Example:\n\
+    \tjava -jar JiniInfrastructure MyGroup\n
+

Added: incubator/river/extra/JiniInfrastructure/trunk/src/org/apache/river/extra/start/infrastructure/Strings.java
URL: http://svn.apache.org/viewvc/incubator/river/extra/JiniInfrastructure/trunk/src/org/apache/river/extra/start/infrastructure/Strings.java?rev=1057396&view=auto
==============================================================================
--- incubator/river/extra/JiniInfrastructure/trunk/src/org/apache/river/extra/start/infrastructure/Strings.java
(added)
+++ incubator/river/extra/JiniInfrastructure/trunk/src/org/apache/river/extra/start/infrastructure/Strings.java
Mon Jan 10 22:14:41 2011
@@ -0,0 +1,29 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.river.extra.start.infrastructure;
+
+/**
+ *
+ * @author trasukg
+ */
+public class Strings {
+    public static final String
+            DISCOVERY_GROUP_PREFIX="start.discoveryGroup=",
+            DQUOTE="\"",
+            START_ALL_NONSECURE="startAllNonsecure.config";
+}

Added: incubator/river/extra/JiniInfrastructure/trunk/src/outriggerNonsecure.config
URL: http://svn.apache.org/viewvc/incubator/river/extra/JiniInfrastructure/trunk/src/outriggerNonsecure.config?rev=1057396&view=auto
==============================================================================
--- incubator/river/extra/JiniInfrastructure/trunk/src/outriggerNonsecure.config (added)
+++ incubator/river/extra/JiniInfrastructure/trunk/src/outriggerNonsecure.config Mon Jan 10
22:14:41 2011
@@ -0,0 +1,3 @@
+com.sun.jini.outrigger {
+    initialLookupGroups = new String[] { System.getProperty("user.name") + "InstallVerifyGroup"
};
+}

Added: incubator/river/extra/JiniInfrastructure/trunk/src/reggieNonsecure.config
URL: http://svn.apache.org/viewvc/incubator/river/extra/JiniInfrastructure/trunk/src/reggieNonsecure.config?rev=1057396&view=auto
==============================================================================
--- incubator/river/extra/JiniInfrastructure/trunk/src/reggieNonsecure.config (added)
+++ incubator/river/extra/JiniInfrastructure/trunk/src/reggieNonsecure.config Mon Jan 10 22:14:41
2011
@@ -0,0 +1,3 @@
+com.sun.jini.reggie {
+    initialMemberGroups = new String[] { start.discoveryGroup };
+}

Added: incubator/river/extra/JiniInfrastructure/trunk/src/startAllNonsecure.config
URL: http://svn.apache.org/viewvc/incubator/river/extra/JiniInfrastructure/trunk/src/startAllNonsecure.config?rev=1057396&view=auto
==============================================================================
--- incubator/river/extra/JiniInfrastructure/trunk/src/startAllNonsecure.config (added)
+++ incubator/river/extra/JiniInfrastructure/trunk/src/startAllNonsecure.config Mon Jan 10
22:14:41 2011
@@ -0,0 +1,99 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import com.sun.jini.start.NonActivatableServiceDescriptor;
+import com.sun.jini.start.ServiceDescriptor;
+import com.sun.jini.config.ConfigUtil;
+
+com.sun.jini.start {
+    private static policy = "policy/jsk-all.policy";
+    private static host = ConfigUtil.getHostName();
+    private static port = "8085";
+    private static jskdl = " http://" + host + ":" + port + "/jsk-dl.jar";
+
+    serviceDescriptors = new ServiceDescriptor[]{
+        new NonActivatableServiceDescriptor(
+            "",
+            policy,
+            "/lib/classserver.jar",
+            "com.sun.jini.tool.ClassServer",
+            new String[]{"-port", port, "-dir",
+                "lib",
+                "-verbose"}),
+
+        new NonActivatableServiceDescriptor(
+            "http://" + host + ":" + port + "/reggie-dl.jar" + jskdl,
+            policy,
+            "lib/reggie.jar lib/RiverConfigurationResource.jar",
+            "com.sun.jini.reggie.TransientRegistrarImpl",
+            new String[] { "reggieNonsecure.config",
+                "start.discoveryGroup=\"" + start.discoveryGroup + "\""}),
+
+       new NonActivatableServiceDescriptor(
+            "http://" + host + ":" + port + "/fiddler-dl.jar" + jskdl,
+            policy,
+            "lib/fiddler.jar",
+            "com.sun.jini.fiddler.TransientFiddlerImpl",
+            new String[] { "fiddlerNonsecure.config" })
+
+    };
+
+    unusedServiceDescriptors = new ServiceDescriptor[]{
+        new NonActivatableServiceDescriptor(
+            "http://" + host + ":" + port + "/browser-dl.jar" + jskdl,
+            policy,
+            "lib/browser.jar",
+            "com.sun.jini.example.browser.Browser",
+            new String[] { "browserNonsecure.config" }),
+
+       new NonActivatableServiceDescriptor(
+            "http://" + host + ":" + port + "/fiddler-dl.jar" + jskdl,
+            policy,
+            "lib/fiddler.jar",
+            "com.sun.jini.fiddler.TransientFiddlerImpl",
+            new String[] { "fiddlerNonsecure.config" }),
+
+        new NonActivatableServiceDescriptor(
+            "http://" + host + ":" + port + "/mahalo-dl.jar" + jskdl,
+            policy,
+            "mahalo.jar",
+            "com.sun.jini.mahalo.TransientMahaloImpl",
+            new String[] { "mahaloNonsecure.config" }),
+
+        new NonActivatableServiceDescriptor(
+            "http://" + host + ":" + port + "/mercury-dl.jar" + jskdl,
+            policy,
+            "lib/mercury.jar",
+            "com.sun.jini.mercury.TransientMercuryImpl",
+            new String[] { "mercuryNonsecure.config" }),
+
+        new NonActivatableServiceDescriptor(
+            "http://" + host + ":" + port + "/norm-dl.jar" + jskdl,
+            policy,
+            "lib/norm.jar",
+            "com.sun.jini.norm.TransientNormServerImpl",
+            new String[] { "normNonsecure.config" }),
+
+        new NonActivatableServiceDescriptor(
+            "http://" + host + ":" + port + "/outrigger-dl.jar" + jskdl,
+            policy,
+            "lib/outrigger.jar",
+            "com.sun.jini.outrigger.TransientOutriggerImpl",
+            new String[] { "outriggerNonSecure.config" })
+    };
+}

Added: incubator/river/extra/JiniInfrastructure/trunk/test/org/apache/river/extra/start/infrastructure/ConfigFileResourceTest.java
URL: http://svn.apache.org/viewvc/incubator/river/extra/JiniInfrastructure/trunk/test/org/apache/river/extra/start/infrastructure/ConfigFileResourceTest.java?rev=1057396&view=auto
==============================================================================
--- incubator/river/extra/JiniInfrastructure/trunk/test/org/apache/river/extra/start/infrastructure/ConfigFileResourceTest.java
(added)
+++ incubator/river/extra/JiniInfrastructure/trunk/test/org/apache/river/extra/start/infrastructure/ConfigFileResourceTest.java
Mon Jan 10 22:14:41 2011
@@ -0,0 +1,48 @@
+/*
+ * To change this template, choose Tools | Templates
+ * and open the template in the editor.
+ */
+
+package org.apache.river.extra.start.infrastructure;
+
+import java.net.URL;
+import java.util.logging.Logger;
+import org.junit.After;
+import org.junit.AfterClass;
+import org.junit.Before;
+import org.junit.BeforeClass;
+import org.junit.Test;
+
+/**
+ *
+ * @author trasukg
+ */
+public class ConfigFileResourceTest {
+    private static final Logger log=
+            Logger.getLogger(ConfigFileResourceTest.class.getName());
+
+    public ConfigFileResourceTest() {
+    }
+
+    @BeforeClass
+    public static void setUpClass() throws Exception {
+    }
+
+    @AfterClass
+    public static void tearDownClass() throws Exception {
+    }
+
+    @Before
+    public void setUp() {
+    }
+
+    @After
+    public void tearDown() {
+    }
+
+    @Test
+    public void testFindResource() {
+        URL res=this.getClass().getClassLoader().getResource(Strings.START_ALL_NONSECURE);
+        log.warning("URL is " + res);
+    }
+}
\ No newline at end of file



Mime
View raw message