/** * Find all connections of the give type from master server <q>from</q> to * master server <q>to</q> */ public static <T extends Connection> List<T> findPossibleConnections ( final EquinoxApplication from, final EquinoxApplication to, final Class<T> clazz ) { final List<T> result = new LinkedList<> (); for ( final T connection : findConnections ( from, clazz ) ) { for ( final Exporter exporter : to.getExporter () ) { final EList<Endpoint> possibleEndpoints = connection.getPossibleEndpoints ( exporter ); if ( possibleEndpoints.isEmpty () ) { continue; } if ( possibleEndpoints.contains ( connection.getEndpoint () ) ) { result.add ( connection ); } } } return result; }
/** * Find all connections of the give type from master server <q>from</q> to * master server <q>to</q> */ public static <T extends Connection> List<T> findPossibleConnections ( final EquinoxApplication from, final EquinoxApplication to, final Class<T> clazz ) { final List<T> result = new LinkedList<> (); for ( final T connection : findConnections ( from, clazz ) ) { for ( final Exporter exporter : to.getExporter () ) { final EList<Endpoint> possibleEndpoints = connection.getPossibleEndpoints ( exporter ); if ( possibleEndpoints.isEmpty () ) { continue; } if ( possibleEndpoints.contains ( connection.getEndpoint () ) ) { result.add ( connection ); } } } return result; }