Change Apache Geode/Pivotal GemFire 'log-level' to 'error'.
Fix compiler warnings. Fix Javadoc warnings.
This commit is contained in:
@@ -73,11 +73,12 @@ public class Application {
|
||||
SpringApplication.run(Application.class, args);
|
||||
}
|
||||
|
||||
@ClientCacheApplication(name = "SpringSessionDataGeodeClientWithScopedProxiesBootSample",
|
||||
@ClientCacheApplication(name = "SpringSessionDataGeodeClientWithScopedProxiesBootSample", logLevel = "error",
|
||||
pingInterval = 5000L, readTimeout = 15000, retryAttempts = 1, subscriptionEnabled = true) // <3>
|
||||
@EnableGemFireHttpSession(poolName = "DEFAULT") // <4>
|
||||
static class ClientCacheConfiguration {
|
||||
|
||||
// Required to resolve property placeholders in Spring @Value annotations.
|
||||
@Bean
|
||||
static PropertySourcesPlaceholderConfigurer propertyPlaceholderConfigurer() {
|
||||
return new PropertySourcesPlaceholderConfigurer();
|
||||
|
||||
@@ -41,7 +41,7 @@ import org.springframework.session.data.gemfire.config.annotation.web.http.Enabl
|
||||
@SuppressWarnings("unused")
|
||||
// tag::class[]
|
||||
@SpringBootApplication // <1>
|
||||
@CacheServerApplication(name = "SpringSessionDataGeodeServerWithScopedProxiesBootSample") // <2>
|
||||
@CacheServerApplication(name = "SpringSessionDataGeodeServerWithScopedProxiesBootSample", logLevel = "error") // <2>
|
||||
@EnableGemFireHttpSession(maxInactiveIntervalInSeconds = 10) // <3>
|
||||
@EnableManager(start = true) // <4>
|
||||
public class GemFireServer {
|
||||
@@ -54,6 +54,7 @@ public class GemFireServer {
|
||||
.run(args);
|
||||
}
|
||||
|
||||
// Required to resolve property placeholders in Spring @Value annotations.
|
||||
@Bean
|
||||
static PropertySourcesPlaceholderConfigurer propertyPlaceholderConfigurer() {
|
||||
return new PropertySourcesPlaceholderConfigurer();
|
||||
|
||||
@@ -75,7 +75,7 @@ public class Application {
|
||||
SpringApplication.run(Application.class, args);
|
||||
}
|
||||
|
||||
@ClientCacheApplication(name = "SpringSessionDataGeodeClientBootSample", logLevel = "warning",
|
||||
@ClientCacheApplication(name = "SpringSessionDataGeodeClientBootSample", logLevel = "error",
|
||||
pingInterval = 5000L, readTimeout = 15000, retryAttempts = 1, subscriptionEnabled = true) // <3>
|
||||
@EnableGemFireHttpSession(poolName = "DEFAULT") // <4>
|
||||
static class ClientCacheConfiguration extends IntegrationTestConfiguration {
|
||||
|
||||
@@ -21,7 +21,6 @@ import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.WebApplicationType;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.support.PropertySourcesPlaceholderConfigurer;
|
||||
import org.springframework.data.gemfire.config.annotation.CacheServerApplication;
|
||||
import org.springframework.data.gemfire.config.annotation.CacheServerConfigurer;
|
||||
import org.springframework.data.gemfire.config.annotation.EnableManager;
|
||||
@@ -41,7 +40,7 @@ import org.springframework.session.data.gemfire.config.annotation.web.http.Enabl
|
||||
@SuppressWarnings("unused")
|
||||
// tag::class[]
|
||||
@SpringBootApplication // <1>
|
||||
@CacheServerApplication(name = "SpringSessionDataGeodeServerBootSample", logLevel = "warning") // <2>
|
||||
@CacheServerApplication(name = "SpringSessionDataGeodeServerBootSample", logLevel = "error") // <2>
|
||||
@EnableGemFireHttpSession(maxInactiveIntervalInSeconds = 20) // <3>
|
||||
@EnableManager(start = true) // <4>
|
||||
public class GemFireServer {
|
||||
@@ -52,12 +51,6 @@ public class GemFireServer {
|
||||
springApplication.run(args);
|
||||
}
|
||||
|
||||
// Required to resolve property placeholders in Spring @Value annotations.
|
||||
@Bean
|
||||
static PropertySourcesPlaceholderConfigurer propertyPlaceholderConfigurer() {
|
||||
return new PropertySourcesPlaceholderConfigurer();
|
||||
}
|
||||
|
||||
@Bean
|
||||
CacheServerConfigurer cacheServerPortConfigurer(
|
||||
@Value("${spring.session.data.geode.cache.server.port:40404}") int port) { // <5>
|
||||
|
||||
@@ -26,7 +26,7 @@ import org.springframework.data.gemfire.config.annotation.ClientCacheConfigurer;
|
||||
import org.springframework.session.data.gemfire.config.annotation.web.http.EnableGemFireHttpSession;
|
||||
|
||||
// tag::class[]
|
||||
@ClientCacheApplication(name = "SpringSessionDataGeodeClientJavaConfigSample", logLevel = "warning",
|
||||
@ClientCacheApplication(name = "SpringSessionDataGeodeClientJavaConfigSample", logLevel = "error",
|
||||
pingInterval = 5000L, readTimeout = 15000, retryAttempts = 1, subscriptionEnabled = true) // <1>
|
||||
@EnableGemFireHttpSession(maxInactiveIntervalInSeconds = 30, poolName = "DEFAULT") // <2>
|
||||
public class ClientConfig extends IntegrationTestConfig {
|
||||
|
||||
@@ -27,7 +27,7 @@ import org.springframework.data.gemfire.config.annotation.CacheServerConfigurer;
|
||||
import org.springframework.session.data.gemfire.config.annotation.web.http.EnableGemFireHttpSession;
|
||||
|
||||
// tag::class[]
|
||||
@CacheServerApplication(name = "SpringSessionSampleJavaConfigGemFireClientServer", logLevel = "warning") // <1>
|
||||
@CacheServerApplication(name = "SpringSessionSampleJavaConfigGemFireClientServer", logLevel = "error") // <1>
|
||||
@EnableGemFireHttpSession(maxInactiveIntervalInSeconds = 30) // <2>
|
||||
public class ServerConfig {
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ import org.springframework.data.gemfire.config.annotation.PeerCacheApplication;
|
||||
import org.springframework.session.data.gemfire.config.annotation.web.http.EnableGemFireHttpSession;
|
||||
|
||||
// tag::class[]
|
||||
@PeerCacheApplication(name = "SpringSessionSampleJavaConfigGemFireP2p", logLevel = "warning") // <1>
|
||||
@PeerCacheApplication(name = "SpringSessionSampleJavaConfigGemFireP2p", logLevel = "error") // <1>
|
||||
@EnableGemFireHttpSession // <2>
|
||||
@EnableManager(start = true) // <3>
|
||||
public class Config {
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
<!--1-->
|
||||
<util:properties id="gemfireProperties">
|
||||
<prop key="name">SpringSessionSampleXmlGemFireClientServer</prop>
|
||||
<prop key="log-level">${spring.session.data.gemfire.log-level:warning}</prop>
|
||||
<prop key="log-level">${spring.session.data.gemfire.log-level:error}</prop>
|
||||
<!--
|
||||
<prop key="jmx-manager">true</prop>
|
||||
<prop key="jmx-manager-start">true</prop>
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
|
||||
<!--1-->
|
||||
<util:properties id="gemfireProperties">
|
||||
<prop key="log-level">${spring.session.data.geode.log-level:warning}</prop>
|
||||
<prop key="log-level">${spring.session.data.geode.log-level:error}</prop>
|
||||
</util:properties>
|
||||
|
||||
<!--2-->
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
<!--1-->
|
||||
<util:properties id="gemfireProperties">
|
||||
<prop key="name">SpringSessionSampleXmlGemFireP2p</prop>
|
||||
<prop key="log-level">${spring.session.data.geode.log-level:warning}</prop>
|
||||
<prop key="log-level">${spring.session.data.geode.log-level:error}</prop>
|
||||
<prop key="jmx-manager">true</prop>
|
||||
<prop key="jmx-manager-start">true</prop>
|
||||
</util:properties>
|
||||
|
||||
@@ -302,7 +302,7 @@ public class MultiPoolClientServerGemFireOperationsSessionRepositoryIntegrationT
|
||||
static final String SERVER_HOSTNAME = "localhost";
|
||||
|
||||
@Bean
|
||||
PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer() {
|
||||
static PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer() {
|
||||
return new PropertySourcesPlaceholderConfigurer();
|
||||
}
|
||||
|
||||
|
||||
@@ -31,17 +31,16 @@ public class SerializationException extends RuntimeException {
|
||||
* Constructs a default instance of {@link SerializationException} with no {@link String message}
|
||||
* or {@link Throwable cause}.
|
||||
*
|
||||
* @see RuntimeException
|
||||
* @see java.lang.RuntimeException#RuntimeException()
|
||||
*/
|
||||
public SerializationException() {
|
||||
}
|
||||
public SerializationException() { }
|
||||
|
||||
/**
|
||||
* Constructs a new instance of {@link SerializationException} initialized with the given {@link String message}
|
||||
* describing the serialization error.
|
||||
*
|
||||
* @param message {@link String} describing the serialization error.
|
||||
* @see RuntimeException(String)
|
||||
* @see java.lang.RuntimeException#RuntimeException(String)
|
||||
* @see java.lang.String
|
||||
*/
|
||||
public SerializationException(String message) {
|
||||
@@ -53,7 +52,7 @@ public class SerializationException extends RuntimeException {
|
||||
* of the serialization error.
|
||||
*
|
||||
* @param cause {@link Throwable underlying cause} of the serialization error.
|
||||
* @see RuntimeException(Throwable)
|
||||
* @see java.lang.RuntimeException#RuntimeException(Throwable)
|
||||
* @see java.lang.Throwable
|
||||
*/
|
||||
public SerializationException(Throwable cause) {
|
||||
@@ -66,7 +65,7 @@ public class SerializationException extends RuntimeException {
|
||||
*
|
||||
* @param message {@link String} describing the serialization error.
|
||||
* @param cause {@link Throwable underlying cause} of the serialization error.
|
||||
* @see RuntimeException(String, Throwable)
|
||||
* @see java.lang.RuntimeException#RuntimeException(String, Throwable)
|
||||
* @see java.lang.Throwable
|
||||
* @see java.lang.String
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user