Skip to content

Commit 544d516

Browse files
committed
Merge branch '1.4.x' into 1.5.x
2 parents b5709fd + 250d5f9 commit 544d516

File tree

4 files changed

+2
-159
lines changed

4 files changed

+2
-159
lines changed

spring-boot-docs/src/main/asciidoc/appendix-application-properties.adoc

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -710,18 +710,13 @@ content into your application; rather pick only the properties that you need.
710710
spring.jta.atomikos.datasource.test-query= # SQL query or statement used to validate a connection before returning it.
711711
spring.jta.atomikos.datasource.unique-resource-name=dataSource # The unique name used to identify the resource during recovery.
712712
spring.jta.atomikos.properties.checkpoint-interval=500 # Interval between checkpoints.
713-
spring.jta.atomikos.properties.console-file-count=1 # Number of debug logs files that can be created.
714-
spring.jta.atomikos.properties.console-file-limit=-1 # How many bytes can be stored at most in debug logs files.
715-
spring.jta.atomikos.properties.console-file-name=tm.out # Debug logs file name.
716-
spring.jta.atomikos.properties.console-log-level=warn # Console log level.
717713
spring.jta.atomikos.properties.default-jta-timeout=10000 # Default timeout for JTA transactions.
718714
spring.jta.atomikos.properties.enable-logging=true # Enable disk logging.
719715
spring.jta.atomikos.properties.force-shutdown-on-vm-exit=false # Specify if a VM shutdown should trigger forced shutdown of the transaction core.
720716
spring.jta.atomikos.properties.log-base-dir= # Directory in which the log files should be stored.
721717
spring.jta.atomikos.properties.log-base-name=tmlog # Transactions log file base name.
722718
spring.jta.atomikos.properties.max-actives=50 # Maximum number of active transactions.
723719
spring.jta.atomikos.properties.max-timeout=300000 # Maximum timeout (in milliseconds) that can be allowed for transactions.
724-
spring.jta.atomikos.properties.output-dir= # Directory in which to store the debug log files.
725720
spring.jta.atomikos.properties.serial-jta-transactions=true # Specify if sub-transactions should be joined when possible.
726721
spring.jta.atomikos.properties.service= # Transaction manager implementation that should be started.
727722
spring.jta.atomikos.properties.threaded-two-phase-commit=false # Use different (and concurrent) threads for two-phase commit on the participating resources.

spring-boot/src/main/java/org/springframework/boot/jta/atomikos/AtomikosLoggingLevel.java

Lines changed: 0 additions & 43 deletions
This file was deleted.

spring-boot/src/main/java/org/springframework/boot/jta/atomikos/AtomikosProperties.java

