|
275 | 275 | </int:interceptors> |
276 | 276 | </int:channel> |
277 | 277 |
|
| 278 | + <int:channel id="channel.UpdateUrls" datatype="org.woehlke.twitterwall.backend.mq.tasks.TaskMessage"> |
| 279 | + <int:interceptors> |
| 280 | + <int:wire-tap channel="logger"/> |
| 281 | + </int:interceptors> |
| 282 | + </int:channel> |
| 283 | + |
| 284 | + <int:channel id="channel.async.UpdateUrls" datatype="org.woehlke.twitterwall.backend.mq.tasks.TaskMessage"> |
| 285 | + <int:interceptors> |
| 286 | + <int:wire-tap channel="logger"/> |
| 287 | + </int:interceptors> |
| 288 | + </int:channel> |
| 289 | + |
278 | 290 |
|
279 | 291 | <int:router id="router.TaskStart" input-channel="channel.TaskStart" expression="payload.taskType"> |
280 | 292 | <int:mapping value="UPDATE_TWEETS" channel="channel.UpdateTweets"/> |
281 | 293 | <int:mapping value="UPDATE_USERS" channel="channel.UpdateUser"/> |
282 | 294 | <int:mapping value="UPDATE_MENTIONS_FOR_USERS" channel="channel.UpdateMentionsForUsers"/> |
| 295 | + <int:mapping value="UPDATE_URLS" channel="channel.UpdateUrls"/> |
283 | 296 | <int:mapping value="FETCH_TWEETS_FROM_SEARCH" channel="channel.FetchTweetsFromSearch"/> |
284 | 297 | <int:mapping value="FETCH_USERS_FROM_LIST" channel="channel.FetchUsersFromList"/> |
285 | 298 | <int:mapping value="FETCH_FOLLOWER" channel="channel.FetchFollower"/> |
|
288 | 301 | <int:mapping value="CREATE_TESTDATA_TWEETS" channel="channel.CreateTestDataTweets"/> |
289 | 302 | <int:mapping value="CREATE_IMPRINT_USER" channel="channel.CreateImprintUser"/> |
290 | 303 | <int:mapping value="REMOVE_OLD_DATA_FROM_STORAGE" channel="channel.RemoveOldDataFromStorage"/> |
| 304 | + <int:mapping value="GARBAGE_COLLECTION" channel="channel.GarbageCollection"/> |
291 | 305 | <int:mapping value="FETCH_HOME_TIMELINE" channel="channel.FetchHomeTimeline"/> |
292 | 306 | <int:mapping value="FETCH_USER_TIMELINE" channel="channel.FetchUserTimeline"/> |
293 | 307 | <int:mapping value="FETCH_MENTIONS" channel="channel.FetchMentions"/> |
|
301 | 315 | <int:mapping value="UPDATE_TWEETS" channel="channel.async.UpdateTweets"/> |
302 | 316 | <int:mapping value="UPDATE_USERS" channel="channel.async.UpdateUser"/> |
303 | 317 | <int:mapping value="UPDATE_MENTIONS_FOR_USERS" channel="channel.async.UpdateMentionsForUsers"/> |
| 318 | + <int:mapping value="UPDATE_URLS" channel="channel.async.UpdateUrls"/> |
304 | 319 | <int:mapping value="FETCH_TWEETS_FROM_SEARCH" channel="channel.async.FetchTweetsFromSearch"/> |
305 | 320 | <int:mapping value="FETCH_USERS_FROM_LIST" channel="channel.async.FetchUsersFromList"/> |
306 | 321 | <int:mapping value="FETCH_FOLLOWER" channel="channel.async.FetchFollower"/> |
|
309 | 324 | <int:mapping value="CREATE_TESTDATA_TWEETS" channel="channel.async.CreateTestDataTweets"/> |
310 | 325 | <int:mapping value="CREATE_IMPRINT_USER" channel="channel.async.CreateImprintUser"/> |
311 | 326 | <int:mapping value="REMOVE_OLD_DATA_FROM_STORAGE" channel="channel.async.RemoveOldDataFromStorage"/> |
| 327 | + <int:mapping value="GARBAGE_COLLECTION" channel="channel.async.GarbageCollection"/> |
312 | 328 | <int:mapping value="FETCH_HOME_TIMELINE" channel="channel.async.FetchHomeTimeline"/> |
313 | 329 | <int:mapping value="FETCH_USER_TIMELINE" channel="channel.async.FetchUserTimeline"/> |
314 | 330 | <int:mapping value="FETCH_MENTIONS" channel="channel.async.FetchMentions"/> |
|
677 | 693 |
|
678 | 694 |
|
679 | 695 |
|
| 696 | + <int:chain id="chain.async.UpdateUrls" input-channel="channel.async.UpdateUrls"> |
| 697 | + <int:splitter |
| 698 | + id="splitter.async.UpdateUrls" |
| 699 | + ref="mqUpdateUrls" |
| 700 | + method="splitUrlMessage" /> |
| 701 | + <int:service-activator |
| 702 | + id="fetch.async.UpdateUrls" |
| 703 | + ref="mqUrFetcher" |
| 704 | + method="fetchUrl" /> |
| 705 | + <int:service-activator |
| 706 | + id="transform.async.UpdateUrls" |
| 707 | + ref="mqUrlTransformator" |
| 708 | + method="transformUrl" /> |
| 709 | + <int:service-activator |
| 710 | + id="persist.async.UpdateUrls" |
| 711 | + ref="mqUrlPersistor" |
| 712 | + method="persistUrl" /> |
| 713 | + <int:aggregator |
| 714 | + id="aggregator.async.UpdateUrls" |
| 715 | + message-store="myMessageStore" |
| 716 | + release-strategy="releaserSimpleSequenceSizeReleaseStrategy" /> |
| 717 | + <int:service-activator |
| 718 | + id="finish.async.UpdateUrls" |
| 719 | + ref="mqUrlFinisher" |
| 720 | + method="finishAsnyc" /> |
| 721 | + </int:chain> |
| 722 | + |
| 723 | + <int:chain id="chain.UpdateUrls" input-channel="channel.UpdateUrls"> |
| 724 | + <int:splitter |
| 725 | + id="splitter.UpdateUrls" |
| 726 | + ref="mqUpdateUrls" |
| 727 | + method="splitUrlMessage" /> |
| 728 | + <int:service-activator |
| 729 | + id="fetch.UpdateUrls" |
| 730 | + ref="mqUrFetcher" |
| 731 | + method="fetchUrl" /> |
| 732 | + <int:service-activator |
| 733 | + id="transform.UpdateUrls" |
| 734 | + ref="mqUrlTransformator" |
| 735 | + method="transformUrl" /> |
| 736 | + <int:service-activator |
| 737 | + id="persist.UpdateUrls" |
| 738 | + ref="mqUrlPersistor" |
| 739 | + method="persistUrl" /> |
| 740 | + <int:aggregator |
| 741 | + id="aggregator.UpdateUrls" |
| 742 | + message-store="myMessageStore" |
| 743 | + release-strategy="releaserSimpleSequenceSizeReleaseStrategy" /> |
| 744 | + <int:service-activator |
| 745 | + id="finish.UpdateUrls" |
| 746 | + ref="mqUrlFinisher" |
| 747 | + method="finish" /> |
| 748 | + </int:chain> |
| 749 | + |
| 750 | + |
| 751 | + |
680 | 752 | <int:chain id="chain.async.UpdateTweets" input-channel="channel.async.UpdateTweets"> |
681 | 753 | <int:splitter |
682 | 754 | id="splitter.async.UpdateTweets" |
|
1206 | 1278 | method="finish" /> |
1207 | 1279 | </int:chain> |
1208 | 1280 |
|
1209 | | - <!-- Fire and Forget Chains --> |
1210 | 1281 |
|
1211 | 1282 |
|
| 1283 | + <int:chain id="chain.async.GarbageCollection" input-channel="channel.async.GarbageCollection"> |
| 1284 | + <int:splitter |
| 1285 | + id="splitter.async.GarbageCollection" |
| 1286 | + ref="mqFindTweetsToRemoveSplitter" |
| 1287 | + method="splitTweetMessage" /> |
| 1288 | + <int:aggregator |
| 1289 | + id="aggregator.async.GarbageCollection" |
| 1290 | + message-store="myMessageStore" |
| 1291 | + release-strategy="releaserSimpleSequenceSizeReleaseStrategy" /> |
| 1292 | + <int:service-activator |
| 1293 | + id="finish.async.GarbageCollection" |
| 1294 | + ref="mqTweetFinisher" |
| 1295 | + method="finishAsnyc" /> |
| 1296 | + </int:chain> |
| 1297 | + |
| 1298 | + <int:chain id="chain.GarbageCollection" input-channel="channel.GarbageCollection"> |
| 1299 | + <int:splitter |
| 1300 | + id="splitter.GarbageCollection" |
| 1301 | + ref="mqFindTweetsToRemoveSplitter" |
| 1302 | + method="splitTweetMessage" /> |
| 1303 | + <int:aggregator |
| 1304 | + id="aggregator.GarbageCollection" |
| 1305 | + message-store="myMessageStore" |
| 1306 | + release-strategy="releaserSimpleSequenceSizeReleaseStrategy" /> |
| 1307 | + <int:service-activator |
| 1308 | + id="finish.GarbageCollection" |
| 1309 | + ref="mqTweetFinisher" |
| 1310 | + method="finish" /> |
| 1311 | + </int:chain> |
| 1312 | + |
| 1313 | + |
| 1314 | + <!-- Fire and Forget Chains --> |
| 1315 | + |
1212 | 1316 | <!-- |
1213 | 1317 | <int:chain id="fetchUserlistOwnersFireAndForgetChain" input-channel="fetchUserlistOwnersFireAndForgetChannel"> |
1214 | 1318 | <int:splitter |
|
0 commit comments