<?xml version="1.0" encoding="UTF-8"?>
<FlowConfiguration>
	<id>reload</id>
	<name>Prepare  and publish</name>
	<description>Create overviews, retile the image and publish on GeoServer</description>
	
	<corePoolSize>5</corePoolSize>
	<maximumPoolSize>30</maximumPoolSize>
	<keepAliveTime>1500</keepAliveTime>
	<workQueueSize>100</workQueueSize>
	
	<autorun>true</autorun>
	
	<EventGeneratorConfiguration>
		<wildCard>*.grb</wildCard>
		<watchDirectory>reload/in/</watchDirectory>
		<osType>OS_UNDEFINED</osType>
		<eventType>FILE_ADDED</eventType>
		<serviceID>fsEventGeneratorService</serviceID>
	</EventGeneratorConfiguration>
	<EventConsumerConfiguration>
		
		<listenerId>Logger</listenerId>
		<listenerId>Cumulator</listenerId>

		<performBackup>false</performBackup>
		<preserveInput>false</preserveInput>

		<GeoServerReloadConfiguration>
			<serviceID>GeoServerReloadService</serviceID>
			<id>GeoServerReloadAction</id>
			<name>GeoServerReloadAction</name>
			<description>GeoServerReload</description>

		    <listenerId>Logger</listenerId>
			<listenerId>Cumulator</listenerId>
			<listenerId>Status</listenerId>
			
			<dirty>false</dirty>
			<failIgnored>false</failIgnored>
		  
			<geoserverList>GeoServerList.xml</geoserverList>

			<executorSize>10</executorSize>
			
		</GeoServerReloadConfiguration>
		
	</EventConsumerConfiguration>
	<ListenerConfigurations>
		<LoggingProgressListener>
			<serviceID>loggingListenerService</serviceID>
			<id>Logger</id>
			<loggerName>it.geosolutions.geobatch</loggerName>
		</LoggingProgressListener>
		<CumulatingProgressListener>
			<serviceID>cumulatingListenerService</serviceID>
			<id>Cumulator</id>
		</CumulatingProgressListener>
		<StatusProgressListener>
			<serviceID>statusListenerService</serviceID>
			<id>Status</id>
		</StatusProgressListener>
	</ListenerConfigurations>
</FlowConfiguration>
