Yuk-Ming Lam
f8beed06e9
Convert successCount from int to AtomicInteger
3 лет назад
ymlam
28756a94d6
Better exception handling
4 лет назад
ymlam
580bed601f
Place readyQueue, scheduledJobs, serviceActivityCount under one single semaphore readyQueue.
4 лет назад
ymlam
253c78ab71
Add stateSemaphore to ensure modifications to state value is synchronized.
4 лет назад
ymlam
8fd8813afa
Add BroadcastState.ABORTING to fix bug of losing postbacks on abort.
4 лет назад
ymlam
89c0ab716e
Fix bug of not timing viewing period of dead broadcasts from time of final BroadcastStatus.
4 лет назад
ymlam
650e28ab79
Expanded JobStatus with PAYMENT_REQUIRED.
4 лет назад
ymlam
fe430891ac
Give derived class chance to wait for service activity to end
before progressing to COMPLETED state and issue state change
notification to portal.
Also make state change report to be a single line for ease
of grep'ing log file.
4 лет назад
ymlam
428ac6bfe7
Remove unnecessary comment
4 лет назад
ymlam
37d2438ea5
Fixed <segment> tag placed in wrong part of XML
4 лет назад
ymlam
4c882c8134
Add capability to return SUCCESS count and SMS specific segment count
in broadcast status message from CommEngine to portal.
4 лет назад
Yuk-Ming Lam
7dd28add82
Logging change.
4 лет назад
Yuk-Ming Lam
3d0b89a5bf
Purging stale broadcasts moved to getStatus
rather than periodically on schedule. This change has
no impact on user experience, and has improved logic,
and slight improvement in performance.
Also made all changes to the broadcasts structure under
synchronized control.
4 лет назад
Yuk-Ming Lam
a5152269a6
Ability to allow Broadcast descendent classes to access properties.
The common portion of the CommEngine properties file, are made
available to Broadcasts.
4 лет назад
Yuk-Ming Lam
6c29b820ae
Improved logging.
4 лет назад
Yuk-Ming Lam
25deaade44
Memory leak, user display improvement.
Broadcast state ALLDONE added to mark the event of completing postback,
and when all threads are to be terminated.
CommEngine report of a broadcast adds service times,
and number of transactions.
4 лет назад
Yuk-Ming Lam
4e0b471b8f
Unified getServiceThreadPoolSize and getPostbackSenderPoolSize.
4 лет назад
Yuk-Ming Lam
d9513d2486
Discourage use of getServiceThreadPoolSize method.
Broadcasts should determine their own service thread pool size.
4 лет назад
Yuk-Ming Lam
4fbbfc0ef0
Let Broadcast class to generate HTTP response to pause, and resume.
4 лет назад
Yuk-Ming Lam
2cf2164548
Fix bug that service thread may get stuck on cancel.
This would lead to memory leak when SMSEngine is shutdown.
4 лет назад
Yuk-Ming Lam
f70c901424
Fixed bugs with 'resume', 'cancel', 'pause', etc.
4 лет назад
Yuk-Ming Lam
0b260d7e58
Code cleanup.
4 лет назад
Yuk-Ming Lam
7296a77eac
Fixed bug in job managements and broadcast status
4 лет назад
Yuk-Ming Lam
0b5c1548af
Fix bug of failing to requeue on 0 requeue delay.
4 лет назад
Yuk-Ming Lam
f085828d98
Added 'SPAM' JobSttus to support NumberWhole
returning 422 HTTP status to indicate message is spammed.
4 лет назад
Yuk-Ming Lam
0da88a02c7
Add support for SMS provider property 'service_threadpool_size'.
4 лет назад
Yuk-Ming Lam
27cf553ffd
Added job statuses in support of SMS provider NumberWholesale.
5 лет назад
Yuk-Ming Lam
3094d68f20
Relax visibility to public.
5 лет назад
Yuk-Ming Lam
e18873052d
Change visibility of myLogger from private to protected
5 лет назад
Yuk-Ming Lam
e6e2ec8ed8
Fix bug of not setting the changeStateTime when transitioning to RUNNING
state.
5 лет назад
ymlam
56002b3bee
Pause and resume
6 лет назад
ymlam
cc1a5c174e
Fix bug in not properly destroying service and postback threads.
Also fix bug of not doing CANCEL properly.
6 лет назад
ymlam
78992579de
Use completedJobCount and totalJob to help keeping track of job counts in
various states. Delay closing HttpClient until all postback threads have
exited.
6 лет назад
ymlam
c08ba9f57c
Moved postback capability from CommEngine to Broadcast.
Tested to work correctly with a 1-recipient SMS broadcast.
Need more testing.
6 лет назад
ymlam
bf507f23b4
Activate PoolingHttpClientConnectionManager for use in postback.
6 лет назад
ymlam
2c7ba134d8
Remove unused startProcessing method.
6 лет назад
ymlam
1a92409c15
Removed unused and already-commented out do_post_good method.
6 лет назад
ymlam
8d390402d4
More accurate print statement.
6 лет назад
ymlam
396dca45be
Add compatibility with re-maven era convention of log4php filepaths.
6 лет назад
ymlam
2ac4151c04
Use PoolingHttpClientConnectionManager to handle postback persistent connections
to Portal.
6 лет назад
ymlam
5f8b64843b
More debugging statement using System.out.println
6 лет назад
ymlam
224eadefd4
Move to HttpClient-4.5.2 and do not check SSL certificate when
posting back to portal or cluster.
6 лет назад
yiu
e0e56ddf97
CommEngine temp changes and maven repo
6 лет назад
ymlam
705aedcac9
Change context name/value pairs.
6 лет назад
Yiu Leung
8b5e6c2be5
maven changes
6 лет назад
ymlam
e56690259a
Update
6 лет назад
ymlam
022cb3352a
Correct sometimes mis-counting completed jobs.
7 лет назад
ymlam
dad895d0ac
Do not requeue report as this may lead to a dead lock. It should retry by itself.
7 лет назад
ymlam
1ed5321d14
Change to require the service threads to wait for space in the postQueue in order to post reports, instead of dropping reports. Better diagnostic logging to help identify threads' life and death events.
7 лет назад
ymlam
65c1d3ddde
Remove the offending 'synchronized' modifier on postJobStatus method which is not compatible with the scheme to require the service threads to wait for space in the postQueue in order to post reports. Without removing this modifier, the CommEngine is likely to freeze on large broadcasts.
7 лет назад