- ACCOUNT_ID - Static variable in class com.reve.balancemanager.lease.LeaseDTOConstants
-
- ACCOUNT_ID - Static variable in class com.reve.balancemanager.lease.LeaseDTOConstants
-
- ACK_FREEZE_REQUEST - Static variable in class com.reve.balancemanager.pubsub.MessageType
-
- ACK_FREEZE_REQUEST - Static variable in class com.reve.balancemanager.pubsub.MessageType
-
- ackFreezeRequest(long) - Method in class com.reve.balancemanager.pubsub.PubSubPublisher
-
For some reason like balance mismatch between redis and mysql in some point, we may need to freeze the account
and match the balance in redis and mysql.
- ackFreezeRequest(long) - Method in class com.reve.balancemanager.pubsub.PubSubPublisher
-
For some reason like balance mismatch between redis and mysql in some point, we may need to freeze the account
and match the balance in redis and mysql.
- addActiveBalanceManagerID(String) - Method in class com.reve.balancemanager.mitigation.Mitigator
-
- addActiveBalanceManagerID(String) - Method in class com.reve.balancemanager.mitigation.Mitigator
-
- addBMToACKSet(String) - Method in class com.reve.balancemanager.mitigation.Mitigator
-
- addBMToACKSet(String) - Method in class com.reve.balancemanager.mitigation.Mitigator
-
- addBMToFrozenSet(String) - Method in class com.reve.balancemanager.mitigation.Mitigator
-
- addBMToFrozenSet(String) - Method in class com.reve.balancemanager.mitigation.Mitigator
-
- addBMToUnfrozenSet(String) - Method in class com.reve.balancemanager.mitigation.Mitigator
-
- addBMToUnfrozenSet(String) - Method in class com.reve.balancemanager.mitigation.Mitigator
-
- addLocalBalance(double) - Method in class com.reve.balancemanager.lease.LeaseDTO
-
Extra amount left at the end of the call is added to the lease (make sure to provide +ve
value).
- addLocalBalance(double) - Method in class com.reve.balancemanager.lease.LeaseDTO
-
Extra amount left at the end of the call is added to the lease (make sure to provide +ve
value).
- addOrgBilledAmount(long, double) - Method in class com.reve.balancemanager.BalanceManager
-
Adds billed amount to total bill for corresponding account id
- addOrgBilledAmount(long, double) - Method in class com.reve.balancemanager.BalanceManager
-
Adds billed amount to total bill for corresponding account id
- addOrgBilledAmount(long, double) - Method in class com.reve.balancemanager.MysqlBalanceUpdater
-
Adds billed amount to total bill for corresponding account id
- addOrgBilledAmount(long, double) - Method in class com.reve.balancemanager.MysqlBalanceUpdater
-
Adds billed amount to total bill for corresponding account id
- addTerBilledAmount(long, double) - Method in class com.reve.balancemanager.BalanceManager
-
Adds billed amount to total billed amount for corresponding account id
- addTerBilledAmount(long, double) - Method in class com.reve.balancemanager.BalanceManager
-
Adds billed amount to total billed amount for corresponding account id
- addTerBilledAmount(long, double) - Method in class com.reve.balancemanager.MysqlBalanceUpdater
-
Adds billed amount to total billed amount for corresponding account id
- addTerBilledAmount(long, double) - Method in class com.reve.balancemanager.MysqlBalanceUpdater
-
Adds billed amount to total billed amount for corresponding account id
- adjustLeaseChunkAmount(long) - Method in class com.reve.balancemanager.lease.LeaseDTO
-
- adjustLeaseChunkAmount(long) - Method in class com.reve.balancemanager.lease.LeaseDTO
-
- allocatedLease - Variable in class com.reve.balancemanager.lease.LeaseResponse
-
How much amount lease has been given for this request.
- allocatedLease - Variable in class com.reve.balancemanager.lease.LeaseResponse
-
How much amount lease has been given for this request.
- appendAttributes(byte[], int) - Method in class com.reve.balancemanager.lease.LeaseDTO
-
Append all the required attributes into the given byte array, so that it can be sent to the slave.
- appendAttributes(byte[], int) - Method in class com.reve.balancemanager.lease.LeaseDTO
-
Append all the required attributes into the given byte array, so that it can be sent to the slave.
- AVAILABLE_LOCAL_BALANCE - Static variable in class com.reve.balancemanager.lease.LeaseDTOConstants
-
- AVAILABLE_LOCAL_BALANCE - Static variable in class com.reve.balancemanager.lease.LeaseDTOConstants
-
- availableLocalBalance - Variable in class com.reve.balancemanager.lease.LeaseResponse
-
What was the available local balance after processing this request.
- availableLocalBalance - Variable in class com.reve.balancemanager.lease.LeaseResponse
-
What was the available local balance after processing this request.
- LEASE_CHUNK_STEP - Static variable in class com.reve.balancemanager.BalanceManager
-
Value to increase or decrease when adjusting lease chunk with demand
- LEASE_CHUNK_STEP - Static variable in class com.reve.balancemanager.BalanceManager
-
Value to increase or decrease when adjusting lease chunk with demand
- LEASE_EMPTY_STATUS - Static variable in class com.reve.balancemanager.pubsub.MessageType
-
- LEASE_EMPTY_STATUS - Static variable in class com.reve.balancemanager.pubsub.MessageType
-
- LeaseDTO - Class in com.reve.balancemanager.lease
-
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 com.reve.balancemanager.lease
-
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 com.reve.balancemanager.lease.LeaseDTO
-
Create a
LeaseDTO instance for the given account id
- LeaseDTO(long, double, BalanceManager) - Constructor for class com.reve.balancemanager.lease.LeaseDTO
-
This constructor is useful when take-over is happening.
- LeaseDTO(long, BalanceManager) - Constructor for class com.reve.balancemanager.lease.LeaseDTO
-
Create a
LeaseDTO instance for the given account id
- LeaseDTO(long, double, BalanceManager) - Constructor for class com.reve.balancemanager.lease.LeaseDTO
-
This constructor is useful when take-over is happening.
- LeaseDTOConstants - Class in com.reve.balancemanager.lease
-
- LeaseDTOConstants - Class in com.reve.balancemanager.lease
-
- LeaseDTOConstants() - Constructor for class com.reve.balancemanager.lease.LeaseDTOConstants
-
- LeaseDTOConstants() - Constructor for class com.reve.balancemanager.lease.LeaseDTOConstants
-
- LeaseResponse - Class in com.reve.balancemanager.lease
-
This class is used for returning multiple value for a lease request.
- LeaseResponse - Class in com.reve.balancemanager.lease
-
This class is used for returning multiple value for a lease request.
- LeaseResponse() - Constructor for class com.reve.balancemanager.lease.LeaseResponse
-
Default constructor
- LeaseResponse(double, double) - Constructor for class com.reve.balancemanager.lease.LeaseResponse
-
Constructor with two parameter
- LeaseResponse() - Constructor for class com.reve.balancemanager.lease.LeaseResponse
-
Default constructor
- LeaseResponse(double, double) - Constructor for class com.reve.balancemanager.lease.LeaseResponse
-
Constructor with two parameter
- loadBalanceInRedis(long) - Method in class com.reve.balancemanager.BalanceManager
-
Successful completion of this method will ensure the presence of this
LeaseDTO in redis
cluster Either in the nearest node or In the far node.
- loadBalanceInRedis(long) - Method in class com.reve.balancemanager.BalanceManager
-
Successful completion of this method will ensure the presence of this
LeaseDTO in redis
cluster Either in the nearest node or In the far node.
- LuaScriptExecutor - Class in com.reve.balancemanager.util
-
Contains the helper functions of the project
- LuaScriptExecutor - Class in com.reve.balancemanager.util
-
Contains the helper functions of the project
- LuaScriptExecutor() - Constructor for class com.reve.balancemanager.util.LuaScriptExecutor
-
- LuaScriptExecutor() - Constructor for class com.reve.balancemanager.util.LuaScriptExecutor
-
- processAccFreezeAck(long, String) - Method in class com.reve.balancemanager.BalanceManager
-
- processAccFreezeAck(long, String) - Method in class com.reve.balancemanager.BalanceManager
-
- processAccFreezeCompete(long, String) - Method in class com.reve.balancemanager.BalanceManager
-
- processAccFreezeCompete(long, String) - Method in class com.reve.balancemanager.BalanceManager
-
- processAccFreezeRequest(long) - Method in class com.reve.balancemanager.BalanceManager
-
When a freeze request is received from mitigator this method will be called.
- processAccFreezeRequest(long) - Method in class com.reve.balancemanager.BalanceManager
-
When a freeze request is received from mitigator this method will be called.
- processAccUnFreezeCompete(long, String) - Method in class com.reve.balancemanager.BalanceManager
-
- processAccUnFreezeCompete(long, String) - Method in class com.reve.balancemanager.BalanceManager
-
- processAccUnfreezeRequest(long) - Method in class com.reve.balancemanager.BalanceManager
-
When an unfreeze request is received from mitigator this method will be called.
- processAccUnfreezeRequest(long) - Method in class com.reve.balancemanager.BalanceManager
-
When an unfreeze request is received from mitigator this method will be called.
- publishCompletedFreeze(long) - Method in class com.reve.balancemanager.pubsub.PubSubPublisher
-
For some reason like balance mismatch between redis and mysql in some point, we may need to freeze the account
and match the balance in redis and mysql.
- publishCompletedFreeze(long) - Method in class com.reve.balancemanager.pubsub.PubSubPublisher
-
For some reason like balance mismatch between redis and mysql in some point, we may need to freeze the account
and match the balance in redis and mysql.
- publishCompletedUnfreeze(long) - Method in class com.reve.balancemanager.pubsub.PubSubPublisher
-
When balance matching is done by mitigation process, it will send an unfreeze request.
- publishCompletedUnfreeze(long) - Method in class com.reve.balancemanager.pubsub.PubSubPublisher
-
When balance matching is done by mitigation process, it will send an unfreeze request.
- publishEmptyLeaseStatus(long) - Method in class com.reve.balancemanager.pubsub.PubSubPublisher
-
Whenever Balance manager detects zero balance in redis cache, it transmits a warning to all Balance manager.
- publishEmptyLeaseStatus(long) - Method in class com.reve.balancemanager.pubsub.PubSubPublisher
-
Whenever Balance manager detects zero balance in redis cache, it transmits a warning to all Balance manager.
- publishFreezeRequest(long) - Method in class com.reve.balancemanager.pubsub.PubSubPublisher
-
- publishFreezeRequest(long) - Method in class com.reve.balancemanager.pubsub.PubSubPublisher
-
- PublishMessage - Class in com.reve.balancemanager.pubsub
-
- PublishMessage - Class in com.reve.balancemanager.pubsub
-
- PublishMessage() - Constructor for class com.reve.balancemanager.pubsub.PublishMessage
-
- PublishMessage(String, String, long) - Constructor for class com.reve.balancemanager.pubsub.PublishMessage
-
- PublishMessage() - Constructor for class com.reve.balancemanager.pubsub.PublishMessage
-
- PublishMessage(String, String, long) - Constructor for class com.reve.balancemanager.pubsub.PublishMessage
-
- publishUnfreezeRequest(long) - Method in class com.reve.balancemanager.pubsub.PubSubPublisher
-
- publishUnfreezeRequest(long) - Method in class com.reve.balancemanager.pubsub.PubSubPublisher
-
- PubSubPublisher - Class in com.reve.balancemanager.pubsub
-
Publisher class to publish messages in Redis cluster pubsub
- PubSubPublisher - Class in com.reve.balancemanager.pubsub
-
Publisher class to publish messages in Redis cluster pubsub
- PubSubPublisher(String, ClusterObserver) - Constructor for class com.reve.balancemanager.pubsub.PubSubPublisher
-
- PubSubPublisher(String, ClusterObserver) - Constructor for class com.reve.balancemanager.pubsub.PubSubPublisher
-
- PubSubSubscriber - Class in com.reve.balancemanager.pubsub
-
Subscriber class to subscribe and listen to messages in Redis cluster pubsub
- PubSubSubscriber - Class in com.reve.balancemanager.pubsub
-
Subscriber class to subscribe and listen to messages in Redis cluster pubsub
- PubSubSubscriber(BalanceManager, JedisCluster, String[]) - Constructor for class com.reve.balancemanager.pubsub.PubSubSubscriber
-
Create an instance of
Runnable to subscribe on the given channels.
- PubSubSubscriber(BalanceManager, JedisCluster, String[]) - Constructor for class com.reve.balancemanager.pubsub.PubSubSubscriber
-
Create an instance of
Runnable to subscribe on the given channels.
- RechargeManager - Class in com.reve.balancemanager.recharge
-
This class is responsible for balance update in redis cluster.
- RechargeManager - Class in com.reve.balancemanager.recharge
-
This class is responsible for balance update in redis cluster.
- RechargeManager(String, int, String, SSLConfiguration) - Constructor for class com.reve.balancemanager.recharge.RechargeManager
-
Create an instance for Redis balance update with SSL.
- RechargeManager(ClusterObserver) - Constructor for class com.reve.balancemanager.recharge.RechargeManager
-
Create an instance for Redis balance update with SSL.
- RechargeManager(String, int, String, SSLConfiguration) - Constructor for class com.reve.balancemanager.recharge.RechargeManager
-
Create an instance for Redis balance update with SSL.
- RechargeManager(ClusterObserver) - Constructor for class com.reve.balancemanager.recharge.RechargeManager
-
Create an instance for Redis balance update with SSL.
- RedisCall - Class in com.reve.balancemanager.lease
-
- RedisCall - Class in com.reve.balancemanager.lease
-
- RedisCall(LeaseDTO, double) - Constructor for class com.reve.balancemanager.lease.RedisCall
-
Constructor
- RedisCall(LeaseDTO, double) - Constructor for class com.reve.balancemanager.lease.RedisCall
-
Constructor
- RedisCaller - Class in com.reve.balancemanager.lease
-
This thread will call redis balance increase method whenever required.
- RedisCaller - Class in com.reve.balancemanager.lease
-
This thread will call redis balance increase method whenever required.
- RedisCaller() - Constructor for class com.reve.balancemanager.lease.RedisCaller
-
- RedisCaller() - Constructor for class com.reve.balancemanager.lease.RedisCaller
-
- RedundancyConstants - Class in com.reve.balancemanager
-
- RedundancyConstants - Class in com.reve.balancemanager
-
- RedundancyConstants() - Constructor for class com.reve.balancemanager.RedundancyConstants
-
- RedundancyConstants() - Constructor for class com.reve.balancemanager.RedundancyConstants
-
- returnAvailableBalancePercentage(double) - Method in class com.reve.balancemanager.lease.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 com.reve.balancemanager.lease.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 com.reve.balancemanager.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 com.reve.balancemanager.BalanceManager
-
Extra amount left at the end of the call is added to the lease (make sure to provide +ve
value).
- returnLeaseOnRequest(long, boolean) - Method in class com.reve.balancemanager.BalanceManager
-
In case the balance of an account gets exhausted, balance manager will broadcast an empty status to all BMs.
- returnLeaseOnRequest(long, boolean) - Method in class com.reve.balancemanager.BalanceManager
-
In case the balance of an account gets exhausted, balance manager will broadcast an empty status to all BMs.
- run() - Method in class com.reve.balancemanager.lease.RedisCaller
-
Thread run method
- run() - Method in class com.reve.balancemanager.lease.RedisCaller
-
Thread run method
- run() - Method in class com.reve.balancemanager.MysqlBalanceUpdater
-
Continuously updates mysql balance without any sleep if some data are available to be updated in mysql,
and they are successfully updated then it will not sleep and try again.
- run() - Method in class com.reve.balancemanager.MysqlBalanceUpdater
-
Continuously updates mysql balance without any sleep if some data are available to be updated in mysql,
and they are successfully updated then it will not sleep and try again.
- run() - Method in class com.reve.balancemanager.pubsub.PubSubPublisher
-
Thread run method.
- run() - Method in class com.reve.balancemanager.pubsub.PubSubPublisher
-
Thread run method.
- run() - Method in class com.reve.balancemanager.pubsub.PubSubSubscriber
-
Thread run method.
- run() - Method in class com.reve.balancemanager.pubsub.PubSubSubscriber
-
Thread run method.
- savePendingCall(RedisCall) - Method in class com.reve.balancemanager.lease.RedisCaller
-
Save this redisCall in pending call list to be called whenever possible.
- savePendingCall(RedisCall) - Method in class com.reve.balancemanager.lease.RedisCaller
-
Save this redisCall in pending call list to be called whenever possible.
- saveRedisCall(RedisCall) - Method in class com.reve.balancemanager.BalanceManager
-
Whenever any redis call is required by
LeaseDTO asynchronously, this method must be called with an
instance of
RedisCall.
- saveRedisCall(RedisCall) - Method in class com.reve.balancemanager.BalanceManager
-
Whenever any redis call is required by
LeaseDTO asynchronously, this method must be called with an
instance of
RedisCall.
- setAccountID(long) - Method in class com.reve.balancemanager.pubsub.PublishMessage
-
- setAccountID(long) - Method in class com.reve.balancemanager.pubsub.PublishMessage
-
- setAmount(double) - Method in class com.reve.balancemanager.lease.RedisCall
-
- setAmount(double) - Method in class com.reve.balancemanager.lease.RedisCall
-
- setBalance(long, double, double) - Method in class com.reve.balancemanager.BalanceManager
-
Set the balance of the given account id to the given amount.
- setBalance(long, double, double) - Method in class com.reve.balancemanager.BalanceManager
-
Set the balance of the given account id to the given amount.
- setBalanceFreezer(BalanceFreezer) - Method in class com.reve.balancemanager.BalanceManager
-
Setter for the balance freezer needed to freeze accounts
- setBalanceFreezer(BalanceFreezer) - Method in class com.reve.balancemanager.BalanceManager
-
Setter for the balance freezer needed to freeze accounts
- setChannel(String) - Method in class com.reve.balancemanager.pubsub.PublishMessage
-
- setChannel(String) - Method in class com.reve.balancemanager.pubsub.PublishMessage
-
- setFrozen(boolean) - Method in class com.reve.balancemanager.lease.LeaseDTO
-
Setter for freeze/unfreeze state of an account
- setFrozen(boolean) - Method in class com.reve.balancemanager.lease.LeaseDTO
-
Setter for freeze/unfreeze state of an account
- setLeaseDTO(LeaseDTO) - Method in class com.reve.balancemanager.lease.RedisCall
-
- setLeaseDTO(LeaseDTO) - Method in class com.reve.balancemanager.lease.RedisCall
-
- setLocalBalanceSyncTime(long) - Method in class com.reve.balancemanager.lease.LeaseDTO
-
- setLocalBalanceSyncTime(long) - Method in class com.reve.balancemanager.lease.LeaseDTO
-
- setMessageType(String) - Method in class com.reve.balancemanager.pubsub.PublishMessage
-
- setMessageType(String) - Method in class com.reve.balancemanager.pubsub.PublishMessage
-
- setMysqlBalance(long, double, double) - Method in class com.reve.balancemanager.BalanceManager
-
If the given accountId is not present in redis then it will be loaded from mysql database and be saved in redis
cluster.
- setMysqlBalance(long, double, double) - Method in class com.reve.balancemanager.BalanceManager
-
If the given accountId is not present in redis then it will be loaded from mysql database and be saved in redis
cluster.
- setPercentageToRelease(double) - Method in class com.reve.balancemanager.BalanceManager
-
- setPercentageToRelease(double) - Method in class com.reve.balancemanager.BalanceManager
-
- setThresholdToReleaseFullAmount(double) - Method in class com.reve.balancemanager.BalanceManager
-
Setter to configure threshold under which Balance Manager will release the full available amount
- setThresholdToReleaseFullAmount(double) - Method in class com.reve.balancemanager.BalanceManager
-
Setter to configure threshold under which Balance Manager will release the full available amount
- shutDown() - Method in class com.reve.balancemanager.lease.RedisCaller
-
Shut down this thread.
- shutDown() - Method in class com.reve.balancemanager.lease.RedisCaller
-
Shut down this thread.
- shutDown() - Method in class com.reve.balancemanager.MysqlBalanceUpdater
-
Shutting down this thread.
- shutDown() - Method in class com.reve.balancemanager.MysqlBalanceUpdater
-
Shutting down this thread.
- shutDown() - Method in class com.reve.balancemanager.pubsub.PubSubPublisher
-
Shutdown this thread
- shutDown() - Method in class com.reve.balancemanager.pubsub.PubSubPublisher
-
Shutdown this thread
- startMysqlBalanceUpdate(boolean, boolean) - Method in class com.reve.balancemanager.BalanceManager
-
If anyone wants
BalanceManager to update mysql balance as well, then this method must be called with true
By default
BalanceManager will not update mysql balance.
- startMysqlBalanceUpdate(boolean, boolean) - Method in class com.reve.balancemanager.BalanceManager
-
If anyone wants
BalanceManager to update mysql balance as well, then this method must be called with true
By default
BalanceManager will not update mysql balance.
- SYNC_TIME - Static variable in class com.reve.balancemanager.lease.LeaseDTOConstants
-
- SYNC_TIME - Static variable in class com.reve.balancemanager.lease.LeaseDTOConstants
-
- syncAllAccounts(Collection<Long>) - Method in class com.reve.balancemanager.BalanceManager
-
Method to sync balance of the accounts present in failed SBC.
- syncAllAccounts(Collection<Long>) - Method in class com.reve.balancemanager.BalanceManager
-
Method to sync balance of the accounts present in failed SBC.
- syncBalance() - Method in class com.reve.balancemanager.lease.LeaseDTO
-
- syncBalance() - Method in class com.reve.balancemanager.lease.LeaseDTO
-