ymlam
952d8acb7e
Relax requirement of launch_record_id in broaddast request.
There is no meaningful processing of launch_record_id, which
is really just a pass through back to portal.
2 jaren geleden
ymlam
fba1269d2d
Fix bug of missing trailing VoiceCall status updates to portal.
Reason is due to premature terminating postback threads because
the serviceActivityCount is decremented erreously when updating
intermediate job statuses with portal.
Fix is in classifying job status as final or non-final.
As it is, all JobStatus in CommEngine are final; however,
derived classes may have non-final JobStatus.
2 jaren geleden
ymlam
4ab8cd54d1
Fix bug of not terminating all service and postback threads at end of broadcast.
2 jaren geleden
ymlam
9055d74fc3
Fix bug of not updating activity count on exception
2 jaren geleden
ymlam
be2dea5835
Remove broadcast expire feature.
2 jaren geleden
ymlam
e5c0187f3c
Transmit ABORT reason when setting BroadcastState to ABORT
2 jaren geleden
ymlam
e4da5bf0c7
Fix bug of not posting the correct debit for voice calls.
Fixed by decrementing serviceActivityCount only by postJobStatus method.
Also jobs being scheduled are taken into considering when deciding
to advance broadcast state COMPLETED to ALLDONE.
2 jaren geleden
ymlam
f285c75523
Added CSV logging function to Broadcast.
CSV logger name as it appears in log4j.properties is "csv".
2 jaren geleden
ymlam
44e771a8f6
Allow a job to cause broadcast to abort at time posting
Achieved by adding the isBroadcastFatal method to Job class.
2 jaren geleden
ymlam
0364609e68
Re-declare enum JobStatus as an interface so it can be virtually extended by derived Engines
Thie allows for removal of entries from the original enum JobStatus that more
appropriately belong to derivation of CommEngine. Such data complicates
the management of the original JobStateus when adding new CommEngines.
These entries can be declared in a new enums implementing
the JobStatus interface, for each derived CommEngine.
2 jaren geleden
ymlam
f8ee1ad599
Complete backward compatibility which has a bug in commit 6bd4ca1af3
2 jaren geleden
ymlam
6bd4ca1af3
Backward compatible with portal not having daily_start/daily_stop times
2 jaren geleden
ymlam
2a802c659e
Fix bug of at times getting stuck at PAUSING state on reaching daily limit
3 jaren geleden
ymlam
d2f9b87a34
Improved interaction between pause by operator and by clock
3 jaren geleden
ymlam
b26988bc59
Replace daily pause/resume with daily operating hours
3 jaren geleden
ymlam
128aba88ba
Allow BroadcastState transition from PAUSING to CANCELED
3 jaren geleden
ymlam
53bc932e97
Added ability for derived Broadcast class to add to configuration output.
3 jaren geleden
ymlam
f85acef9b3
Separated reschedule function out of postJobStatus() into its own rescheduleJob()
3 jaren geleden
ymlam
abf7b6700e
Better use of 'new JSONObject()'
3 jaren geleden
ymlam
9c8d6cab4d
API to configure daily clock
3 jaren geleden
ymlam
1234de3189
Time of day clock based pause and resume.
Use reason field in Broadcast to record reason for pause, cancel etc.
3 jaren geleden
ymlam
b8d29b99d3
Added daily pause and resume feature.
Improved reponse text to pause and resume commands.
3 jaren geleden
ymlam
2b6ef161c1
User friendly response to PAUSE command.
3 jaren geleden
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 jaren geleden
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 jaren geleden
ymlam
4d95efe3e9
Add Auto Pause feature
3 jaren geleden
Yuk-Ming Lam
f8beed06e9
Convert successCount from int to AtomicInteger
3 jaren geleden
ymlam
28756a94d6
Better exception handling
4 jaren geleden
ymlam
580bed601f
Place readyQueue, scheduledJobs, serviceActivityCount under one single semaphore readyQueue.
4 jaren geleden
ymlam
253c78ab71
Add stateSemaphore to ensure modifications to state value is synchronized.
4 jaren geleden
ymlam
8fd8813afa
Add BroadcastState.ABORTING to fix bug of losing postbacks on abort.
4 jaren geleden
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 jaren geleden
ymlam
37d2438ea5
Fixed <segment> tag placed in wrong part of XML
4 jaren geleden
ymlam
4c882c8134
Add capability to return SUCCESS count and SMS specific segment count
in broadcast status message from CommEngine to portal.
4 jaren geleden
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 jaren geleden
Yuk-Ming Lam
6c29b820ae
Improved logging.
4 jaren geleden
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 jaren geleden
Yuk-Ming Lam
4e0b471b8f
Unified getServiceThreadPoolSize and getPostbackSenderPoolSize.
4 jaren geleden
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 jaren geleden
Yuk-Ming Lam
f70c901424
Fixed bugs with 'resume', 'cancel', 'pause', etc.
4 jaren geleden
Yuk-Ming Lam
0b260d7e58
Code cleanup.
4 jaren geleden
Yuk-Ming Lam
7296a77eac
Fixed bug in job managements and broadcast status
4 jaren geleden
Yuk-Ming Lam
0b5c1548af
Fix bug of failing to requeue on 0 requeue delay.
4 jaren geleden
Yuk-Ming Lam
0da88a02c7
Add support for SMS provider property 'service_threadpool_size'.
4 jaren geleden
Yuk-Ming Lam
e6e2ec8ed8
Fix bug of not setting the changeStateTime when transitioning to RUNNING
state.
5 jaren geleden
ymlam
56002b3bee
Pause and resume
6 jaren geleden
ymlam
cc1a5c174e
Fix bug in not properly destroying service and postback threads.
Also fix bug of not doing CANCEL properly.
6 jaren geleden
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 jaren geleden
ymlam
c08ba9f57c
Moved postback capability from CommEngine to Broadcast.
Tested to work correctly with a 1-recipient SMS broadcast.
Need more testing.
6 jaren geleden
ymlam
2c7ba134d8
Remove unused startProcessing method.
6 jaren geleden