[jboss-cvs] JBoss Messaging SVN: r5863 - in trunk/dotnet/JBMClient: integration and 3 other directories.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Fri Feb 13 19:11:52 EST 2009
Author: clebert.suconic at jboss.com
Date: 2009-02-13 19:11:52 -0500 (Fri, 13 Feb 2009)
New Revision: 5863
Added:
trunk/dotnet/JBMClient/integration/
trunk/dotnet/JBMClient/integration/transports/
trunk/dotnet/JBMClient/integration/transports/dotnet/
trunk/dotnet/JBMClient/integration/transports/dotnet/DotNetConnector.cs
trunk/dotnet/JBMClient/integration/transports/dotnet/DotNetConnectorFactory.cs
trunk/dotnet/JBMClient/remoting/spi/Connection.cs
trunk/dotnet/JBMClient/remoting/spi/ConnectionLifeCycleListener.cs
trunk/dotnet/JBMClient/remoting/spi/Connector.cs
trunk/dotnet/JBMClient/remoting/spi/ConnectorFactory.cs
Removed:
trunk/dotnet/JBMClient/remoting/spi/Acceptor.java
trunk/dotnet/JBMClient/remoting/spi/AcceptorFactory.java
trunk/dotnet/JBMClient/remoting/spi/Connection.java
trunk/dotnet/JBMClient/remoting/spi/ConnectionLifeCycleListener.java
trunk/dotnet/JBMClient/remoting/spi/Connector.java
trunk/dotnet/JBMClient/remoting/spi/ConnectorFactory.java
Modified:
trunk/dotnet/JBMClient/JBM.Client.csproj
Log:
Just saving where I had left this
Modified: trunk/dotnet/JBMClient/JBM.Client.csproj
===================================================================
--- trunk/dotnet/JBMClient/JBM.Client.csproj 2009-02-13 17:13:15 UTC (rev 5862)
+++ trunk/dotnet/JBMClient/JBM.Client.csproj 2009-02-14 00:11:52 UTC (rev 5863)
@@ -8,7 +8,7 @@
<ProjectGuid>{675AD929-BF42-4930-AC39-603D5EC52D58}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
- <RootNamespace>JBM.Client</RootNamespace>
+ <RootNamespace>JBoss.JBM.Client</RootNamespace>
<AssemblyName>JBM.Client</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
@@ -69,14 +69,14 @@
<Compile Include="remoting\Packet.cs" />
</ItemGroup>
<ItemGroup>
+ <Compile Include="integration\transports\dotnet\DotNetConnector.cs" />
+ <Compile Include="integration\transports\dotnet\DotNetConnectorFactory.cs" />
<Compile Include="remoting\RemotingConnection.cs" />
- <Content Include="remoting\spi\Acceptor.java" />
- <Content Include="remoting\spi\AcceptorFactory.java" />
<Compile Include="remoting\spi\BufferHandler.cs" />
- <Content Include="remoting\spi\Connection.java" />
- <Content Include="remoting\spi\ConnectionLifeCycleListener.java" />
- <Content Include="remoting\spi\Connector.java" />
- <Content Include="remoting\spi\ConnectorFactory.java" />
+ <Compile Include="remoting\spi\Connection.cs" />
+ <Compile Include="remoting\spi\ConnectionLifeCycleListener.cs" />
+ <Compile Include="remoting\spi\Connector.cs" />
+ <Compile Include="remoting\spi\ConnectorFactory.cs" />
<Compile Include="remoting\spi\MessagingBuffer.cs" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
Added: trunk/dotnet/JBMClient/integration/transports/dotnet/DotNetConnector.cs
===================================================================
--- trunk/dotnet/JBMClient/integration/transports/dotnet/DotNetConnector.cs (rev 0)
+++ trunk/dotnet/JBMClient/integration/transports/dotnet/DotNetConnector.cs 2009-02-14 00:11:52 UTC (rev 5863)
@@ -0,0 +1,71 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+
+namespace JBoss.JBM.Client.integration.transports.dotnet
+{
+ using System.Collections.Generic;
+ using JBoss.JBM.Client.remoting;
+ using JBoss.JBM.Client.remoting.spi;
+
+ public class DotNetConnector : Connector
+ {
+ #region Properties
+
+ public Dictionary<string, object> Configuration
+ {
+ get;
+ private set;
+ }
+
+ public BufferHandler Handler
+ {
+ get;
+ private set;
+ }
+
+ public ConnectionLifeCycleListener Listener
+ {
+ get;
+ private set;
+ }
+
+ #endregion
+
+ #region Constructors
+
+ public DotNetConnector(Dictionary<string, object> _configuration, BufferHandler _handler, ConnectionLifeCycleListener _listener)
+ {
+ this.Configuration = _configuration;
+ this.Handler = _handler;
+ this.Listener = _listener;
+ }
+
+ #endregion
+
+ #region Connector Members
+
+ public void Start()
+ {
+ throw new NotImplementedException();
+ }
+
+ public void Close()
+ {
+ throw new NotImplementedException();
+ }
+
+ public bool IsStarted()
+ {
+ throw new NotImplementedException();
+ }
+
+ public Connection CreateConnection()
+ {
+ throw new NotImplementedException();
+ }
+
+ #endregion
+ }
+}
Added: trunk/dotnet/JBMClient/integration/transports/dotnet/DotNetConnectorFactory.cs
===================================================================
--- trunk/dotnet/JBMClient/integration/transports/dotnet/DotNetConnectorFactory.cs (rev 0)
+++ trunk/dotnet/JBMClient/integration/transports/dotnet/DotNetConnectorFactory.cs 2009-02-14 00:11:52 UTC (rev 5863)
@@ -0,0 +1,22 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+
+namespace JBoss.JBM.Client.integration.transports.dotnet
+{
+ using JBoss.JBM.Client.remoting.spi;
+
+ public class DotNetConnectorFactory : ConnectorFactory
+ {
+
+ #region ConnectorFactory Members
+
+ public Connector createConnector(Dictionary<string, object> configuration, BufferHandler handler, ConnectionLifeCycleListener listener)
+ {
+ return new DotNetConnector(configuration, handler, listener);
+ }
+
+ #endregion
+ }
+}
Deleted: trunk/dotnet/JBMClient/remoting/spi/Acceptor.java
===================================================================
--- trunk/dotnet/JBMClient/remoting/spi/Acceptor.java 2009-02-13 17:13:15 UTC (rev 5862)
+++ trunk/dotnet/JBMClient/remoting/spi/Acceptor.java 2009-02-14 00:11:52 UTC (rev 5863)
@@ -1,37 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005-2008, Red Hat Middleware LLC, and individual contributors
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-
-package org.jboss.messaging.core.remoting.spi;
-
-import org.jboss.messaging.core.server.MessagingComponent;
-
-/**
- * An Acceptor is used tby the Remoting Service to allow clients to connect. It should take care of dispatchin client requests
- * to the Remoting Service's Dispatcher.
- *
- * @author <a href="ataylor at redhat.com">Andy Taylor</a>
- * @author <a href="tim.fox at jboss.com">Tim Fox</a>
- */
-public interface Acceptor extends MessagingComponent
-{
- void stop();
-}
Deleted: trunk/dotnet/JBMClient/remoting/spi/AcceptorFactory.java
===================================================================
--- trunk/dotnet/JBMClient/remoting/spi/AcceptorFactory.java 2009-02-13 17:13:15 UTC (rev 5862)
+++ trunk/dotnet/JBMClient/remoting/spi/AcceptorFactory.java 2009-02-14 00:11:52 UTC (rev 5863)
@@ -1,36 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005-2008, Red Hat Middleware LLC, and individual contributors
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-
-package org.jboss.messaging.core.remoting.spi;
-
-import java.util.Map;
-
-/**
- * @author <a href="ataylor at redhat.com">Andy Taylor</a>
- * @author <a href="tim.fox at jboss.com">Tim Fox</a>
- */
-public interface AcceptorFactory
-{
- Acceptor createAcceptor(final Map<String, Object> configuration,
- BufferHandler handler,
- ConnectionLifeCycleListener listener);
-}
Copied: trunk/dotnet/JBMClient/remoting/spi/Connection.cs (from rev 5827, trunk/dotnet/JBMClient/remoting/spi/Connection.java)
===================================================================
--- trunk/dotnet/JBMClient/remoting/spi/Connection.cs (rev 0)
+++ trunk/dotnet/JBMClient/remoting/spi/Connection.cs 2009-02-14 00:11:52 UTC (rev 5863)
@@ -0,0 +1,46 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005-2008, Red Hat Middleware LLC, and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+namespace JBoss.JBM.Client.remoting.spi
+{
+
+
+ /**
+ *
+ * @author <a href="mailto:tim.fox at jboss.com">Tim Fox</a>
+ *
+ * @version <tt>$Revision$</tt>
+ *
+ */
+ public interface Connection
+ {
+ MessagingBuffer CreateBuffer(int size);
+
+ object GetID();
+
+ void Write(MessagingBuffer buffer);
+
+ void Close();
+
+ string GetRemoteAddress();
+ }
+}
\ No newline at end of file
Property changes on: trunk/dotnet/JBMClient/remoting/spi/Connection.cs
___________________________________________________________________
Name: svn:mergeinfo
+
Deleted: trunk/dotnet/JBMClient/remoting/spi/Connection.java
===================================================================
--- trunk/dotnet/JBMClient/remoting/spi/Connection.java 2009-02-13 17:13:15 UTC (rev 5862)
+++ trunk/dotnet/JBMClient/remoting/spi/Connection.java 2009-02-14 00:11:52 UTC (rev 5863)
@@ -1,45 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005-2008, Red Hat Middleware LLC, and individual contributors
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-
-package org.jboss.messaging.core.remoting.spi;
-
-
-
-/**
- *
- * @author <a href="mailto:tim.fox at jboss.com">Tim Fox</a>
- *
- * @version <tt>$Revision$</tt>
- *
- */
-public interface Connection
-{
- MessagingBuffer createBuffer(int size);
-
- Object getID();
-
- void write(MessagingBuffer buffer);
-
- void close();
-
- String getRemoteAddress();
-}
\ No newline at end of file
Copied: trunk/dotnet/JBMClient/remoting/spi/ConnectionLifeCycleListener.cs (from rev 5827, trunk/dotnet/JBMClient/remoting/spi/ConnectionLifeCycleListener.java)
===================================================================
--- trunk/dotnet/JBMClient/remoting/spi/ConnectionLifeCycleListener.cs (rev 0)
+++ trunk/dotnet/JBMClient/remoting/spi/ConnectionLifeCycleListener.cs 2009-02-14 00:11:52 UTC (rev 5863)
@@ -0,0 +1,41 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005-2008, Red Hat Middleware LLC, and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+namespace JBoss.JBM.Client.remoting.spi
+{
+ using JBoss.JBM.Client.exception;
+
+ /**
+ *
+ * A ConnectionLifeCycleListener
+ *
+ * @author <a href="mailto:tim.fox at jboss.com">Tim Fox</a>
+ *
+ */
+ public interface ConnectionLifeCycleListener
+ {
+ void ConnectionCreated(Connection connection);
+
+ void ConnectionDestroyed(object connectionID);
+
+ void ConnectionException(object connectionID, MessagingException me);
+ }
+}
\ No newline at end of file
Property changes on: trunk/dotnet/JBMClient/remoting/spi/ConnectionLifeCycleListener.cs
___________________________________________________________________
Name: svn:mergeinfo
+
Deleted: trunk/dotnet/JBMClient/remoting/spi/ConnectionLifeCycleListener.java
===================================================================
--- trunk/dotnet/JBMClient/remoting/spi/ConnectionLifeCycleListener.java 2009-02-13 17:13:15 UTC (rev 5862)
+++ trunk/dotnet/JBMClient/remoting/spi/ConnectionLifeCycleListener.java 2009-02-14 00:11:52 UTC (rev 5863)
@@ -1,40 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005-2008, Red Hat Middleware LLC, and individual contributors
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.messaging.core.remoting.spi;
-
-import org.jboss.messaging.core.exception.MessagingException;
-
-/**
- *
- * A ConnectionLifeCycleListener
- *
- * @author <a href="mailto:tim.fox at jboss.com">Tim Fox</a>
- *
- */
-public interface ConnectionLifeCycleListener
-{
- void connectionCreated(Connection connection);
-
- void connectionDestroyed(Object connectionID);
-
- void connectionException(Object connectionID, MessagingException me);
-}
Copied: trunk/dotnet/JBMClient/remoting/spi/Connector.cs (from rev 5827, trunk/dotnet/JBMClient/remoting/spi/Connector.java)
===================================================================
--- trunk/dotnet/JBMClient/remoting/spi/Connector.cs (rev 0)
+++ trunk/dotnet/JBMClient/remoting/spi/Connector.cs 2009-02-14 00:11:52 UTC (rev 5863)
@@ -0,0 +1,50 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005-2008, Red Hat Middleware LLC, and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+namespace JBoss.JBM.Client.remoting.spi
+{
+
+ /**
+ *
+ * A Connector
+ *
+ * @author <a href="mailto:tim.fox at jboss.com">Tim Fox</a>
+ *
+ */
+ public interface Connector
+ {
+ void Start();
+
+ void Close();
+
+ bool IsStarted();
+
+ /**
+ * Create and return a connection from this connector.
+ *
+ * This method must NOT throw an exception if it fails to create the connection
+ * (e.g. network is not available), in this case it MUST return null
+ *
+ * @return The connection, or null if unable to create a connection (e.g. network is unavailable)
+ */
+ Connection CreateConnection();
+ }
+}
\ No newline at end of file
Property changes on: trunk/dotnet/JBMClient/remoting/spi/Connector.cs
___________________________________________________________________
Name: svn:mergeinfo
+
Deleted: trunk/dotnet/JBMClient/remoting/spi/Connector.java
===================================================================
--- trunk/dotnet/JBMClient/remoting/spi/Connector.java 2009-02-13 17:13:15 UTC (rev 5862)
+++ trunk/dotnet/JBMClient/remoting/spi/Connector.java 2009-02-14 00:11:52 UTC (rev 5863)
@@ -1,48 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005-2008, Red Hat Middleware LLC, and individual contributors
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.messaging.core.remoting.spi;
-
-/**
- *
- * A Connector
- *
- * @author <a href="mailto:tim.fox at jboss.com">Tim Fox</a>
- *
- */
-public interface Connector
-{
- void start();
-
- void close();
-
- boolean isStarted();
-
- /**
- * Create and return a connection from this connector.
- *
- * This method must NOT throw an exception if it fails to create the connection
- * (e.g. network is not available), in this case it MUST return null
- *
- * @return The connection, or null if unable to create a connection (e.g. network is unavailable)
- */
- Connection createConnection();
-}
Copied: trunk/dotnet/JBMClient/remoting/spi/ConnectorFactory.cs (from rev 5827, trunk/dotnet/JBMClient/remoting/spi/ConnectorFactory.java)
===================================================================
--- trunk/dotnet/JBMClient/remoting/spi/ConnectorFactory.cs (rev 0)
+++ trunk/dotnet/JBMClient/remoting/spi/ConnectorFactory.cs 2009-02-14 00:11:52 UTC (rev 5863)
@@ -0,0 +1,19 @@
+namespace JBoss.JBM.Client.remoting.spi
+{
+
+ using System.Collections.Generic;
+
+
+ /**
+ *
+ * A ConnectorFactory
+ *
+ * @author <a href="mailto:tim.fox at jboss.com">Tim Fox</a>
+ *
+ */
+ public interface ConnectorFactory
+ {
+ Connector createConnector(Dictionary<string, object> configuration, BufferHandler handler,
+ ConnectionLifeCycleListener listener);
+ }
+}
\ No newline at end of file
Property changes on: trunk/dotnet/JBMClient/remoting/spi/ConnectorFactory.cs
___________________________________________________________________
Name: svn:mergeinfo
+
Deleted: trunk/dotnet/JBMClient/remoting/spi/ConnectorFactory.java
===================================================================
--- trunk/dotnet/JBMClient/remoting/spi/ConnectorFactory.java 2009-02-13 17:13:15 UTC (rev 5862)
+++ trunk/dotnet/JBMClient/remoting/spi/ConnectorFactory.java 2009-02-14 00:11:52 UTC (rev 5863)
@@ -1,16 +0,0 @@
-package org.jboss.messaging.core.remoting.spi;
-
-import java.util.Map;
-
-/**
- *
- * A ConnectorFactory
- *
- * @author <a href="mailto:tim.fox at jboss.com">Tim Fox</a>
- *
- */
-public interface ConnectorFactory
-{
- Connector createConnector(Map<String, Object> configuration, BufferHandler handler,
- ConnectionLifeCycleListener listener);
-}
More information about the jboss-cvs-commits
mailing list