Lines changed: 0 additions & 94 deletions
Original file line numberDiff line numberDiff line change
@@ -93,33 +93,6 @@ public class AtomikosProperties {
9393
*/
9494
private long checkpointInterval = 500;
9595

96-
/**
97-
* Console log level.
98-
*/
99-
private AtomikosLoggingLevel consoleLogLevel = AtomikosLoggingLevel.WARN;
100-
101-
/**
102-
* Directory in which to store the debug log files. Defaults to the current working
103-
* directory.
104-
*/
105-
private String outputDir;
106-
107-
/**
108-
* Debug logs file name.
109-
*/
110-
private String consoleFileName = "tm.out";
111-
112-
/**
113-
* Number of debug logs files that can be created.
114-
*/
115-
private int consoleFileCount = 1;
116-
117-
/**
118-
* How many bytes can be stored at most in debug logs files. Negative values means
119-
* unlimited.
120-
*/
121-
private int consoleFileLimit = -1;
122-
12396
/**
12497
* Use different (and concurrent) threads for two-phase commit on the participating
12598
* resources.
@@ -291,68 +264,6 @@ public long getCheckpointInterval() {
291264
return this.checkpointInterval;
292265
}
293266

294-
/**
295-
* Specifies the console log level. Defaults to {@link AtomikosLoggingLevel#WARN}.
296-
* @param consoleLogLevel the console log level
297-
*/
298-
public void setConsoleLogLevel(AtomikosLoggingLevel consoleLogLevel) {
299-
this.consoleLogLevel = consoleLogLevel;
300-
}
301-
302-
public AtomikosLoggingLevel getConsoleLogLevel() {
303-
return this.consoleLogLevel;
304-
}
305-
306-
/**
307-
* Specifies the directory in which to store the debug log files. Defaults to the
308-
* current working directory.
309-
* @param outputDir the output dir
310-
*/
311-
public void setOutputDir(String outputDir) {
312-
this.outputDir = outputDir;
313-
}
314-
315-
public String getOutputDir() {
316-
return this.outputDir;
317-
}
318-
319-
/**
320-
* Specifies the debug logs file name. Defaults to {@literal tm.out}.
321-
* @param consoleFileName the console file name
322-
*/
323-
public void setConsoleFileName(String consoleFileName) {
324-
this.consoleFileName = consoleFileName;
325-
}
326-
327-
public String getConsoleFileName() {
328-
return this.consoleFileName;
329-
}
330-
331-
/**
332-
* Specifies how many debug logs files can be created. Defaults to {@literal 1}.
333-
* @param consoleFileCount the console file count
334-
*/
335-
public void setConsoleFileCount(int consoleFileCount) {
336-
this.consoleFileCount = consoleFileCount;
337-
}
338-
339-
public int getConsoleFileCount() {
340-
return this.consoleFileCount;
341-
}
342-
343-
/**
344-
* Specifies how many bytes can be stored at most in debug logs files. Defaults to
345-
* {@literal -1}. Negative values means unlimited.
346-
* @param consoleFileLimit the console file limit
347-
*/
348-
public void setConsoleFileLimit(int consoleFileLimit) {
349-
this.consoleFileLimit = consoleFileLimit;
350-
}
351-
352-
public int getConsoleFileLimit() {
353-
return this.consoleFileLimit;
354-
}
355-
356267
/**
357268
* Specifies whether or not to use different (and concurrent) threads for two-phase
358269
* commit on the participating resources. Setting this to {@literal true} implies that
@@ -388,11 +299,6 @@ public Properties asProperties() {
388299
set(properties, "log_base_name", getLogBaseName());
389300
set(properties, "log_base_dir", getLogBaseDir());
390301
set(properties, "checkpoint_interval", getCheckpointInterval());
391-
set(properties, "console_log_level", getConsoleLogLevel());
392-
set(properties, "output_dir", getOutputDir());
393-
set(properties, "console_file_name", getConsoleFileName());
394-
set(properties, "console_file_count", getConsoleFileCount());
395-
set(properties, "console_file_limit", getConsoleFileLimit());
396302
set(properties, "threaded_2pc", isThreadedTwoPhaseCommit());
397303
return properties;
398304
}

spring-boot/src/test/java/org/springframework/boot/jta/atomikos/AtomikosPropertiesTests.java

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,9 @@ public void testProperties() {
5151
this.properties.setLogBaseName("logBaseName");
5252
this.properties.setLogBaseDir("logBaseDir");
5353
this.properties.setCheckpointInterval(4);
54-
this.properties.setConsoleLogLevel(AtomikosLoggingLevel.WARN);
55-
this.properties.setOutputDir("outputDir");
56-
this.properties.setConsoleFileName("consoleFileName");
57-
this.properties.setConsoleFileCount(5);
58-
this.properties.setConsoleFileLimit(6);
5954
this.properties.setThreadedTwoPhaseCommit(true);
6055

61-
assertThat(this.properties.asProperties().size()).isEqualTo(17);
56+
assertThat(this.properties.asProperties().size()).isEqualTo(12);
6257
assertProperty("com.atomikos.icatch.service", "service");
6358
assertProperty("com.atomikos.icatch.max_timeout", "1");
6459
assertProperty("com.atomikos.icatch.default_jta_timeout", "2");
@@ -70,11 +65,6 @@ public void testProperties() {
7065
assertProperty("com.atomikos.icatch.log_base_name", "logBaseName");
7166
assertProperty("com.atomikos.icatch.log_base_dir", "logBaseDir");
7267
assertProperty("com.atomikos.icatch.checkpoint_interval", "4");
73-
assertProperty("com.atomikos.icatch.console_log_level", "WARN");
74-
assertProperty("com.atomikos.icatch.output_dir", "outputDir");
75-
assertProperty("com.atomikos.icatch.console_file_name", "consoleFileName");
76-
assertProperty("com.atomikos.icatch.console_file_count", "5");
77-
assertProperty("com.atomikos.icatch.console_file_limit", "6");
7868
assertProperty("com.atomikos.icatch.threaded_2pc", "true");
7969
}
8070

@@ -92,12 +82,7 @@ public void testDefaultProperties() {
9282
"com.atomikos.icatch.log_base_name",
9383
"com.atomikos.icatch.checkpoint_interval",
9484
"com.atomikos.icatch.threaded_2pc"));
95-
assertThat(properties).contains(
96-
entry("com.atomikos.icatch.console_log_level", "WARN"),
97-
entry("com.atomikos.icatch.console_file_name", "tm.out"),
98-
entry("com.atomikos.icatch.console_file_count", "1"),
99-
entry("com.atomikos.icatch.console_file_limit", "-1"));
100-
assertThat(properties).hasSize(13);
85+
assertThat(properties).hasSize(9);
10186
}
10287

10388
private MapEntry<?, ?>[] defaultOf(Properties defaultSettings, String... keys) {

0 commit comments

Comments
 (0)