org.apache.openejb.resource.jdbc.router
Class FailOverRouter

java.lang.Object
  extended by org.apache.openejb.resource.jdbc.router.AbstractRouter
      extended by org.apache.openejb.resource.jdbc.router.FailOverRouter
All Implemented Interfaces:
Router

public class FailOverRouter
extends AbstractRouter


Field Summary
static String DEFAULT_STRATEGY
           
 
Constructor Summary
FailOverRouter()
           
 
Method Summary
 DataSource getDataSource()
          Used by $RoutedDataSource to get the active data source.
 Collection<DataSource> getDataSources()
           
 void setDatasourceNames(String datasourceNames)
           
 void setDelimiter(String delimiter)
           
 void setStrategy(String strategy)
           
 void updateDataSources(Collection<DataSource> ds)
           
 
Methods inherited from class org.apache.openejb.resource.jdbc.router.AbstractRouter
getJndiResource, getOpenEJBResource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_STRATEGY

public static final String DEFAULT_STRATEGY
See Also:
Constant Field Values
Constructor Detail

FailOverRouter

public FailOverRouter()
Method Detail

getDataSource

public DataSource getDataSource()
Description copied from interface: Router
Used by $RoutedDataSource to get the active data source.

Returns:
the data source to delegate to

setDatasourceNames

public void setDatasourceNames(String datasourceNames)

setDelimiter

public void setDelimiter(String delimiter)

setStrategy

public void setStrategy(String strategy)

getDataSources

public Collection<DataSource> getDataSources()

updateDataSources

public void updateDataSources(Collection<DataSource> ds)


Copyright © 1999–2015 The Apache Software Foundation. All rights reserved.