Polish
This commit is contained in:
parent
82207ffce5
commit
c38bb9657d
|
@ -92,7 +92,7 @@ public class LiquibaseProperties {
|
|||
private Map<String, String> parameters;
|
||||
|
||||
/**
|
||||
* The file to which rollback SQL will be written when an update is performed.
|
||||
* File to which rollback SQL will be written when an update is performed.
|
||||
*/
|
||||
private File rollbackFile;
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@ import javax.sql.DataSource;
|
|||
import org.springframework.boot.autoconfigure.jdbc.EmbeddedDatabaseConnection;
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
import org.springframework.boot.context.properties.DeprecatedConfigurationProperty;
|
||||
import org.springframework.boot.context.properties.NestedConfigurationProperty;
|
||||
import org.springframework.orm.jpa.vendor.Database;
|
||||
import org.springframework.util.StringUtils;
|
||||
|
||||
|
@ -145,6 +146,7 @@ public class JpaProperties {
|
|||
*/
|
||||
private Boolean useNewIdGeneratorMappings;
|
||||
|
||||
@NestedConfigurationProperty
|
||||
private final Naming naming = new Naming();
|
||||
|
||||
@Deprecated
|
||||
|
|
|
@ -184,18 +184,19 @@ content into your application; rather pick only the properties that you need.
|
|||
server.session.tracking-modes= # Session tracking modes (one or more of the following: "cookie", "url", "ssl").
|
||||
server.ssl.ciphers= # Supported SSL ciphers.
|
||||
server.ssl.client-auth= # Whether client authentication is wanted ("want") or needed ("need"). Requires a trust store.
|
||||
server.ssl.enabled= #
|
||||
server.ssl.key-alias= #
|
||||
server.ssl.key-password= #
|
||||
server.ssl.key-store= #
|
||||
server.ssl.key-store-password= #
|
||||
server.ssl.key-store-provider= #
|
||||
server.ssl.key-store-type= #
|
||||
server.ssl.protocol= #
|
||||
server.ssl.trust-store= #
|
||||
server.ssl.trust-store-password= #
|
||||
server.ssl.trust-store-provider= #
|
||||
server.ssl.trust-store-type= #
|
||||
server.ssl.enabled= # Enable SSL support.
|
||||
server.ssl.enabled-protocols= # Enabled SSL protocols.
|
||||
server.ssl.key-alias= # Alias that identifies the key in the key store.
|
||||
server.ssl.key-password= # Password used to access the key in the key store.
|
||||
server.ssl.key-store= # Path to the key store that holds the SSL certificate (typically a jks file).
|
||||
server.ssl.key-store-password= # Password used to access the key store.
|
||||
server.ssl.key-store-provider= # Provider for the key store.
|
||||
server.ssl.key-store-type= # Type of the key store.
|
||||
server.ssl.protocol=TLS # SSL protocol to use.
|
||||
server.ssl.trust-store= # Trust store that holds SSL certificates.
|
||||
server.ssl.trust-store-password= # Password used to access the trust store.
|
||||
server.ssl.trust-store-provider= # Provider for the trust store.
|
||||
server.ssl.trust-store-type= # Type of the trust store.
|
||||
server.tomcat.accesslog.directory=logs # Directory in which log files are created. Can be relative to the tomcat base dir or absolute.
|
||||
server.tomcat.accesslog.enabled=false # Enable access log.
|
||||
server.tomcat.accesslog.pattern=common # Format pattern for access logs.
|
||||
|
@ -276,6 +277,7 @@ content into your application; rather pick only the properties that you need.
|
|||
|
||||
# JACKSON ({sc-spring-boot-autoconfigure}/jackson/JacksonProperties.{sc-ext}[JacksonProperties])
|
||||
spring.jackson.date-format= # Date format string or a fully-qualified date format class name. For instance `yyyy-MM-dd HH:mm:ss`.
|
||||
spring.jackson.default-property-inclusion= # Controls the inclusion of properties during serialization.
|
||||
spring.jackson.deserialization.*= # Jackson on/off features that affect the way Java objects are deserialized.
|
||||
spring.jackson.generator.*= # Jackson on/off features for generators.
|
||||
spring.jackson.joda-date-time-format= # Joda date time format string. If not configured, "date-format" will be used as a fallback if it is configured with a format string.
|
||||
|
@ -308,12 +310,18 @@ content into your application; rather pick only the properties that you need.
|
|||
spring.mobile.sitepreference.enabled=true # Enable SitePreferenceHandler.
|
||||
|
||||
# MUSTACHE TEMPLATES ({sc-spring-boot-autoconfigure}/mustache/MustacheAutoConfiguration.{sc-ext}[MustacheAutoConfiguration])
|
||||
spring.mustache.cache=false # Enable template caching.
|
||||
spring.mustache.charset=UTF-8 # Template encoding.
|
||||
spring.mustache.check-template-location=true # Check that the templates location exists.
|
||||
spring.mustache.content-type=text/html # Content-Type value.
|
||||
spring.mustache.enabled=true # Enable MVC view resolution for this technology.
|
||||
spring.mustache.allow-request-override= # Set whether HttpServletRequest attributes are allowed to override (hide) controller generated model attributes of the same name.
|
||||
spring.mustache.allow-session-override= # Set whether HttpSession attributes are allowed to override (hide) controller generated model attributes of the same name.
|
||||
spring.mustache.cache= # Enable template caching.
|
||||
spring.mustache.charset= # Template encoding.
|
||||
spring.mustache.check-template-location= # Check that the templates location exists.
|
||||
spring.mustache.content-type= # Content-Type value.
|
||||
spring.mustache.enabled= # Enable MVC view resolution for this technology.
|
||||
spring.mustache.expose-request-attributes= # Set whether all request attributes should be added to the model prior to merging with the template.
|
||||
spring.mustache.expose-session-attributes= # Set whether all HttpSession attributes should be added to the model prior to merging with the template.
|
||||
spring.mustache.expose-spring-macro-helpers= # Set whether to expose a RequestContext for use by Spring's macro library, under the name "springMacroRequestContext".
|
||||
spring.mustache.prefix=classpath:/templates/ # Prefix to apply to template names.
|
||||
spring.mustache.request-context-attribute= # Name of the RequestContext attribute for all views.
|
||||
spring.mustache.suffix=.html # Suffix to apply to template names.
|
||||
spring.mustache.view-names= # White list of view names that can be resolved.
|
||||
|
||||
|
@ -480,6 +488,7 @@ content into your application; rather pick only the properties that you need.
|
|||
liquibase.labels= # Comma-separated list of runtime labels to use.
|
||||
liquibase.parameters.*= # Change log parameters.
|
||||
liquibase.password= # Login password of the database to migrate.
|
||||
liquibase.rollback-file= # File to which rollback SQL will be written when an update is performed.
|
||||
liquibase.url= # JDBC url of the database to migrate. If not set, the primary configured data source is used.
|
||||
liquibase.user= # Login user of the database to migrate.
|
||||
|
||||
|
@ -606,7 +615,10 @@ content into your application; rather pick only the properties that you need.
|
|||
spring.jpa.database-platform= # Name of the target database to operate on, auto-detected by default. Can be alternatively set using the "Database" enum.
|
||||
spring.jpa.generate-ddl=false # Initialize the schema on startup.
|
||||
spring.jpa.hibernate.ddl-auto= # DDL mode. This is actually a shortcut for the "hibernate.hbm2ddl.auto" property. Default to "create-drop" when using an embedded database, "none" otherwise.
|
||||
spring.jpa.hibernate.naming-strategy= # Naming strategy fully qualified name.
|
||||
spring.jpa.hibernate.naming.implicit-strategy= # Hibernate 5 implicit naming strategy fully qualified name.
|
||||
spring.jpa.hibernate.naming.physical-strategy= # Hibernate 5 physical naming strategy fully qualified name.
|
||||
spring.jpa.hibernate.naming.strategy= # Hibernate 4 naming strategy fully qualified name. Not supported with Hibernate 5.
|
||||
spring.jpa.hibernate.use-new-id-generator-mappings= # Use Hibernate's newer IdentifierGenerator for AUTO, TABLE and SEQUENCE.
|
||||
spring.jpa.open-in-view=true # Register OpenEntityManagerInViewInterceptor. Binds a JPA EntityManager to the thread for the entire processing of the request.
|
||||
spring.jpa.properties.*= # Additional native properties to set on the JPA provider.
|
||||
spring.jpa.show-sql=false # Enable logging of SQL statements.
|
||||
|
@ -722,17 +734,19 @@ content into your application; rather pick only the properties that you need.
|
|||
spring.jta.bitronix.properties.warn-about-zero-resource-transaction=true # Log a warning for transactions executed without a single enlisted resource.
|
||||
|
||||
# NARAYANA
|
||||
spring.jta.narayana.default-timeout=60 # Set default transaction timeout in seconds
|
||||
spring.jta.narayana.expiry-scanners=com.arjuna.ats.internal.arjuna.recovery.ExpiredTransactionStatusManagerScanner # List of ExpiryScanner implementations
|
||||
spring.jta.narayana.one-phase-commit=true # Enable or disable one phase commit optimisation
|
||||
spring.jta.narayana.periodic-recovery-period=120 # Set interval in which periodic recovery scans are performed in seconds
|
||||
spring.jta.narayana.recovery-backoff-period=10 # Set back off period between first and second phases of the recovery scan in seconds
|
||||
spring.jta.narayana.recovery-db-user= # Database username to be used by recovery manager
|
||||
spring.jta.narayana.recovery-db-pass= # Database password to be used by recovery manager
|
||||
spring.jta.narayana.recovery-jms-user= # JMS username to be used by recovery manager
|
||||
spring.jta.narayana.recovery-jms-pass= # JMS password to be used by recovery manager
|
||||
spring.jta.narayana.recovery-modules=com.arjuna.ats.internal.arjuna.recovery.AtomicActionRecoveryModule,com.arjuna.ats.internal.jta.recovery.arjunacore.XARecoveryModule # List of RecoveryModule implementations
|
||||
spring.jta.narayana.xa-resource-orphan-filters=com.arjuna.ats.internal.jta.recovery.arjunacore.JTATransactionLogXAResourceOrphanFilter,com.arjuna.ats.internal.jta.recovery.arjunacore.JTANodeNameXAResourceOrphanFilter # List of XAResourceOrphanFilter implementations
|
||||
spring.jta.narayana.default-timeout=60 # Transaction timeout in seconds.
|
||||
spring.jta.narayana.expiry-scanners=com.arjuna.ats.internal.arjuna.recovery.ExpiredTransactionStatusManagerScanner # Comma-separated list of expiry scanners.
|
||||
spring.jta.narayana.log-dir= # Transaction object store directory.
|
||||
spring.jta.narayana.one-phase-commit=true # Enable one phase commit optimisation.
|
||||
spring.jta.narayana.periodic-recovery-period=120 # Interval in which periodic recovery scans are performed in seconds.
|
||||
spring.jta.narayana.recovery-backoff-period=10 # Back off period between first and second phases of the recovery scan in seconds.
|
||||
spring.jta.narayana.recovery-db-pass= # Database password to be used by recovery manager.
|
||||
spring.jta.narayana.recovery-db-user= # Database username to be used by recovery manager.
|
||||
spring.jta.narayana.recovery-jms-pass= # JMS password to be used by recovery manager.
|
||||
spring.jta.narayana.recovery-jms-user= # JMS username to be used by recovery manager.
|
||||
spring.jta.narayana.recovery-modules= # Comma-separated list of recovery modules.
|
||||
spring.jta.narayana.transaction-manager-id=1 # Unique transaction manager id.
|
||||
spring.jta.narayana.xa-resource-orphan-filters= # Comma-separated list of of orphan filters.
|
||||
|
||||
# EMBEDDED MONGODB ({sc-spring-boot-autoconfigure}/mongo/embedded/EmbeddedMongoProperties.{sc-ext}[EmbeddedMongoProperties])
|
||||
spring.mongodb.embedded.features=SYNC_DELAY # Comma-separated list of features to enable.
|
||||
|
@ -767,7 +781,7 @@ content into your application; rather pick only the properties that you need.
|
|||
spring.activemq.password= # Login password of the broker.
|
||||
spring.activemq.user= # Login user of the broker.
|
||||
spring.activemq.packages.trust-all=false # Trust all packages
|
||||
spring.activemq.packages.trusted= # Comma-separated list of packages to trust (when not trusting all packages).
|
||||
spring.activemq.packages.trusted= # Comma-separated list of specific packages to trust (when not trusting all packages).
|
||||
spring.activemq.pool.configuration.*= # See PooledConnectionFactory
|
||||
spring.activemq.pool.enabled=false # Whether a PooledConnectionFactory should be created instead of a regular ConnectionFactory.
|
||||
spring.activemq.pool.expiry-timeout=0 # Connection expiration timeout in milliseconds.
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
package org.springframework.boot.jta.narayana;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
|
@ -42,85 +43,68 @@ public class NarayanaProperties {
|
|||
private String logDir;
|
||||
|
||||
/**
|
||||
* Unique transaction manager id. Default: 1.
|
||||
* Unique transaction manager id.
|
||||
*/
|
||||
private String transactionManagerId = "1";
|
||||
|
||||
/**
|
||||
* Enable one phase commit optimisation. Default: <code>true</code>.
|
||||
* Enable one phase commit optimisation.
|
||||
*/
|
||||
private boolean onePhaseCommit = true;
|
||||
|
||||
/**
|
||||
* Transaction timeout in seconds. Default: <code>60</code>.
|
||||
* Transaction timeout in seconds.
|
||||
*/
|
||||
private int defaultTimeout = 60;
|
||||
|
||||
/**
|
||||
* Interval in which periodic recovery scans are performed in seconds. Default:
|
||||
* <code>120</code>
|
||||
* Interval in which periodic recovery scans are performed in seconds.
|
||||
*/
|
||||
private int periodicRecoveryPeriod = 120;
|
||||
|
||||
/**
|
||||
* Back off period between first and second phases of the recovery scan in seconds.
|
||||
* Default: <code>10</code>
|
||||
*/
|
||||
private int recoveryBackoffPeriod = 10;
|
||||
|
||||
/**
|
||||
* Database username to be used by recovery manager. Default: <code>null</code>
|
||||
* Database username to be used by recovery manager.
|
||||
*/
|
||||
private String recoveryDbUser = null;
|
||||
|
||||
/**
|
||||
* Database password to be used by recovery manager. Default: <code>null</code>
|
||||
* Database password to be used by recovery manager.
|
||||
*/
|
||||
private String recoveryDbPass = null;
|
||||
|
||||
/**
|
||||
* JMS username to be used by recovery manager. Default: <code>null</code>
|
||||
* JMS username to be used by recovery manager.
|
||||
*/
|
||||
private String recoveryJmsUser = null;
|
||||
|
||||
/**
|
||||
* JMS password to be used by recovery manager. Default: <code>null</code>
|
||||
* JMS password to be used by recovery manager.
|
||||
*/
|
||||
private String recoveryJmsPass = null;
|
||||
|
||||
/**
|
||||
* List of orphan filters. Default:
|
||||
* <ul>
|
||||
* <li>com.arjuna.ats.internal.jta.recovery.arjunacore.
|
||||
* JTATransactionLogXAResourceOrphanFilter</li>
|
||||
* <li>
|
||||
* com.arjuna.ats.internal.jta.recovery.arjunacore.JTANodeNameXAResourceOrphanFilter
|
||||
* </li>
|
||||
* </ul>
|
||||
* Comma-separated list of of orphan filters.
|
||||
*/
|
||||
private List<String> xaResourceOrphanFilters = Arrays.asList(
|
||||
"com.arjuna.ats.internal.jta.recovery.arjunacore.JTATransactionLogXAResourceOrphanFilter",
|
||||
"com.arjuna.ats.internal.jta.recovery.arjunacore.JTANodeNameXAResourceOrphanFilter");
|
||||
|
||||
/**
|
||||
* List of recovery modules. Default:
|
||||
* <ul>
|
||||
* <li>com.arjuna.ats.internal.arjuna.recovery.AtomicActionRecoveryModule</li>
|
||||
* <li>com.arjuna.ats.internal.jta.recovery.arjunacore.XARecoveryModule</li>
|
||||
* </ul>
|
||||
* Comma-separated list of recovery modules.
|
||||
*/
|
||||
private List<String> recoveryModules = Arrays.asList(
|
||||
"com.arjuna.ats.internal.arjuna.recovery.AtomicActionRecoveryModule",
|
||||
"com.arjuna.ats.internal.jta.recovery.arjunacore.XARecoveryModule");
|
||||
|
||||
/**
|
||||
* List of expiry scanners. Default:
|
||||
* <ul>
|
||||
* <li>com.arjuna.ats.internal.arjuna.recovery.ExpiredTransactionStatusManagerScanner
|
||||
* </li>
|
||||
* </ul>
|
||||
* Comma-separated list of expiry scanners.
|
||||
*/
|
||||
private List<String> expiryScanners = Arrays.asList(
|
||||
private List<String> expiryScanners = Collections.singletonList(
|
||||
"com.arjuna.ats.internal.arjuna.recovery.ExpiredTransactionStatusManagerScanner");
|
||||
|
||||
public String getLogDir() {
|
||||
|
|
Loading…
Reference in New Issue