Skip to content

Commit a322f5c

Browse files
Robert Höglundartembilan
Robert Höglund
authored andcommitted
Move spring-integration-hazelcast from extensions
* Update javadocs * Upgrade from log4j to log4j2 * Remove unnecessary test deps. * Change from implmementation to api * Remove unneeded test deps. * Fix HZ XSD to be "versionless" * Use `com.google.code.findbugs:annotations` dep to avoid warning from HZ code base
1 parent 040438f commit a322f5c

File tree

83 files changed

+9032
-3
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

83 files changed

+9032
-3
lines changed

build.gradle

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ ext {
5959
commonsNetVersion = '3.8.0'
6060
curatorVersion = '4.3.0'
6161
derbyVersion = '10.14.2.0'
62+
findbugsVersion = '3.0.1'
6263
ftpServerVersion = '1.2.0'
63-
googleJsr305Version = '3.0.2'
6464
greenmailVersion = '2.0.0-alpha-2'
6565
groovyVersion = '3.0.10'
6666
hamcrestVersion = '2.2'
@@ -251,8 +251,8 @@ configure(javaProjects) { subproject ->
251251
}
252252

253253
// JSR-305 only used for non-required meta-annotations
254-
compileOnly "com.google.code.findbugs:jsr305:$googleJsr305Version"
255-
testImplementation "com.google.code.findbugs:jsr305:$googleJsr305Version"
254+
compileOnly "com.google.code.findbugs:annotations:$findbugsVersion"
255+
testImplementation "com.google.code.findbugs:annotations:$findbugsVersion"
256256
testImplementation("org.awaitility:awaitility:$awaitilityVersion") {
257257
exclude group: 'org.hamcrest'
258258
}
@@ -1080,6 +1080,15 @@ project('spring-integration-bom') {
10801080
}
10811081
}
10821082

1083+
1084+
project('spring-integration-hazelcast') {
1085+
description = 'Spring Integration Hazelcast Support'
1086+
dependencies {
1087+
api "com.hazelcast:hazelcast:$hazelcastVersion"
1088+
api project(':spring-integration-core')
1089+
}
1090+
}
1091+
10831092
sonarqube {
10841093
properties {
10851094
property 'sonar.links.homepage', linkHomepage
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
/*
2+
* Copyright 2015-2022 the original author or authors.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
package org.springframework.integration.hazelcast;
18+
19+
/**
20+
* Enumeration of Cache Event Types.
21+
*
22+
* @author Eren Avsarogullari
23+
* @author Artem Bilan
24+
*
25+
* @since 6.0
26+
*
27+
* @see org.springframework.integration.hazelcast.inbound.AbstractHazelcastMessageProducer
28+
*/
29+
public enum CacheEventType {
30+
31+
/**
32+
* The Hazelcast ADDED event.
33+
*/
34+
ADDED,
35+
36+
/**
37+
* The Hazelcast REMOVED event.
38+
*/
39+
REMOVED,
40+
41+
/**
42+
* The Hazelcast UPDATED event.
43+
*/
44+
UPDATED,
45+
46+
/**
47+
* The Hazelcast EVICTED event.
48+
*/
49+
EVICTED,
50+
51+
/**
52+
* The Hazelcast EXPIRED event.
53+
*/
54+
EXPIRED,
55+
56+
/**
57+
* The Hazelcast EVICT_ALL event.
58+
*/
59+
EVICT_ALL,
60+
61+
/**
62+
* The Hazelcast CLEAR_ALL event.
63+
*/
64+
CLEAR_ALL
65+
66+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
/*
2+
* Copyright 2015-2022 the original author or authors.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
package org.springframework.integration.hazelcast;
18+
19+
/**
20+
* Enumeration of Cache Listening Policy Type.
21+
*
22+
* @author Eren Avsarogullari
23+
* @author Artem Bilan
24+
*
25+
* @since 6.0
26+
*
27+
* @see org.springframework.integration.hazelcast.inbound.AbstractHazelcastMessageProducer
28+
*/
29+
public enum CacheListeningPolicyType {
30+
31+
/**
32+
* Only the local Hazelcast node can accept event.
33+
*/
34+
SINGLE,
35+
36+
/**
37+
* All subscribed members can accept event.
38+
*/
39+
ALL
40+
41+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
/*
2+
* Copyright 2015-2022 the original author or authors.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
package org.springframework.integration.hazelcast;
18+
19+
/**
20+
* Enumeration of Hazelcast Cluster Monitor Types.
21+
*
22+
* @author Eren Avsarogullari
23+
* @author Artem Bilan
24+
*
25+
* @since 6.0
26+
*
27+
* @see org.springframework.integration.hazelcast.inbound.HazelcastClusterMonitorMessageProducer
28+
* @see com.hazelcast.core.DistributedObjectListener
29+
* @see com.hazelcast.core.LifecycleListener
30+
*/
31+
public enum ClusterMonitorType {
32+
33+
/**
34+
* The membership listener mode.
35+
*/
36+
MEMBERSHIP,
37+
38+
/**
39+
* The distributed object listener mode.
40+
*/
41+
DISTRIBUTED_OBJECT,
42+
43+
/**
44+
* The migration listener mode.
45+
*/
46+
MIGRATION,
47+
48+
/**
49+
* The listener listener mode.
50+
*/
51+
LIFECYCLE,
52+
53+
/**
54+
* The client listener mode.
55+
*/
56+
CLIENT
57+
58+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
/*
2+
* Copyright 2015-2022 the original author or authors.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
package org.springframework.integration.hazelcast;
18+
19+
/**
20+
* Enumeration of Distributed SQL Iteration Type.
21+
*
22+
* @author Eren Avsarogullari
23+
* @author Artem Bilan
24+
*
25+
* @since 6.0
26+
*
27+
* @see org.springframework.integration.hazelcast.inbound.HazelcastDistributedSQLMessageSource
28+
* @see com.hazelcast.map.IMap
29+
*/
30+
public enum DistributedSQLIterationType {
31+
32+
/**
33+
* The {@link com.hazelcast.map.IMap#entrySet()} to iterate.
34+
*/
35+
ENTRY,
36+
37+
/**
38+
* The {@link com.hazelcast.map.IMap#keySet()} to iterate.
39+
*/
40+
KEY,
41+
42+
/**
43+
* The {@link com.hazelcast.map.IMap#localKeySet()} to iterate.
44+
*/
45+
LOCAL_KEY,
46+
47+
/**
48+
* The {@link com.hazelcast.map.IMap#values()} to iterate.
49+
*/
50+
VALUE
51+
52+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
/*
2+
* Copyright 2015-2022 the original author or authors.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
package org.springframework.integration.hazelcast;
18+
19+
/**
20+
* Hazelcast Message Headers.
21+
*
22+
* @author Eren Avsarogullari
23+
* @author Artem Bilan
24+
*
25+
* @since 6.0
26+
*/
27+
public abstract class HazelcastHeaders {
28+
29+
private static final String PREFIX = "hazelcast_";
30+
31+
/**
32+
* The event type header name.
33+
*/
34+
public static final String EVENT_TYPE = PREFIX + "eventType";
35+
36+
/**
37+
* The member header name.
38+
*/
39+
public static final String MEMBER = PREFIX + "member";
40+
41+
/**
42+
* The cache name header name.
43+
*/
44+
public static final String CACHE_NAME = PREFIX + "cacheName";
45+
46+
/**
47+
* The publishing time header name.
48+
*/
49+
public static final String PUBLISHING_TIME = PREFIX + "publishingTime";
50+
51+
}

0 commit comments

Comments
 (0)