Change Apache Geode/Pivotal GemFire 'log-level' to 'error'.

Fix compiler warnings.

Fix Javadoc warnings.
This commit is contained in:
John Blum
2018-04-30 18:11:16 -07:00
parent cfcca3115a
commit f44ae0c586
12 changed files with 18 additions and 24 deletions

View File

@@ -73,11 +73,12 @@ public class Application {
SpringApplication.run(Application.class, args); SpringApplication.run(Application.class, args);
} }
@ClientCacheApplication(name = "SpringSessionDataGeodeClientWithScopedProxiesBootSample", @ClientCacheApplication(name = "SpringSessionDataGeodeClientWithScopedProxiesBootSample", logLevel = "error",
pingInterval = 5000L, readTimeout = 15000, retryAttempts = 1, subscriptionEnabled = true) // <3> pingInterval = 5000L, readTimeout = 15000, retryAttempts = 1, subscriptionEnabled = true) // <3>
@EnableGemFireHttpSession(poolName = "DEFAULT") // <4> @EnableGemFireHttpSession(poolName = "DEFAULT") // <4>
static class ClientCacheConfiguration { static class ClientCacheConfiguration {
// Required to resolve property placeholders in Spring @Value annotations.
@Bean @Bean
static PropertySourcesPlaceholderConfigurer propertyPlaceholderConfigurer() { static PropertySourcesPlaceholderConfigurer propertyPlaceholderConfigurer() {
return new PropertySourcesPlaceholderConfigurer(); return new PropertySourcesPlaceholderConfigurer();

View File

@@ -41,7 +41,7 @@ import org.springframework.session.data.gemfire.config.annotation.web.http.Enabl
@SuppressWarnings("unused") @SuppressWarnings("unused")
// tag::class[] // tag::class[]
@SpringBootApplication // <1> @SpringBootApplication // <1>
@CacheServerApplication(name = "SpringSessionDataGeodeServerWithScopedProxiesBootSample") // <2> @CacheServerApplication(name = "SpringSessionDataGeodeServerWithScopedProxiesBootSample", logLevel = "error") // <2>
@EnableGemFireHttpSession(maxInactiveIntervalInSeconds = 10) // <3> @EnableGemFireHttpSession(maxInactiveIntervalInSeconds = 10) // <3>
@EnableManager(start = true) // <4> @EnableManager(start = true) // <4>
public class GemFireServer { public class GemFireServer {
@@ -54,6 +54,7 @@ public class GemFireServer {
.run(args); .run(args);
} }
// Required to resolve property placeholders in Spring @Value annotations.
@Bean @Bean
static PropertySourcesPlaceholderConfigurer propertyPlaceholderConfigurer() { static PropertySourcesPlaceholderConfigurer propertyPlaceholderConfigurer() {
return new PropertySourcesPlaceholderConfigurer(); return new PropertySourcesPlaceholderConfigurer();

View File

@@ -75,7 +75,7 @@ public class Application {
SpringApplication.run(Application.class, args); SpringApplication.run(Application.class, args);
} }
@ClientCacheApplication(name = "SpringSessionDataGeodeClientBootSample", logLevel = "warning", @ClientCacheApplication(name = "SpringSessionDataGeodeClientBootSample", logLevel = "error",
pingInterval = 5000L, readTimeout = 15000, retryAttempts = 1, subscriptionEnabled = true) // <3> pingInterval = 5000L, readTimeout = 15000, retryAttempts = 1, subscriptionEnabled = true) // <3>
@EnableGemFireHttpSession(poolName = "DEFAULT") // <4> @EnableGemFireHttpSession(poolName = "DEFAULT") // <4>
static class ClientCacheConfiguration extends IntegrationTestConfiguration { static class ClientCacheConfiguration extends IntegrationTestConfiguration {

View File

@@ -21,7 +21,6 @@ import org.springframework.boot.SpringApplication;
import org.springframework.boot.WebApplicationType; import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean; 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.CacheServerApplication;
import org.springframework.data.gemfire.config.annotation.CacheServerConfigurer; import org.springframework.data.gemfire.config.annotation.CacheServerConfigurer;
import org.springframework.data.gemfire.config.annotation.EnableManager; 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") @SuppressWarnings("unused")
// tag::class[] // tag::class[]
@SpringBootApplication // <1> @SpringBootApplication // <1>
@CacheServerApplication(name = "SpringSessionDataGeodeServerBootSample", logLevel = "warning") // <2> @CacheServerApplication(name = "SpringSessionDataGeodeServerBootSample", logLevel = "error") // <2>
@EnableGemFireHttpSession(maxInactiveIntervalInSeconds = 20) // <3> @EnableGemFireHttpSession(maxInactiveIntervalInSeconds = 20) // <3>
@EnableManager(start = true) // <4> @EnableManager(start = true) // <4>
public class GemFireServer { public class GemFireServer {
@@ -52,12 +51,6 @@ public class GemFireServer {
springApplication.run(args); springApplication.run(args);
} }
// Required to resolve property placeholders in Spring @Value annotations.
@Bean
static PropertySourcesPlaceholderConfigurer propertyPlaceholderConfigurer() {
return new PropertySourcesPlaceholderConfigurer();
}
@Bean @Bean
CacheServerConfigurer cacheServerPortConfigurer( CacheServerConfigurer cacheServerPortConfigurer(
@Value("${spring.session.data.geode.cache.server.port:40404}") int port) { // <5> @Value("${spring.session.data.geode.cache.server.port:40404}") int port) { // <5>

View File

@@ -26,7 +26,7 @@ import org.springframework.data.gemfire.config.annotation.ClientCacheConfigurer;
import org.springframework.session.data.gemfire.config.annotation.web.http.EnableGemFireHttpSession; import org.springframework.session.data.gemfire.config.annotation.web.http.EnableGemFireHttpSession;
// tag::class[] // tag::class[]
@ClientCacheApplication(name = "SpringSessionDataGeodeClientJavaConfigSample", logLevel = "warning", @ClientCacheApplication(name = "SpringSessionDataGeodeClientJavaConfigSample", logLevel = "error",
pingInterval = 5000L, readTimeout = 15000, retryAttempts = 1, subscriptionEnabled = true) // <1> pingInterval = 5000L, readTimeout = 15000, retryAttempts = 1, subscriptionEnabled = true) // <1>
@EnableGemFireHttpSession(maxInactiveIntervalInSeconds = 30, poolName = "DEFAULT") // <2> @EnableGemFireHttpSession(maxInactiveIntervalInSeconds = 30, poolName = "DEFAULT") // <2>
public class ClientConfig extends IntegrationTestConfig { public class ClientConfig extends IntegrationTestConfig {

View File

@@ -27,7 +27,7 @@ import org.springframework.data.gemfire.config.annotation.CacheServerConfigurer;
import org.springframework.session.data.gemfire.config.annotation.web.http.EnableGemFireHttpSession; import org.springframework.session.data.gemfire.config.annotation.web.http.EnableGemFireHttpSession;
// tag::class[] // tag::class[]
@CacheServerApplication(name = "SpringSessionSampleJavaConfigGemFireClientServer", logLevel = "warning") // <1> @CacheServerApplication(name = "SpringSessionSampleJavaConfigGemFireClientServer", logLevel = "error") // <1>
@EnableGemFireHttpSession(maxInactiveIntervalInSeconds = 30) // <2> @EnableGemFireHttpSession(maxInactiveIntervalInSeconds = 30) // <2>
public class ServerConfig { public class ServerConfig {

View File

@@ -21,7 +21,7 @@ import org.springframework.data.gemfire.config.annotation.PeerCacheApplication;
import org.springframework.session.data.gemfire.config.annotation.web.http.EnableGemFireHttpSession; import org.springframework.session.data.gemfire.config.annotation.web.http.EnableGemFireHttpSession;
// tag::class[] // tag::class[]
@PeerCacheApplication(name = "SpringSessionSampleJavaConfigGemFireP2p", logLevel = "warning") // <1> @PeerCacheApplication(name = "SpringSessionSampleJavaConfigGemFireP2p", logLevel = "error") // <1>
@EnableGemFireHttpSession // <2> @EnableGemFireHttpSession // <2>
@EnableManager(start = true) // <3> @EnableManager(start = true) // <3>
public class Config { public class Config {

View File

@@ -20,7 +20,7 @@
<!--1--> <!--1-->
<util:properties id="gemfireProperties"> <util:properties id="gemfireProperties">
<prop key="name">SpringSessionSampleXmlGemFireClientServer</prop> <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">true</prop>
<prop key="jmx-manager-start">true</prop> <prop key="jmx-manager-start">true</prop>

View File

@@ -21,7 +21,7 @@
<!--1--> <!--1-->
<util:properties id="gemfireProperties"> <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> </util:properties>
<!--2--> <!--2-->

View File

@@ -19,7 +19,7 @@
<!--1--> <!--1-->
<util:properties id="gemfireProperties"> <util:properties id="gemfireProperties">
<prop key="name">SpringSessionSampleXmlGemFireP2p</prop> <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">true</prop>
<prop key="jmx-manager-start">true</prop> <prop key="jmx-manager-start">true</prop>
</util:properties> </util:properties>

View File

@@ -302,7 +302,7 @@ public class MultiPoolClientServerGemFireOperationsSessionRepositoryIntegrationT
static final String SERVER_HOSTNAME = "localhost"; static final String SERVER_HOSTNAME = "localhost";
@Bean @Bean
PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer() { static PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer() {
return new PropertySourcesPlaceholderConfigurer(); return new PropertySourcesPlaceholderConfigurer();
} }

View File

@@ -31,17 +31,16 @@ public class SerializationException extends RuntimeException {
* Constructs a default instance of {@link SerializationException} with no {@link String message} * Constructs a default instance of {@link SerializationException} with no {@link String message}
* or {@link Throwable cause}. * 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} * Constructs a new instance of {@link SerializationException} initialized with the given {@link String message}
* describing the serialization error. * describing the serialization error.
* *
* @param message {@link String} 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 * @see java.lang.String
*/ */
public SerializationException(String message) { public SerializationException(String message) {
@@ -53,7 +52,7 @@ public class SerializationException extends RuntimeException {
* of the serialization error. * of the serialization error.
* *
* @param cause {@link Throwable underlying cause} 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 * @see java.lang.Throwable
*/ */
public SerializationException(Throwable cause) { public SerializationException(Throwable cause) {
@@ -66,7 +65,7 @@ public class SerializationException extends RuntimeException {
* *
* @param message {@link String} describing the serialization error. * @param message {@link String} describing the serialization error.
* @param cause {@link Throwable underlying cause} of 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.Throwable
* @see java.lang.String * @see java.lang.String
*/ */