[jboss-cvs] JBossRemoting/src/main/org/jboss/remoting/transport/local ...

Tom Elrod tom.elrod at jboss.com
Fri Jan 5 11:01:10 EST 2007


  User: telrod  
  Date: 07/01/05 11:01:10

  Added:       src/main/org/jboss/remoting/transport/local    Tag:
                        remoting_2_x LocalServerInvoker.java
                        TransportClientFactory.java
                        TransportServerFactory.java
  Log:
  JBREM-660 - created "local" transport for Burke
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.1   +56 -0     JBossRemoting/src/main/org/jboss/remoting/transport/local/Attic/LocalServerInvoker.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: LocalServerInvoker.java
  ===================================================================
  RCS file: LocalServerInvoker.java
  diff -N LocalServerInvoker.java
  --- /dev/null	1 Jan 1970 00:00:00 -0000
  +++ LocalServerInvoker.java	5 Jan 2007 16:01:10 -0000	1.1.2.1
  @@ -0,0 +1,56 @@
  +/*
  +* JBoss, a division of Red Hat
  +* Copyright 2006, Red Hat Middleware, LLC, and individual contributors as indicated
  +* 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.remoting.transport.local;
  +
  +import org.jboss.remoting.ServerInvoker;
  +import org.jboss.remoting.InvokerLocator;
  +import org.jboss.remoting.marshal.serializable.SerializableMarshaller;
  +
  +import java.util.Map;
  +import java.io.IOException;
  +
  +/**
  + * @author <a href="mailto:tom at jboss.org">Tom Elrod</a>
  + */
  +public class LocalServerInvoker extends ServerInvoker
  +{
  +   public LocalServerInvoker(InvokerLocator locator, Map config)
  +   {
  +      super(locator, config);
  +   }
  +
  +   protected String getDefaultDataType()
  +   {
  +      return SerializableMarshaller.DATATYPE;
  +   }
  +
  +   public boolean isTransportBiDirectional()
  +   {
  +      return false;
  +   }
  +
  +   protected int assignPort() throws IOException
  +   {
  +      // no port needed, so can just return any hard-code value
  +      return 5;
  +   }
  +}
  \ No newline at end of file
  
  
  
  1.1.2.1   +46 -0     JBossRemoting/src/main/org/jboss/remoting/transport/local/Attic/TransportClientFactory.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: TransportClientFactory.java
  ===================================================================
  RCS file: TransportClientFactory.java
  diff -N TransportClientFactory.java
  --- /dev/null	1 Jan 1970 00:00:00 -0000
  +++ TransportClientFactory.java	5 Jan 2007 16:01:10 -0000	1.1.2.1
  @@ -0,0 +1,46 @@
  +/*
  +* JBoss, a division of Red Hat
  +* Copyright 2006, Red Hat Middleware, LLC, and individual contributors as indicated
  +* 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.remoting.transport.local;
  +
  +import org.jboss.remoting.InvokerLocator;
  +import org.jboss.remoting.transport.ClientFactory;
  +import org.jboss.remoting.transport.ClientInvoker;
  +
  +import java.io.IOException;
  +import java.util.Map;
  +
  +/**
  + * @author <a href="mailto:tom at jboss.org">Tom Elrod</a>
  + */
  +public class TransportClientFactory implements ClientFactory
  +{
  +   public ClientInvoker createClientInvoker(InvokerLocator locator, Map config)
  +         throws IOException
  +   {
  +      return new LocalClientInvoker(locator, config);
  +   }
  +
  +   public boolean supportsSSL()
  +   {
  +      return false;
  +   }
  +}
  \ No newline at end of file
  
  
  
  1.1.2.1   +44 -0     JBossRemoting/src/main/org/jboss/remoting/transport/local/Attic/TransportServerFactory.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: TransportServerFactory.java
  ===================================================================
  RCS file: TransportServerFactory.java
  diff -N TransportServerFactory.java
  --- /dev/null	1 Jan 1970 00:00:00 -0000
  +++ TransportServerFactory.java	5 Jan 2007 16:01:10 -0000	1.1.2.1
  @@ -0,0 +1,44 @@
  +/*
  +* JBoss, a division of Red Hat
  +* Copyright 2006, Red Hat Middleware, LLC, and individual contributors as indicated
  +* 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.remoting.transport.local;
  +
  +import org.jboss.remoting.InvokerLocator;
  +import org.jboss.remoting.ServerInvoker;
  +import org.jboss.remoting.transport.ServerFactory;
  +
  +import java.util.Map;
  +
  +/**
  + * @author <a href="mailto:tom at jboss.org">Tom Elrod</a>
  + */
  +public class TransportServerFactory implements ServerFactory
  +{
  +   public ServerInvoker createServerInvoker(InvokerLocator locator, Map config)
  +   {
  +      return new LocalServerInvoker(locator, config);
  +   }
  +
  +   public boolean supportsSSL()
  +   {
  +      return false;
  +   }
  +}
  
  
  



More information about the jboss-cvs-commits mailing list