Skip navigation links
A B C D E F G L O P R S T U W 

A

ACK_FREEZE_REQUEST - Static variable in class balance.BalanceManager
 
ACK_FREEZE_REQUEST - Static variable in class balance.BalanceManager
 
ackFreezeRequest(long) - Method in class cluster.PubSubPublisher
 
ackFreezeRequest(long) - Method in class cluster.PubSubPublisher
 

B

balance - package balance
 
BALANCE_FIELD - Static variable in class balance.LeaseDTO
Redis cluster balance field constant key.
BALANCE_FIELD - Static variable in class balance.LeaseDTO
Redis cluster balance field constant key.
BALANCE_FREEZE_CHANNEL - Static variable in class balance.BalanceManager
 
BALANCE_FREEZE_CHANNEL - Static variable in class balance.BalanceManager
 
BALANCE_SYNC_CHANNEL - Static variable in class balance.BalanceManager
 
BALANCE_SYNC_CHANNEL - Static variable in class balance.BalanceManager
 
BalanceFreezer - Interface in balance
Interface which will be used in SBC for account freeze and unfreeze tasks.
BalanceFreezer - Interface in balance
Interface which will be used in SBC for account freeze and unfreeze tasks.
BalanceManager - Class in balance
Manages balance information for all clients presents in mysql BalanceManager.CLIENT_BALANCE_TABLE table.
BalanceManager - Class in balance
Manages balance information for all clients presents in mysql BalanceManager.CLIENT_BALANCE_TABLE table.
BalanceManager(String, String, int, String) - Constructor for class balance.BalanceManager
Create an instance of BalanceManager.
BalanceManager(String, ClusterObserver) - Constructor for class balance.BalanceManager
Create an instance of BalanceManager.
BalanceManager(String, String, int, String) - Constructor for class balance.BalanceManager
Create an instance of BalanceManager.
BalanceManager(String, ClusterObserver) - Constructor for class balance.BalanceManager
Create an instance of BalanceManager.

C

CLIENT_BALANCE_TABLE - Static variable in class balance.BalanceManager
Mysql table name where balance information can be found
CLIENT_BALANCE_TABLE - Static variable in class balance.BalanceManager
Mysql table name where balance information can be found
cluster - package cluster
 

D

decreaseLeaseAmount(double) - Method in class balance.LeaseDTO
Extra amount left at the end of the call is added to the lease (make sure to provide +ve value).
decreaseLeaseAmount(double) - Method in class balance.LeaseDTO
Extra amount left at the end of the call is added to the lease (make sure to provide +ve value).
DisplayFormat - Class in util
 
DisplayFormat - Class in util
 
DisplayFormat() - Constructor for class util.DisplayFormat
 
DisplayFormat() - Constructor for class util.DisplayFormat
 

E

executeLuaScript(String, JedisCluster, String) - Method in class balance.LeaseDTO
Method to execute loaded lua script in the Redis cluster
executeLuaScript(String, JedisCluster, String) - Method in class balance.LeaseDTO
Method to execute loaded lua script in the Redis cluster

F

FREEZE_COMPLETE - Static variable in class balance.BalanceManager
 
FREEZE_COMPLETE - Static variable in class balance.BalanceManager
 
FREEZE_REQUEST - Static variable in class balance.BalanceManager
 
FREEZE_REQUEST - Static variable in class balance.BalanceManager
 
Functions - Class in util
 
Functions - Class in util
 
Functions() - Constructor for class util.Functions
 
Functions() - Constructor for class util.Functions
 

G

getAccountID() - Method in class balance.LeaseDTO
 
getAccountID() - Method in class balance.LeaseDTO
 
getAvailableLocalBalance() - Method in class balance.LeaseDTO
 
getAvailableLocalBalance() - Method in class balance.LeaseDTO
 
getBalanceFreezer() - Method in class balance.BalanceManager
 
getBalanceFreezer() - Method in class balance.BalanceManager
 
getCallerLocation() - Static method in class util.Functions
 
getCallerLocation() - Static method in class util.Functions
 
getClusterObserver() - Method in class balance.BalanceManager
getClusterObserver() - Method in class balance.BalanceManager
getDefaultDecimalPoint() - Static method in class util.DisplayFormat
 
getDefaultDecimalPoint() - Static method in class util.DisplayFormat
 
getDefaultLeaseChunkAmount() - Method in class balance.BalanceManager
 
getDefaultLeaseChunkAmount() - Method in class balance.BalanceManager
 
getIdentifier() - Method in class balance.BalanceManager
 
getIdentifier() - Method in class balance.BalanceManager
 
