Commit Graph

20 Commits

Author SHA1 Message Date
Olivier Lamy
a4ca9e6671 Splunk: Servers failover
upgrade versions

Conflicts:
	spring-integration-splunk/gradle.properties

upgrade gradle version

revert spring integration upgrade version

Add a feature to be able to declare more than one splunk server.
It's a simple failover mechanism with any pooling.
Before give back the Service instance, the framework just try a getInfo call.
To preserve backward compat this check it's not activated per default but only
if the splunk server instance is marked with testOnBorrow.

Sample:
````xml
  <int-splunk:server id="splunkServer" host="${splunk.server.host}" port="${splunk.server.port}"
                     username="${splunk.server.username}" password="${splunk.server.password}"
                     owner="${splunk.server.owner}" scheme="${splunk.server.scheme}" testOnBorrow="true" />

  <int-splunk:server id="splunkServerBackup" host="localhost" port="9999"
                     username="${splunk.server.username}" password="${splunk.server.password}"
                     owner="${splunk.server.owner}" scheme="${splunk.server.scheme}" testOnBorrow="true" />

  <util:list id="splunkServersList">
    <ref bean="splunkServer" />
    <ref bean="splunkServerBackup" />
  </util:list>

  <bean id="splunkServiceFactory" class="org.springframework.integration.splunk.support.SplunkServiceFactory">
    <constructor-arg ref="splunkServersList"/>
  </bean>

  <int-splunk:inbound-channel-adapter id="splunk-notify-order-status-change-channel"
                                      auto-startup="true"
                                      search=""
                                      splunk-server-ref="splunkServer;splunkServerBackup"
                                      channel="notify-order-status-change-input"
                                      mode="BLOCKING"
                                      init-earliest-time="${splunk.order-status-change.init-earliest-time}"
                                      >
    <int:poller fixed-rate="${splunk.order-status-change.pooling.rate.time}" time-unit="SECONDS"/>
  </int-splunk:inbound-channel-adapter>
````

some changes due to pr comments

Conflicts:
	spring-integration-splunk/gradle.properties

formatting: tabs instead of spaces.....

fix documentation with failover mechanism

formatting

formatting

upgrade versions

some changes due to pr comments

fix javadoc issues

1.1 xsd file

Polishing and upgrading
2014-06-06 13:49:32 +03:00
Spring Buildmaster
9d591b2bcf [artifactory-release] Splunk Next development version 2014-06-02 17:24:04 +03:00
Spring Buildmaster
ddafcaf6dd [artifactory-release] Splunk Release version 1.1.0.M2 2014-06-02 17:24:03 +03:00
Glenn Renfro
cd764f7f2b XD-1170 updted import for MessageHandlingException 2014-06-02 17:24:03 +03:00
Spring Buildmaster
141dec91eb [artifactory-release] Next development version 2014-06-02 17:24:03 +03:00
Spring Buildmaster
c17bb384b6 [artifactory-release] Release version 1.1.0.M1 2014-06-02 17:24:03 +03:00
Glenn Renfro
91918d5599 Uses Spring 4.0 dependencies
Updated the buid version 1.1.0
2014-06-02 17:24:03 +03:00
Gunnar Hillert
80bdf21add INTEXT-70 - Set code coverage plugin for Sonar
* Set the Sonar code coverage plugin explicitly to `jacoco`
2013-05-17 12:01:26 -04:00
Gunnar Hillert
62f6fe2a79 INTEXT-69 - Splunk: XSD not bundled correctly 2013-05-16 10:20:08 -04:00
Gunnar Hillert
1c75139b2d INTEXT-67 - Upgrade to Sonar-Runner
* Upgrade to Gradle 1.6
* Upgrade from Gradle plugin sonar to sonar-runner
* Upgrade Gradle wrapper
* Fix several Group Ids
2013-05-15 23:15:06 -04:00
Spring Buildmaster
339baf2a9f [artifactory-release] Next development version 2013-04-04 06:59:52 -07:00
Spring Buildmaster
ba647f6e18 [artifactory-release] Release version 1.0.0.M1 2013-04-04 06:59:45 -07:00
Damien Dallimore
ad7155aef8 created "index" field 2013-04-04 13:48:41 +07:00
David Turanski
ccadeee0de INTEXT-43 replaced ConnectionFactory with ServiceFactory
* remove trailing spaces from SplunkEventTests
* remove trailing spaces from README.md
2013-02-08 11:51:05 -05:00
David Turanski
c4f7105d49 INTEXT-42 refactored SplunkEvent 2013-02-08 11:51:05 -05:00
David Turanski
2d2baa132a Updated README 2013-02-08 11:51:05 -05:00
David Turanski
b878e1d90f Updated README 2013-02-08 11:51:05 -05:00
David Turanski
43f9246f54 Add writer types to schema for Outbound Adapter and upgraded to Splunk 1.0.0
Update README
2013-02-04 14:14:46 -05:00
Jarred Li
1adcce712e INTEXT-23 - Incorrect enum comparison 2012-10-07 19:57:32 -04:00
Jarred Li
3f167bb28e INTEXT-21 Add Splunk adapter
For reference see: https://jira.springsource.org/browse/INTEXT-21
2012-09-29 15:04:19 -04:00