Polish RoutingBrokerTests
This commit is contained in:
@@ -51,7 +51,7 @@ import org.springframework.util.StringUtils;
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@EnableConfigurationProperties({ FunctionProperties.class, RSocketFunctionProperties.class })
|
||||
@ConditionalOnProperty(name = FunctionProperties.PREFIX + ".rsocket.enabled", matchIfMissing = true)
|
||||
public class RSocketAutoConfiguration {
|
||||
class RSocketAutoConfiguration {
|
||||
|
||||
private static Log logger = LogFactory.getLog(RSocketAutoConfiguration.class);
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@ import org.springframework.messaging.support.MessageBuilder;
|
||||
* @author Oleg Zhurakousky
|
||||
* @since 3.1
|
||||
*/
|
||||
public class RSocketListenerFunction implements Function<Message<byte[]>, Publisher<Message<byte[]>>> {
|
||||
class RSocketListenerFunction implements Function<Message<byte[]>, Publisher<Message<byte[]>>> {
|
||||
|
||||
private static String splash = " ____ _ _______ __ ____ __ _ ___ ____ __ __ \n" +
|
||||
" / __/__ ____(_)__ ___ _ / ___/ /__ __ _____/ / / __/_ _____ ____/ /_(_)__ ___ / _ \\/ __/__ ____/ /_____ / /_\n" +
|
||||
@@ -86,8 +86,8 @@ public class RSocketListenerFunction implements Function<Message<byte[]>, Publis
|
||||
}
|
||||
if (this.listenAddress != null) {
|
||||
this.rsocketConnection = RSocketConnectionUtils.createServerSocket(rsocket, this.listenAddress);
|
||||
this.printSplashScreen(this.targetFunction.getFunctionDefinition(), functionType);
|
||||
}
|
||||
this.printSplashScreen(this.targetFunction.getFunctionDefinition(), functionType);
|
||||
}
|
||||
|
||||
void stop() {
|
||||
@@ -191,7 +191,6 @@ public class RSocketListenerFunction implements Function<Message<byte[]>, Publis
|
||||
private void printSplashScreen(String definition, Type type) {
|
||||
System.out.println(splash);
|
||||
System.out.println("Function Definition: " + definition + "; T[" + type + "]");
|
||||
System.out.println("RSocket Listen Address: " + this.listenAddress);
|
||||
System.out.println("======================================================\n");
|
||||
}
|
||||
|
||||
|
||||
@@ -41,7 +41,7 @@ import org.springframework.messaging.rsocket.RSocketConnectorConfigurer;
|
||||
@ConditionalOnProperty(name = FunctionProperties.PREFIX + ".rsocket.enabled", matchIfMissing = true)
|
||||
@AutoConfigureBefore(RoutingClientAutoConfiguration.class)
|
||||
@AutoConfigureAfter(RSocketAutoConfiguration.class)
|
||||
public class RSocketRoutingAutoConfiguration {
|
||||
class RSocketRoutingAutoConfiguration {
|
||||
|
||||
@Bean
|
||||
public RSocketConnectorConfigurer functionRSocketConnectorConfigurer(
|
||||
|
||||
Reference in New Issue
Block a user