*/
public ClusterServer getActiveServer(Owner owner,
ClusterServer oldServer)
{
ClusterServer server;
ClientSocketFactory pool;
server = getPrimary(owner);
if (server != null && server.isHeartbeatActive()) {
pool = server.getClusterSocketPool();
if (pool != null && pool.isActive() && server != oldServer)
return server;
}
server = getSecondary(owner);
if (server != null && server.isHeartbeatActive()) {
pool = server.getClusterSocketPool();
if (pool != null && pool.isActive() && server != oldServer)
return server;
}
server = getTertiary(owner);
if (server != null && server.isHeartbeatActive()) {
pool = server.getClusterSocketPool();
if (pool != null && pool.isActive() && server != oldServer)
return server;
}
// force the send