getLease(long, double) - Method in class balance.BalanceManager
Try to get a lease from this account balance.
getLease(long, double) - Method in class balance.BalanceManager
Try to get a lease from this account balance.
getLease(double) - Method in class balance.LeaseDTO
Try to get a lease from this account balance.
getLease(double) - Method in class balance.LeaseDTO
Try to get a lease from this account balance.
getPercentageToRelease() - Method in class balance.BalanceManager
 
getPercentageToRelease() - Method in class balance.BalanceManager
 
getPubSubPublisher() - Method in class balance.BalanceManager
 
getPubSubPublisher() - Method in class balance.BalanceManager
 
getRoundedDecimal(double) - Static method in class util.DisplayFormat
 
getRoundedDecimal(double, int) - Static method in class util.DisplayFormat
 
getRoundedDecimal(double) - Static method in class util.DisplayFormat
 
getRoundedDecimal(double, int) - Static method in class util.DisplayFormat
 
getStackTrace() - Static method in class util.Functions
 
getStackTrace() - Static method in class util.Functions
 
getThresholdToReleaseFullAmount() - Method in class balance.BalanceManager
 
getThresholdToReleaseFullAmount() - Method in class balance.BalanceManager
 

L

LEASE_EMPTY_STATUS - Static variable in class balance.BalanceManager
 
LEASE_EMPTY_STATUS - Static variable in class balance.BalanceManager
 
LeaseDTO - Class in balance
This class is responsible for caching balance, taking advanced loan from mysql, giving lease when needed, syncing the balance information between mysql and redis cluster
LeaseDTO - Class in balance
This class is responsible for caching balance, taking advanced loan from mysql, giving lease when needed, syncing the balance information between mysql and redis cluster
LeaseDTO(long, BalanceManager) - Constructor for class balance.LeaseDTO
Create a LeaseDTO instance for the given account id
LeaseDTO(long, BalanceManager) - Constructor for class balance.LeaseDTO
Create a LeaseDTO instance for the given account id

O

onAccFreeze(long) - Method in interface balance.BalanceFreezer
 
onAccFreeze(long) - Method in interface balance.BalanceFreezer
 
onAccUnfreeze(long) - Method in interface balance.BalanceFreezer
 
onAccUnfreeze(long) - Method in interface balance.BalanceFreezer
 
onMessage(String, String) - Method in class cluster.PubSubSubscriber
 
onMessage(String, String) - Method in class cluster.PubSubSubscriber
 
onProcessShutdown() - Method in class balance.BalanceManager
We have taken advanced amount from redis cluster, so When system is getting shut down, all the available cached balance should be returned to redis, otherwise some money will be lost.
onProcessShutdown() - Method in class balance.BalanceManager
We have taken advanced amount from redis cluster, so When system is getting shut down, all the available cached balance should be returned to redis, otherwise some money will be lost.
onSubscribe(String, int) - Method in class cluster.PubSubSubscriber
 
onSubscribe(String, int) - Method in class cluster.PubSubSubscriber
 
onUnsubscribe(String, int) - Method in class cluster.PubSubSubscriber
 
onUnsubscribe(String, int) - Method in class cluster.PubSubSubscriber
 

P

processAccFreezeRequest(long) - Method in class balance.BalanceManager
When a freeze request is received from mitigator this method will be called.
processAccFreezeRequest(long) - Method in class balance.BalanceManager
When a freeze request is received from mitigator this method will be called.
processAccUnfreezeRequest(long) - Method in class balance.BalanceManager
When an unfreeze request is received from mitigator this method will be called.
processAccUnfreezeRequest(long) - Method in class balance.BalanceManager
When an unfreeze request is received from mitigator this method will be called.
publishCompletedFreeze(long) - Method in class cluster.PubSubPublisher
 
publishCompletedFreeze(long) - Method in class cluster.PubSubPublisher
 
publishCompletedUnfreeze(long) - Method in class cluster.PubSubPublisher
 
publishCompletedUnfreeze(long) - Method in class cluster.PubSubPublisher
 
publishEmptyLeaseStatus(long) - Method in class cluster.PubSubPublisher
 
publishEmptyLeaseStatus(long) - Method in class cluster.PubSubPublisher
 
PubSubListener - Class in cluster
Listener Thread to subscribe to the channels needed for communication in Redis cluster
PubSubListener - Class in cluster
Listener Thread to subscribe to the channels needed for communication in Redis cluster
PubSubListener(String, JedisCluster, PubSubSubscriber, String[]) - Constructor for class cluster.PubSubListener
 
PubSubListener(String, JedisCluster, PubSubSubscriber, String[]) - Constructor for class cluster.PubSubListener
 
PubSubPublisher - Class in cluster
Publisher class to publish messages in Redis cluster pubsub
PubSubPublisher - Class in cluster
Publisher class to publish messages in Redis cluster pubsub
PubSubPublisher(String, JedisCluster) - Constructor for class cluster.PubSubPublisher
 
