mirror of
				https://github.com/spring-projects/spring-data-elasticsearch.git
				synced 2025-10-30 22:28:47 +00:00 
			
		
		
		
	DATAES-6 flag name changed to purge-data-on-shutdown from data
This commit is contained in:
		
							parent
							
								
									73fea2ba06
								
							
						
					
					
						commit
						db5d9b8fc7
					
				| @ -63,7 +63,7 @@ public class NodeClientFactoryBean implements FactoryBean<NodeClient>, Initializ | ||||
| 
 | ||||
|     @Override | ||||
|     public void afterPropertiesSet() throws Exception { | ||||
|         nodeClient = (NodeClient) nodeBuilder().local(this.local).data(this.purgeDataOnShutdown).node().client(); | ||||
|         nodeClient = (NodeClient) nodeBuilder().local(this.local).data(!this.purgeDataOnShutdown).node().client(); | ||||
|     } | ||||
| 
 | ||||
|     public void setLocal(boolean local) { | ||||
|  | ||||
| @ -45,7 +45,7 @@ | ||||
|             <xsd:complexContent> | ||||
|                 <xsd:extension base="beans:identifiedType"> | ||||
|                     <xsd:attribute name="local" type="xsd:boolean" default="false"/> | ||||
|                     <xsd:attribute name="purge-data-on-shutdown" type="xsd:boolean" default="false"/> | ||||
|                     <xsd:attribute name="purge-data-on-shutdown" type="xsd:boolean" default="true"/> | ||||
|                 </xsd:extension> | ||||
|             </xsd:complexContent> | ||||
|         </xsd:complexType> | ||||
|  | ||||
| @ -5,6 +5,6 @@ | ||||
|        xsi:schemaLocation="http://www.springframework.org/schema/data/elasticsearch http://www.springframework.org/schema/data/elasticsearch/spring-elasticsearch.xsd | ||||
| 		http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd"> | ||||
| 
 | ||||
|     <elasticsearch:node-client id="client" local="true" purge-data-on-shutdown="false" /> | ||||
|     <elasticsearch:node-client id="client" local="true" purge-data-on-shutdown="true" /> | ||||
| 
 | ||||
| </beans> | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user