ymlam
d2f9b87a34
Improved interaction between pause by operator and by clock
3 년 전
ymlam
b26988bc59
Replace daily pause/resume with daily operating hours
3 년 전
ymlam
128aba88ba
Allow BroadcastState transition from PAUSING to CANCELED
3 년 전
ymlam
53bc932e97
Added ability for derived Broadcast class to add to configuration output.
3 년 전
ymlam
f85acef9b3
Separated reschedule function out of postJobStatus() into its own rescheduleJob()
3 년 전
ymlam
abf7b6700e
Better use of 'new JSONObject()'
3 년 전
ymlam
9c8d6cab4d
API to configure daily clock
3 년 전
ymlam
1234de3189
Time of day clock based pause and resume.
Use reason field in Broadcast to record reason for pause, cancel etc.
3 년 전
ymlam
b8d29b99d3
Added daily pause and resume feature.
Improved reponse text to pause and resume commands.
3 년 전
ymlam
2b6ef161c1
User friendly response to PAUSE command.
3 년 전
ymlam
053483a919
Fix bug of not stopping immediately on CANCEL while PAUSED.
The service threads do not terminate immediately, but, instead
each service thread picks up one more job before terminating,
causing servicing more jobs which are not reported back to portal.
3 년 전
ymlam
7b4d88b9f8
Fix bug of sometimes not terminating broadcast when paused with large number of service threads.
This happens when all remaining jobs are being serviced by
service threads when PAUSE is initiated. Similarly fixed
for CANCEL.
3 년 전
ymlam
4d95efe3e9
Add Auto Pause feature
3 년 전
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
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
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
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
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
0da88a02c7
Add support for SMS provider property 'service_threadpool_size'.
4 년 전
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
2c7ba134d8
Remove unused startProcessing method.
6 년 전
Yiu Leung
8b5e6c2be5
maven changes
6 년 전
ymlam
e56690259a
Update
6 년 전
ymlam
022cb3352a
Correct sometimes mis-counting completed jobs.
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 년 전
ymlam
7daa802a25
Move POST processing to Broadcast.doPost method.
9 년 전
ymlam
a92b947160
Added broadcast state 'EXPIRED'.
10 년 전
ymlam
1853a905e5
Improved job counting and fixed bug of non-matching time units involved in rescheduling.
11 년 전
ymlam
566fa78ef0
Added attribute sleepBetweenJobs, time in milliseconds, for the service threads to sleep between consecutive jobs (or more exact batches of jobs).
11 년 전
ymlam
83b9ecefad
Change HALT to PAUSE
Added syncrhonized qualifier to 2 methods to guard against simultaneous update by 2 threads.
Completed CANCEL processing.
11 년 전
ymlam
7ea29e35fc
Add logging of stack trace of unexpected Throwable.
11 년 전
ymlam
d2179500c7
Added logging.
13 년 전
ymlam
100195bec2
More correctly named method getInitializedServiceProvider as getInitializedServiceProviderPeer.
13 년 전
ymlam
0b1be67bbc
Again separate out EngineException from any Throwable.
13 년 전