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
c29495bf26
Receive daily_pause and daily_resume in broadcast request
преди 3 години
ymlam
abf7b6700e
Better use of 'new JSONObject()'
преди 3 години
ymlam
9c8d6cab4d
API to configure daily clock
преди 3 години
ymlam
7c5e990de6
Fix bug of not sleeping according to calcaulated sleep time.
преди 3 години
ymlam
b4ed4d2f80
Add MSG_TOO_LONG JobStatus
преди 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
81940e001e
Added more JObStatus to support SMS provider Bandwidth
преди 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
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 години