Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.core.storage.sql.jdbc
Class JDBCConnectionPropagator

java.lang.Object
  extended by org.nuxeo.ecm.core.storage.sql.jdbc.JDBCConnectionPropagator

public class JDBCConnectionPropagator
extends Object

Knows all the JDBCConnections in use by a backend, so that they can notify each other when there's a connection failure.


Field Summary
 List<JDBCConnection> connections
           
 
Constructor Summary
JDBCConnectionPropagator()
           
 
Method Summary
 void addConnection(JDBCConnection connection)
           
 void checkConnectionValid(JDBCConnection exclude)
          Notifies all connection that they must check their validity.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

connections

public final List<JDBCConnection> connections
Constructor Detail

JDBCConnectionPropagator

public JDBCConnectionPropagator()
Method Detail

addConnection

public void addConnection(JDBCConnection connection)

checkConnectionValid

public void checkConnectionValid(JDBCConnection exclude)
Notifies all connection that they must check their validity.

Parameters:
exclude - a connection to exclude, the one from which the request originates

Nuxeo Enterprise Platform 5.4

Copyright © 2011 Nuxeo SAS. All Rights Reserved.