@Test public void testIfNoRemoteConnections() { this.customizer.customize(); assertThat( this.fraction.subresources().servers()).isEmpty(); }
@Override public void customize() { List<Server> servers = fraction.subresources().servers(); servers.stream() .filter(e -> e instanceof EnhancedServer) .forEach(server -> { ((EnhancedServer) server).remoteConnections() .forEach(connection -> { server.remoteConnector(connection.name(), connector -> { connector.socketBinding(connection.name()); }); server.pooledConnectionFactory(connection.name(), factory -> { factory.connectors(connection.name()); factory.entry(connection.jndiName()); }); }); }); }
RemoteConnectionCustomizer implements Customizer { @Override public void customize() { List<Server> servers = fraction.subresources().servers(); servers.stream() .filter(e -> e instanceof EnhancedServer) .forEach(server -> { ((EnhancedServer) server).remoteConnections() .forEach(connection -> { server.remoteConnector(connection.name(), connector -> { connector.socketBinding(connection.name()); }); server.pooledConnectionFactory(connection.name(), factory -> { factory.connectors(connection.name()); factory.entry(connection.jndiName()); }); }); }); } }
RemoteConnectionCustomizer implements Customizer { @Override public void customize() { List<Server> servers = fraction.subresources().servers(); servers.stream() .filter(e -> e instanceof EnhancedServer) .forEach(server -> { ((EnhancedServer) server).remoteConnections() .forEach(connection -> { server.remoteConnector(connection.name(), connector -> { connector.socketBinding(connection.name()); }); server.pooledConnectionFactory(connection.name(), factory -> { factory.connectors(connection.name()); factory.entry(connection.jndiName()); }); }); }); }  }
RemoteConnectionCustomizer implements Customizer { @Override public void customize() { List<Server> servers = fraction.subresources().servers(); servers.stream() .filter(e -> e instanceof EnhancedServer) .forEach(server -> { ((EnhancedServer) server).remoteConnections() .forEach(connection -> { server.remoteConnector(connection.name(), connector -> { connector.socketBinding(connection.name()); }); server.pooledConnectionFactory(connection.name(), factory -> { factory.connectors(connection.name()); factory.entry(connection.jndiName()); }); }); }); }  @Override void customize(); }
RemoteConnectionCustomizer implements Customizer { @Override public void customize() { List<Server> servers = fraction.subresources().servers(); servers.stream() .filter(e -> e instanceof EnhancedServer) .forEach(server -> { ((EnhancedServer) server).remoteConnections() .forEach(connection -> { server.remoteConnector(connection.name(), connector -> { connector.socketBinding(connection.name()); }); server.pooledConnectionFactory(connection.name(), factory -> { factory.connectors(connection.name()); factory.entry(connection.jndiName()); }); }); }); }  @Override void customize();  }