org.apache.openejb.client
Class RandomConnectionStrategy

java.lang.Object
  extended by org.apache.openejb.client.RandomConnectionStrategy
All Implemented Interfaces:
ConnectionStrategy

public class RandomConnectionStrategy
extends java.lang.Object
implements ConnectionStrategy


Constructor Summary
RandomConnectionStrategy()
           
 
Method Summary
 Connection connect(ClusterMetaData cluster, ServerMetaData server)
           
protected  Connection connect(ClusterMetaData cluster, java.net.URI uri)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RandomConnectionStrategy

public RandomConnectionStrategy()
Method Detail

connect

public Connection connect(ClusterMetaData cluster,
                          ServerMetaData server)
                   throws java.io.IOException
Specified by:
connect in interface ConnectionStrategy
Throws:
java.io.IOException

connect

protected Connection connect(ClusterMetaData cluster,
                             java.net.URI uri)
                      throws java.io.IOException
Throws:
java.io.IOException


Copyright © 1999-2011 The Apache OpenEJB development community. All Rights Reserved.