PubSubPublisher(String, JedisCluster) - Constructor for class cluster.PubSubPublisher
 
PubSubSubscriber - Class in cluster
Subscriber class to subscribe and listen to messages in Redis cluster pubsub
PubSubSubscriber - Class in cluster
Subscriber class to subscribe and listen to messages in Redis cluster pubsub
PubSubSubscriber(BalanceManager) - Constructor for class cluster.PubSubSubscriber
 
PubSubSubscriber(BalanceManager) - Constructor for class cluster.PubSubSubscriber
 

R

readFromDb(long) - Method in class balance.BalanceManager
If the given accountId is not present in redis then it will be loaded from mysql database and be saved in redis cluster.
readFromDb(long) - Method in class balance.BalanceManager
If the given accountId is not present in redis then it will be loaded from mysql database and be saved in redis cluster.
readResourceFile(String) - Static method in class util.Functions
Read a text resource file.
readResourceFile(String) - Static method in class util.Functions
Read a text resource file.
returnAvailableBalancePercentage(double) - Method in class balance.LeaseDTO
A percentage of available balance for this account will be returned to redis cluster when this method is called.
returnAvailableBalancePercentage(double) - Method in class balance.LeaseDTO
A percentage of available balance for this account will be returned to redis cluster when this method is called.
returnLease(long, double) - Method in class balance.BalanceManager
Extra amount left at the end of the call is added to the lease (make sure to provide +ve value).
returnLease(long, double) - Method in class balance.BalanceManager
Extra amount left at the end of the call is added to the lease (make sure to provide +ve value).
returnLeaseOnRequest(long) - Method in class balance.BalanceManager
In case the balance of an account gets exhausted, balance manager will broadcast an empty status to all BMs.
returnLeaseOnRequest(long) - Method in class balance.BalanceManager
In case the balance of an account gets exhausted, balance manager will broadcast an empty status to all BMs.
run() - Method in class cluster.PubSubListener
 
run() - Method in class cluster.PubSubListener
 

S

setBalanceFreezer(BalanceFreezer) - Method in class balance.BalanceManager
Setter for the balance freezer needed to freeze accounts
setBalanceFreezer(BalanceFreezer) - Method in class balance.BalanceManager
Setter for the balance freezer needed to freeze accounts
setDefaultDecimalPoint(int) - Static method in class util.DisplayFormat
 
setDefaultDecimalPoint(int) - Static method in class util.DisplayFormat
 
setDefaultLeaseChunkAmount(double) - Method in class balance.BalanceManager
 
setDefaultLeaseChunkAmount(double) - Method in class balance.BalanceManager
 
setFrozen(boolean) - Method in class balance.LeaseDTO
Setter for freeze/unfreeze state of an account
setFrozen(boolean) - Method in class balance.LeaseDTO
Setter for freeze/unfreeze state of an account
setPercentageToRelease(double) - Method in class balance.BalanceManager
Setter for the percentage which Balance Manager will release when BalanceManager.returnLeaseOnRequest(long) is called
setPercentageToRelease(double) - Method in class balance.BalanceManager
Setter for the percentage which Balance Manager will release when BalanceManager.returnLeaseOnRequest(long) is called
setThresholdToReleaseFullAmount(double) - Method in class balance.BalanceManager
Setter to configure threshold under which Balance Manager will release the full available amount
setThresholdToReleaseFullAmount(double) - Method in class balance.BalanceManager
Setter to configure threshold under which Balance Manager will release the full available amount

T

TOKENIZER - Static variable in class balance.BalanceManager
 
TOKENIZER - Static variable in class balance.BalanceManager
 

U

UNFREEZE_COMPLETE - Static variable in class balance.BalanceManager
 
UNFREEZE_COMPLETE - Static variable in class balance.BalanceManager
 
UNFREEZE_REQUEST - Static variable in class balance.BalanceManager
 
UNFREEZE_REQUEST - Static variable in class balance.BalanceManager
 
util - package util
 

W

WAIT_TIME_BEFORE_FULL_RELEASE - Static variable in class balance.LeaseDTO
When a 100% (full) balance return request is made for an account, Balance manager will not process any further full amount return request for WAIT_TIME_BEFORE_FULL_RELEASE
WAIT_TIME_BEFORE_FULL_RELEASE - Static variable in class balance.LeaseDTO
When a 100% (full) balance return request is made for an account, Balance manager will not process any further full amount return request for WAIT_TIME_BEFORE_FULL_RELEASE
A B C D E F G L O P R S T U W 
Skip navigation links

Copyright © 2021. All rights reserved.