[jboss-cvs] JBoss Messaging SVN: r2716 - trunk/src/main/org/jboss/jms/client/plugin.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Sat May 19 11:32:09 EDT 2007
Author: timfox
Date: 2007-05-19 11:32:09 -0400 (Sat, 19 May 2007)
New Revision: 2716
Added:
trunk/src/main/org/jboss/jms/client/plugin/NoLoadBalancingLoadBalancingFactory.java
trunk/src/main/org/jboss/jms/client/plugin/NoLoadBalancingLoadBalancingPolicy.java
Log:
Added missing files
Added: trunk/src/main/org/jboss/jms/client/plugin/NoLoadBalancingLoadBalancingFactory.java
===================================================================
--- trunk/src/main/org/jboss/jms/client/plugin/NoLoadBalancingLoadBalancingFactory.java (rev 0)
+++ trunk/src/main/org/jboss/jms/client/plugin/NoLoadBalancingLoadBalancingFactory.java 2007-05-19 15:32:09 UTC (rev 2716)
@@ -0,0 +1,50 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., 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.jms.client.plugin;
+
+import org.jboss.jms.delegate.ConnectionFactoryDelegate;
+
+/**
+ *
+ * @author <a href="mailto:tim.fox at jboss.com">Tim Fox</a>
+ * @version <tt>$Revision: 1989 $</tt>
+ *
+ * $Id: RoundRobinLoadBalancingPolicy.java 1989 2007-01-19 03:24:03Z ovidiu.feodorov at jboss.com $
+ */
+public class NoLoadBalancingLoadBalancingFactory extends LoadBalancingFactory
+{
+ private static final long serialVersionUID = 8546771377967144241L;
+
+ private LoadBalancingPolicy policy;
+
+ public NoLoadBalancingLoadBalancingFactory(ConnectionFactoryDelegate del)
+ {
+ policy = new NoLoadBalancingLoadBalancingPolicy(del);
+ }
+
+ public LoadBalancingPolicy createLoadBalancingPolicy(ConnectionFactoryDelegate[] view)
+ {
+ return policy;
+ }
+
+}
Added: trunk/src/main/org/jboss/jms/client/plugin/NoLoadBalancingLoadBalancingPolicy.java
===================================================================
--- trunk/src/main/org/jboss/jms/client/plugin/NoLoadBalancingLoadBalancingPolicy.java (rev 0)
+++ trunk/src/main/org/jboss/jms/client/plugin/NoLoadBalancingLoadBalancingPolicy.java 2007-05-19 15:32:09 UTC (rev 2716)
@@ -0,0 +1,56 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., 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.jms.client.plugin;
+
+import org.jboss.jms.delegate.ConnectionFactoryDelegate;
+
+/**
+ *
+ * This load balancing policy doesn't do any load balancing
+ *
+ * @author <a href="mailto:tim.fox at jboss.com">Tim Fox</a>
+ * @version <tt>$Revision: 1989 $</tt>
+ *
+ * $Id: RoundRobinLoadBalancingPolicy.java 1989 2007-01-19 03:24:03Z ovidiu.feodorov at jboss.com $
+ */
+public class NoLoadBalancingLoadBalancingPolicy implements LoadBalancingPolicy
+{
+ private static final long serialVersionUID = -4683493821249921332L;
+
+ private ConnectionFactoryDelegate del;
+
+ public NoLoadBalancingLoadBalancingPolicy(ConnectionFactoryDelegate del)
+ {
+ this.del = del;
+ }
+
+ public ConnectionFactoryDelegate getNext()
+ {
+ return del;
+ }
+
+ public void updateView(ConnectionFactoryDelegate[] delegates)
+ {
+ // Do nothing
+ }
+
+}
More information about the jboss-cvs-commits
mailing list