Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2006-04-01 05:42:25 -0500
committerEike Stepper2006-04-01 05:42:25 -0500
commit0a20df97c9f1ead9e4111af0fb35d03ab96b8c65 (patch)
treea08f77588c5df9673592be01ec7e3f4adcc5a08c /plugins/org.eclipse.net4j.tests/META-INF
parent1cfb240f88d8c55390b4618bfee49918b560e39e (diff)
downloadcdo-0a20df97c9f1ead9e4111af0fb35d03ab96b8c65.tar.gz
cdo-0a20df97c9f1ead9e4111af0fb35d03ab96b8c65.tar.xz
cdo-0a20df97c9f1ead9e4111af0fb35d03ab96b8c65.zip
Initial source import.committers/estepper/initial001
Diffstat (limited to 'plugins/org.eclipse.net4j.tests/META-INF')
-rw-r--r--plugins/org.eclipse.net4j.tests/META-INF/MANIFEST.MF13
-rw-r--r--plugins/org.eclipse.net4j.tests/META-INF/common.properties8
-rw-r--r--plugins/org.eclipse.net4j.tests/META-INF/embedded.xml91
-rw-r--r--plugins/org.eclipse.net4j.tests/META-INF/socketClient.xml85
-rw-r--r--plugins/org.eclipse.net4j.tests/META-INF/socketServer.xml90
5 files changed, 287 insertions, 0 deletions
diff --git a/plugins/org.eclipse.net4j.tests/META-INF/MANIFEST.MF b/plugins/org.eclipse.net4j.tests/META-INF/MANIFEST.MF
new file mode 100644
index 0000000000..901cd80165
--- /dev/null
+++ b/plugins/org.eclipse.net4j.tests/META-INF/MANIFEST.MF
@@ -0,0 +1,13 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: %pluginName
+Bundle-SymbolicName: org.eclipse.net4j.test;singleton:=true
+Bundle-Version: 1.0.0
+Bundle-ClassPath: library.jar
+Bundle-Vendor: %providerName
+Bundle-Localization: plugin
+Require-Bundle: org.eclipse.core.runtime
+Eclipse-LazyStart: false
+Export-Package: org.eclipse.net4j.test,
+ org.eclipse.net4j.test.protocol,
+ org.eclipse.net4j.test.util
diff --git a/plugins/org.eclipse.net4j.tests/META-INF/common.properties b/plugins/org.eclipse.net4j.tests/META-INF/common.properties
new file mode 100644
index 0000000000..23de5e4dbf
--- /dev/null
+++ b/plugins/org.eclipse.net4j.tests/META-INF/common.properties
@@ -0,0 +1,8 @@
+bufferPool.bufferSize=4096
+
+connectionManager.maxConnections=50
+
+channel.responseTimeoutMillis=6000000
+
+socket.host=localhost
+socket.port=12345
diff --git a/plugins/org.eclipse.net4j.tests/META-INF/embedded.xml b/plugins/org.eclipse.net4j.tests/META-INF/embedded.xml
new file mode 100644
index 0000000000..a619b3926c
--- /dev/null
+++ b/plugins/org.eclipse.net4j.tests/META-INF/embedded.xml
@@ -0,0 +1,91 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN"
+ "http://www.springframework.org/dtd/spring-beans.dtd">
+<beans>
+
+ <!-- ######################################################## -->
+ <bean id="propertyConfigurer"
+ class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
+ <property name="locations">
+ <list>
+ <value>file:META-INF/common.properties</value>
+ </list>
+ </property>
+ </bean>
+
+ <!-- ######################################################## -->
+ <bean id="bufferPool" class="org.eclipse.net4j.core.impl.BufferPoolImpl">
+ <property name="bufferSize">
+ <value>${bufferPool.bufferSize}</value>
+ </property>
+ </bean>
+
+ <!-- ######################################################## -->
+ <bean id="connectionManager" class="org.eclipse.net4j.core.impl.ConnectionManagerImpl">
+ <property name="maxConnections">
+ <value>${connectionManager.maxConnections}</value>
+ </property>
+ </bean>
+
+ <!-- ######################################################## -->
+ <bean id="protocolManager" class="org.eclipse.net4j.core.impl.ProtocolManagerImpl"/>
+
+ <!-- ######################################################## -->
+ <bean id="multiplexer" class="org.eclipse.net4j.core.impl.MultiplexerImpl"/>
+
+ <!-- ######################################################## -->
+ <bean id="basicServerProtocol" class="org.eclipse.net4j.core.protocol.BasicServerProtocol">
+ <property name="protocolManager">
+ <ref local="protocolManager"/>
+ </property>
+ </bean>
+
+ <!-- ######################################################## -->
+ <bean id="basicClientProtocol" class="org.eclipse.net4j.core.protocol.BasicClientProtocol">
+ <property name="protocolManager">
+ <ref local="protocolManager"/>
+ </property>
+ </bean>
+
+ <!-- ######################################################## -->
+ <bean id="channel" singleton="false" class="org.eclipse.net4j.core.impl.ChannelImpl">
+ <property name="multiplexer">
+ <ref local="multiplexer"/>
+ </property>
+ <property name="responseTimeoutMillis">
+ <value>${channel.responseTimeoutMillis}</value>
+ </property>
+ </bean>
+
+ <!-- ######################################################## -->
+ <bean id="protocol" class="org.eclipse.net4j.test.protocol.Net4jTestProtocol">
+ <property name="protocolManager">
+ <ref local="protocolManager"/>
+ </property>
+ </bean>
+
+ <!-- ######################################################## -->
+ <bean id="connector" class="org.eclipse.net4j.embedded.impl.ActiveEmbeddedConnectorImpl">
+ <property name="bufferPool">
+ <ref local="bufferPool"/>
+ </property>
+ <property name="protocolManager">
+ <ref local="protocolManager"/>
+ </property>
+ </bean>
+
+ <!-- ######################################################## -->
+ <bean id="slave" singleton="false"
+ class="org.eclipse.net4j.embedded.impl.PassiveEmbeddedConnectorImpl">
+ <property name="bufferPool">
+ <ref local="bufferPool"/>
+ </property>
+ <property name="connectionManager">
+ <ref local="connectionManager"/>
+ </property>
+ <property name="protocolManager">
+ <ref local="protocolManager"/>
+ </property>
+ </bean>
+
+</beans>
diff --git a/plugins/org.eclipse.net4j.tests/META-INF/socketClient.xml b/plugins/org.eclipse.net4j.tests/META-INF/socketClient.xml
new file mode 100644
index 0000000000..ba94843956
--- /dev/null
+++ b/plugins/org.eclipse.net4j.tests/META-INF/socketClient.xml
@@ -0,0 +1,85 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN"
+ "http://www.springframework.org/dtd/spring-beans.dtd">
+<beans>
+
+ <!-- ######################################################## -->
+ <bean id="propertyConfigurer"
+ class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
+ <property name="locations">
+ <list>
+ <value>file:META-INF/common.properties</value>
+ </list>
+ </property>
+ </bean>
+
+ <!-- ######################################################## -->
+ <bean id="bufferPool" class="org.eclipse.net4j.core.impl.BufferPoolImpl">
+ <property name="bufferSize">
+ <value>${bufferPool.bufferSize}</value>
+ </property>
+ </bean>
+
+ <!-- ######################################################## -->
+ <bean id="connectionManager" class="org.eclipse.net4j.core.impl.ConnectionManagerImpl">
+ <property name="maxConnections">
+ <value>${connectionManager.maxConnections}</value>
+ </property>
+ </bean>
+
+ <!-- ######################################################## -->
+ <bean id="protocolManager" class="org.eclipse.net4j.core.impl.ProtocolManagerImpl"/>
+
+ <!-- ######################################################## -->
+ <bean id="multiplexer" class="org.eclipse.net4j.core.impl.MultiplexerImpl"/>
+
+ <!-- ######################################################## -->
+ <bean id="basicClientProtocol" class="org.eclipse.net4j.core.protocol.BasicClientProtocol">
+ <property name="protocolManager">
+ <ref local="protocolManager"/>
+ </property>
+ </bean>
+
+ <!-- ######################################################## -->
+ <bean id="channel" singleton="false" class="org.eclipse.net4j.core.impl.ChannelImpl">
+ <property name="multiplexer">
+ <ref local="multiplexer"/>
+ </property>
+ <property name="responseTimeoutMillis">
+ <value>${channel.responseTimeoutMillis}</value>
+ </property>
+ </bean>
+
+ <!-- ######################################################## -->
+ <bean id="selectorManager" class="org.eclipse.net4j.socket.impl.SelectorManagerImpl"/>
+
+ <!-- ######################################################## -->
+ <bean id="protocol" class="org.eclipse.net4j.test.protocol.Net4jTestProtocol">
+ <property name="protocolManager">
+ <ref local="protocolManager"/>
+ </property>
+ </bean>
+
+ <!-- ######################################################## -->
+ <bean id="connector" class="org.eclipse.net4j.socket.impl.ActiveSocketConnectorImpl">
+ <property name="bufferPool">
+ <ref local="bufferPool"/>
+ </property>
+ <property name="protocolManager">
+ <ref local="protocolManager"/>
+ </property>
+ <property name="selectorManager">
+ <ref local="selectorManager"/>
+ </property>
+ <property name="host">
+ <value>${socket.host}</value>
+ </property>
+ <property name="port">
+ <value>${socket.port}</value>
+ </property>
+ <property name="autoStart">
+ <value>false</value>
+ </property>
+ </bean>
+
+</beans>
diff --git a/plugins/org.eclipse.net4j.tests/META-INF/socketServer.xml b/plugins/org.eclipse.net4j.tests/META-INF/socketServer.xml
new file mode 100644
index 0000000000..c570efe600
--- /dev/null
+++ b/plugins/org.eclipse.net4j.tests/META-INF/socketServer.xml
@@ -0,0 +1,90 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN"
+ "http://www.springframework.org/dtd/spring-beans.dtd">
+<beans>
+
+ <!-- ######################################################## -->
+ <bean id="propertyConfigurer"
+ class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
+ <property name="locations">
+ <list>
+ <value>file:META-INF/common.properties</value>
+ </list>
+ </property>
+ </bean>
+
+ <!-- ######################################################## -->
+ <bean id="bufferPool" class="org.eclipse.net4j.core.impl.BufferPoolImpl">
+ <property name="bufferSize">
+ <value>${bufferPool.bufferSize}</value>
+ </property>
+ </bean>
+
+ <!-- ######################################################## -->
+ <bean id="connectionManager" class="org.eclipse.net4j.core.impl.ConnectionManagerImpl">
+ <property name="maxConnections">
+ <value>${connectionManager.maxConnections}</value>
+ </property>
+ </bean>
+
+ <!-- ######################################################## -->
+ <bean id="protocolManager" class="org.eclipse.net4j.core.impl.ProtocolManagerImpl"/>
+
+ <!-- ######################################################## -->
+ <bean id="multiplexer" class="org.eclipse.net4j.core.impl.MultiplexerImpl"/>
+
+ <!-- ######################################################## -->
+ <bean id="basicServerProtocol" class="org.eclipse.net4j.core.protocol.BasicServerProtocol">
+ <property name="protocolManager">
+ <ref local="protocolManager"/>
+ </property>
+ </bean>
+
+ <!-- ######################################################## -->
+ <bean id="channel" singleton="false" class="org.eclipse.net4j.core.impl.ChannelImpl">
+ <property name="multiplexer">
+ <ref local="multiplexer"/>
+ </property>
+ <property name="responseTimeoutMillis">
+ <value>${channel.responseTimeoutMillis}</value>
+ </property>
+ </bean>
+
+ <!-- ######################################################## -->
+ <bean id="selectorManager" class="org.eclipse.net4j.socket.impl.SelectorManagerImpl"/>
+
+ <!-- ######################################################## -->
+ <bean id="protocol" class="org.eclipse.net4j.test.protocol.Net4jTestProtocol">
+ <property name="protocolManager">
+ <ref local="protocolManager"/>
+ </property>
+ </bean>
+
+ <!-- ######################################################## -->
+ <bean id="acceptor" class="org.eclipse.net4j.socket.impl.SocketAcceptorImpl">
+ <property name="listenAddr">
+ <value>0.0.0.0</value>
+ </property>
+ <property name="listenPort">
+ <value>${socket.port}</value>
+ </property>
+ </bean>
+
+ <!-- ######################################################## -->
+ <bean id="slave" singleton="false"
+ class="org.eclipse.net4j.socket.impl.PassiveSocketConnectorImpl">
+ <property name="bufferPool">
+ <ref local="bufferPool"/>
+ </property>
+ <property name="connectionManager">
+ <ref local="connectionManager"/>
+ </property>
+ <property name="protocolManager">
+ <ref local="protocolManager"/>
+ </property>
+ <property name="selectorManager">
+ <ref local="selectorManager"/>
+ </property>
+ </bean>
+
+</beans>

Back to the top