Subversion Repositories SmartDukaan

Rev

Rev 37395 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 37395 Rev 37472
Line 17... Line 17...
17
import com.spice.profitmandi.dao.repository.catalog.ItemRepository;
17
import com.spice.profitmandi.dao.repository.catalog.ItemRepository;
18
import com.spice.profitmandi.service.recharge.RechargeService;
18
import com.spice.profitmandi.service.recharge.RechargeService;
19
import com.spice.profitmandi.service.recharge.provider.ThinkWalnutDigitalRechargeProviderService;
19
import com.spice.profitmandi.service.recharge.provider.ThinkWalnutDigitalRechargeProviderService;
20
 
20
 
21
@Component
21
@Component
-
 
22
/**
-
 
23
 * Reads the two prepaid balances -- SMS credits and the ThinkWalnut recharge wallet --
-
 
24
 * and pushes them into {@link BalanceGauges}.
-
 
25
 *
-
 
26
 * ⚠ NOTHING CALLS THIS. There is no @Scheduled method and no other caller anywhere in
-
 
27
 * the codebase, which is why both gauges read -1 ("not read yet") on every scrape. The
-
 
28
 * micrometer bridge works; the trigger was never written. Either give it a @Scheduled
-
 
29
 * entry in ScheduledSkeleton or delete this and its gauges -- do not leave it half-wired.
-
 
30
 *
-
 
31
 * Formerly NagiosMonitorTasks: the Nagios server and every NRPE daemon are gone, so the
-
 
32
 * name described a transport that no longer exists.
-
 
33
 */
22
public class NagiosMonitorTasks {
34
public class BalanceMonitorTasks {
23
 
35
 
24
	private static final Logger log = LogManager.getLogger(NagiosMonitorTasks.class);
36
	private static final Logger log = LogManager.getLogger(BalanceMonitorTasks.class);
25
 
37
 
26
	@Value("${think.walnut.digital.recharge.transaction.mobile.url}")
38
	@Value("${think.walnut.digital.recharge.transaction.mobile.url}")
27
	private String thinkWalnutDigitalRechargeTransactionMobileUrl;
39
	private String thinkWalnutDigitalRechargeTransactionMobileUrl;
28
 
40
 
29
	@Value("${think.walnut.digital.recharge.transaction.dth.url}")
41
	@Value("${think.walnut.digital.recharge.transaction.dth.url}")