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

A

ACCOUNT_ID - Static variable in class com.reve.balancemanager.lease.LeaseDTOConstants
 
ACCOUNT_VALIDATION_CHANNEL - Static variable in class com.reve.balancemanager.pubsub.Channels
 
ACCOUNT_VALIDATION_STATUS - 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.
addBillCredit(double) - Method in class com.reve.balancemanager.matching.BalanceStatus
 
addBillDebit(double) - Method in class com.reve.balancemanager.matching.BalanceStatus
 
addBMToACKSet(String) - Method in class com.reve.balancemanager.impl.MitigatorImpl
Add the name of the balance manager in the ack received list.
addBMToACKSet(String) - Method in class com.reve.balancemanager.mitigation.Mitigator
Add the name of the balance manager in the ack received list.
addBMToFrozenSet(String) - Method in class com.reve.balancemanager.impl.MitigatorImpl
Add the name of the balance manager in the account freeze complete message received list.
addBMToFrozenSet(String) - Method in class com.reve.balancemanager.mitigation.Mitigator
Add the name of the balance manager in the account freeze complete message received list.
addBMToUnfrozenSet(String) - Method in class com.reve.balancemanager.impl.MitigatorImpl
Add the name of the balance manager in the account unfrozen complete received list.
addBMToUnfrozenSet(String) - Method in class com.reve.balancemanager.mitigation.Mitigator
Add the name of the balance manager in the account unfrozen complete received list.
addLeaseCredit(double) - Method in class com.reve.balancemanager.matching.BalanceStatus
 
addLeaseDebit(double) - Method in class com.reve.balancemanager.matching.BalanceStatus
 
addLocalBalance(double) - Method in class com.reve.balancemanager.impl.LeaseDTOImpl
Extra amount left at the end of the operation is added to the available local balance.
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.db.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.db.MysqlBalanceUpdater
Adds billed amount to total billed amount for corresponding account id
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.impl.LeaseDTOImpl
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.
APPLICATION_NAME - Static variable in class com.reve.balancemanager.BalanceManager
 
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.

B

BALANCE_FIELD - Static variable in class com.reve.balancemanager.db.BalanceTable
Redis cluster balance field constant key.
BALANCE_FREEZE_CHANNEL - Static variable in class com.reve.balancemanager.pubsub.Channels
 
BALANCE_SYNC_CHANNEL - Static variable in class com.reve.balancemanager.pubsub.Channels
 
BalanceFreezer - Interface in com.reve.balancemanager
Interface which will be used in SBC for account freeze and unfreeze tasks.
BalanceManager - Class in com.reve.balancemanager
Manages balance information for all clients presents in mysql BalanceTable.CLIENT_BALANCE_TABLE table.
BalanceManager(String, String, int, String, SSLConfiguration, int) - Constructor for class com.reve.balancemanager.BalanceManager
Create an instance of BalanceManager.
BalanceManager(String, String, int, String, SSLConfiguration) - Constructor for class com.reve.balancemanager.BalanceManager
Create an instance of BalanceManager.
BalanceManager(String, ClusterObserver) - Constructor for class com.reve.balancemanager.BalanceManager
Create an instance of BalanceManager.
BalanceMitigator - Class in com.reve.balancemanager.mitigation
Class for the balance mitigation process.
BalanceMitigator() - Constructor for class com.reve.balancemanager.mitigation.BalanceMitigator
 
BalanceStatus - Class in com.reve.balancemanager.matching
This class is primarily created to keep the balance information for a given client.
BalanceStatus(long) - Constructor for class com.reve.balancemanager.matching.BalanceStatus
 
BalanceTable - Class in com.reve.balancemanager.db
 
BalanceTable() - Constructor for class com.reve.balancemanager.db.BalanceTable
 
BM_ID_FIELD - Static variable in class com.reve.balancemanager.BalanceManager
 

C

call() - Method in class com.reve.balancemanager.impl.MitigatorImpl
 
call() - Method in class com.reve.balancemanager.lease.RedisLoader
 
call() - Method in class com.reve.balancemanager.lease.ShutdownCaller
 
changeLeaseDTOStatus(long, LeaseDTOStatus) - Method in class com.reve.balancemanager.BalanceManager
change the LeaseDTO validAccountID status.
Channels - Class in com.reve.balancemanager.pubsub
 
Channels() - Constructor for class com.reve.balancemanager.pubsub.Channels
 
CLIENT_BALANCE_TABLE - Static variable in class com.reve.balancemanager.db.BalanceTable
MySQL table name where balance information can be found
com.reve.balancemanager - package com.reve.balancemanager
 
com.reve.balancemanager.db - package com.reve.balancemanager.db
 
com.reve.balancemanager.impl - package com.reve.balancemanager.impl
 
com.reve.balancemanager.lease - package com.reve.balancemanager.lease
 
com.reve.balancemanager.matching - package com.reve.balancemanager.matching
 
com.reve.balancemanager.mitigation - package com.reve.balancemanager.mitigation
 
com.reve.balancemanager.pubsub - package com.reve.balancemanager.pubsub
 
com.reve.balancemanager.recharge - package com.reve.balancemanager.recharge
 
com.reve.balancemanager.util - package com.reve.balancemanager.util
 
Configuration - Class in com.reve.balancemanager.mitigation
 

D

decreaseBalance(long, double, double) - Method in class com.reve.balancemanager.recharge.RechargeManager
Decrease the balance for the given accountID
detectBalanceMismatch() - Method in class com.reve.balancemanager.BalanceManager
Automatically detect balance mismatch if there is any.
doubleFormatter - Static variable in class com.reve.balancemanager.BalanceManager
The instance that will be used to clip double value to 6 decimal places.

E

execute(String, JedisCluster, String[], String[]) - Static method in class com.reve.balancemanager.util.LuaScriptExecutor
generic execute method that can evaluate given luaFile with its keys and args.

F

findTargetAccounts(String) - Method in class com.reve.balancemanager.BalanceManager
Method to find the account IDs which were present in the failed SBC/Balance Manager
FREEZE_COMPLETE - Static variable in class com.reve.balancemanager.pubsub.MessageType
 
FREEZE_REQUEST - Static variable in class com.reve.balancemanager.pubsub.MessageType
 

G

getAccountId() - Method in class com.reve.balancemanager.impl.LeaseDTOImpl
 
getAccountId() - Method in class com.reve.balancemanager.lease.LeaseDTO
 
getAccountID() - Method in class com.reve.balancemanager.matching.BalanceStatus
 
getAccountID() - Method in class com.reve.balancemanager.pubsub.PublishMessage
 
getAccountIDList() - Method in class com.reve.balancemanager.mitigation.Configuration
 
getAdditionalInformation() - Method in class com.reve.balancemanager.pubsub.PublishMessage
 
getAllAccountID() - Method in class com.reve.balancemanager.BalanceManager
Get the set of all account id present in this balance manager.
getAllAccounts() - Static method in class com.reve.balancemanager.db.BalanceTable
Get all the account id from BalanceTable.CLIENT_BALANCE_TABLE which are active.
getAmount() - Method in class com.reve.balancemanager.lease.RedisCallDTO
 
getAvailableLocalBalance() - Method in class com.reve.balancemanager.impl.LeaseDTOImpl
 
getAvailableLocalBalance() - Method in class com.reve.balancemanager.lease.LeaseDTO
 
getAvailableRedisBalance() - Method in class com.reve.balancemanager.impl.LeaseDTOImpl
 
getAvailableRedisBalance() - Method in class com.reve.balancemanager.lease.LeaseDTO
 
getBalanceManagerID() - Method in class com.reve.balancemanager.mitigation.Configuration
 
getBalanceToSync(List<LeaseDTO>, boolean) - Method in class com.reve.balancemanager.BalanceManager
Get all the instances of LeaseDTO those needed to be synced.
getChannel() - Method in class com.reve.balancemanager.pubsub.PublishMessage
 
getClassReference() - Static method in class com.reve.balancemanager.lease.LeaseDTO
 
getClassReference() - Static method in class com.reve.balancemanager.mitigation.Mitigator
 
getClusterObserver() - Method in class com.reve.balancemanager.BalanceManager
getCreditAmountBill() - Method in class com.reve.balancemanager.matching.BalanceStatus
 
getCreditAmountLease() - Method in class com.reve.balancemanager.matching.BalanceStatus
 
getDebitAmountBill() - Method in class com.reve.balancemanager.matching.BalanceStatus
 
getDebitAmountLease() - Method in class com.reve.balancemanager.matching.BalanceStatus
 
getDeclaredFields() - Static method in class com.reve.balancemanager.lease.LeaseDTOConstants
 
getIdentifier() - Method in class com.reve.balancemanager.BalanceManager
 
getInstance() - Static method in class com.reve.balancemanager.lease.LeaseDTO
 
getInstance() - Static method in class com.reve.balancemanager.mitigation.Configuration
 
getInstance() - Static method in class com.reve.balancemanager.mitigation.Mitigator
 
getLastLeaseServedTime() - Method in class com.reve.balancemanager.impl.LeaseDTOImpl
 
getLastLeaseServedTime() - Method in class com.reve.balancemanager.lease.LeaseDTO
 
getLease(long, double, LeaseResponse) - Method in class com.reve.balancemanager.BalanceManager
Try to get a lease from this account balance.
getLease(long, double, LeaseResponse, boolean) - Method in class com.reve.balancemanager.BalanceManager
Try to get a lease from this account balance.
getLease(double, LeaseResponse, boolean) - Method in class com.reve.balancemanager.impl.LeaseDTOImpl
Try to get a lease from this account balance.
getLease(double, LeaseResponse, boolean) - Method in class com.reve.balancemanager.lease.LeaseDTO
Try to get a lease from this account balance.
getLeaseDTO(long) - Method in class com.reve.balancemanager.BalanceManager
Get the instance of LeaseDTO mapped with the given account id.
getLeaseDTO() - Method in class com.reve.balancemanager.lease.RedisCallDTO
 
getLocalBalanceSyncTime() - Method in class com.reve.balancemanager.impl.LeaseDTOImpl
Get the timestamp in millis when last time this instance was synced with slaved.
getLocalBalanceSyncTime() - Method in class com.reve.balancemanager.lease.LeaseDTO
Get the timestamp in millis when last time this instance was synced with slaved.
getMessageType() - Method in class com.reve.balancemanager.pubsub.PublishMessage
 
getMysqlAmount() - Method in class com.reve.balancemanager.matching.BalanceStatus
 
getMysqlBalance(long) - 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.
getMysqlBalance(long) - Static method in class com.reve.balancemanager.db.BalanceTable
If the given accountId is not present in redis then it will be loaded from mysql database and be saved in redis cluster.
getMysqlBalance(long) - Method in class com.reve.balancemanager.db.MysqlBalanceUpdater
 
getPercentageToRelease() - Method in class com.reve.balancemanager.BalanceManager
 
getPublisher() - Method in class com.reve.balancemanager.BalanceManager
getPubSubPublisher() - Method in class com.reve.balancemanager.BalanceManager
 
getRedisAmount() - Method in class com.reve.balancemanager.matching.BalanceStatus
 
getRedisAuthPassword() - Method in class com.reve.balancemanager.mitigation.Configuration
 
getRedisHostAddress() - Method in class com.reve.balancemanager.mitigation.Configuration
 
getRedisHostPort() - Method in class com.reve.balancemanager.mitigation.Configuration
 
getRedisKeystoreFilePassword() - Method in class com.reve.balancemanager.mitigation.Configuration
 
getRedisKeystoreFilePath() - Method in class com.reve.balancemanager.mitigation.Configuration
 
getRedisKeystoreKeyPassword() - Method in class com.reve.balancemanager.mitigation.Configuration
 
getThresholdToReleaseFullAmount() - Method in class com.reve.balancemanager.BalanceManager
 
getType() - Method in class com.reve.balancemanager.lease.RedisCallDTO
 

I

immediateDatabaseBalanceUpdate(long) - Method in class com.reve.balancemanager.db.MysqlBalanceUpdater
When this account maintenance is needed and mysql balance need to be updated immediately, this method does that
increaseBalance(long, double, double) - Method in class com.reve.balancemanager.recharge.RechargeManager
Increase the balance for the given accountID
increaseRedis(double) - Method in class com.reve.balancemanager.impl.LeaseDTOImpl
use lua script in JedisCluster instance.
increaseRedis(double) - Method in class com.reve.balancemanager.lease.LeaseDTO
 
increaseRedisold(double) - Method in class com.reve.balancemanager.impl.LeaseDTOImpl
Deprecated.
increaseRedisold(double) - Method in class com.reve.balancemanager.lease.LeaseDTO
Call hincrByFloat method in JedisCluster instance.
incrementBalance(JedisCluster, String, String, String) - Static method in class com.reve.balancemanager.util.LuaScriptExecutor
increment redis balance.
init(long, BalanceManager) - Method in class com.reve.balancemanager.impl.LeaseDTOImpl
Initialize a LeaseDTO instance for the given account id
init(long, double, BalanceManager) - Method in class com.reve.balancemanager.impl.LeaseDTOImpl
This initialization is useful when take-over is happening.
init(BalanceManager, long, Double, Double) - Method in class com.reve.balancemanager.impl.MitigatorImpl
Initialize the instance specifying the account for which this thread will be called and under which mitigator this thread will work
init(long, BalanceManager) - Method in class com.reve.balancemanager.lease.LeaseDTO
Initialize a LeaseDTO instance for the given account id
init(long, double, BalanceManager) - Method in class com.reve.balancemanager.lease.LeaseDTO
This initialization is useful when take-over is happening.
init(BalanceManager, long, Double, Double) - Method in class com.reve.balancemanager.mitigation.Mitigator
Initialize the instance specifying the account for which this thread will be called and under which mitigator this thread will work
initLeaseDTO(Collection<Long>) - Method in class com.reve.balancemanager.BalanceManager
Initialize the instances of LeaseDTO for all the given clients at the startup.
insertBMid(JedisCluster, String, String, String) - Static method in class com.reve.balancemanager.util.LuaScriptExecutor
insert bmId field into redis.
insertBMidIntoRedis() - Method in class com.reve.balancemanager.impl.LeaseDTOImpl
insert LeaseDTOImpl.balanceManager identifier into redis BalanceManager.BM_ID_FIELD field via Lua script
insertBMidIntoRedis() - Method in class com.reve.balancemanager.lease.LeaseDTO
 
isFrozen(long) - Method in class com.reve.balancemanager.BalanceManager
Check if the given account id is now in frozen mode or not.
isMitigationRunning() - Method in class com.reve.balancemanager.impl.LeaseDTOImpl
 
isMitigationRunning() - Method in class com.reve.balancemanager.lease.LeaseDTO
 
isValidAccountID() - Method in class com.reve.balancemanager.impl.LeaseDTOImpl
It is getter method of validAccountID property.
isValidAccountID() - Method in class com.reve.balancemanager.lease.LeaseDTO
It is getter method of validAccountID property.

L

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
 
LeaseDTO - Class in com.reve.balancemanager.lease
 
LeaseDTO() - Constructor for class com.reve.balancemanager.lease.LeaseDTO
 
LeaseDTOConstants - Class in com.reve.balancemanager.lease
 
LeaseDTOConstants() - Constructor for class com.reve.balancemanager.lease.LeaseDTOConstants
 
LeaseDTOImpl - Class in com.reve.balancemanager.impl
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
LeaseDTOImpl() - Constructor for class com.reve.balancemanager.impl.LeaseDTOImpl
 
LeaseDTOStatus - Enum in com.reve.balancemanager.util
 
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
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.
loadLuaScript(String) - Static method in class com.reve.balancemanager.util.LuaScriptExecutor
This is to load the lua script in our java program.
loadMysqlBalance(Map<Long, Double>) - Static method in class com.reve.balancemanager.db.BalanceTable
Load the full list of client and their balance from mysql BalanceTable.CLIENT_BALANCE_TABLE table into the given map.
LuaScriptExecutor - Class in com.reve.balancemanager.util
Contains the helper functions of the project to execute lua script
LuaScriptExecutor() - Constructor for class com.reve.balancemanager.util.LuaScriptExecutor
 

M

main(String[]) - Static method in class com.reve.balancemanager.mitigation.BalanceMitigator
 
MAX_THREAD_COUNT - Static variable in class com.reve.balancemanager.BalanceManager
 
MAXIMUM_LEASE_CHUNK - Static variable in class com.reve.balancemanager.BalanceManager
Maximum lease chunk Balance Manager tries to store locally from Redis for an account when LeaseDTO.getLease(double, LeaseResponse, boolean) is called
MAXIMUM_LOCAL_BALANCE - Static variable in class com.reve.balancemanager.BalanceManager
Maximum amount of money which can stay in available local balance of LeaseDTO.
MessageType - Class in com.reve.balancemanager.pubsub
 
MessageType() - Constructor for class com.reve.balancemanager.pubsub.MessageType
 
MINIMUM_LEASE_CHUNK - Static variable in class com.reve.balancemanager.BalanceManager
Minimum lease chunk Balance Manager tries to store locally from Redis for an account when LeaseDTO.getLease(double, LeaseResponse, boolean) is called
mitigatePossibleBalanceMismatch(long) - Method in class com.reve.balancemanager.BalanceManager
This method will call balance mitigatory process to resolve any dispute in balance.
Mitigator - Class in com.reve.balancemanager.mitigation
 
Mitigator() - Constructor for class com.reve.balancemanager.mitigation.Mitigator
 
MitigatorImpl - Class in com.reve.balancemanager.impl
Thread class which will work on balance sync for a specified account
MitigatorImpl() - Constructor for class com.reve.balancemanager.impl.MitigatorImpl
 
MysqlBalanceUpdater - Class in com.reve.balancemanager.db
Updates client balance in mysql periodically
MysqlBalanceUpdater(boolean, BalanceManager) - Constructor for class com.reve.balancemanager.db.MysqlBalanceUpdater
Create the instance

N

NEGATIVE_BALANCE_STATUS - Static variable in class com.reve.balancemanager.pubsub.MessageType
 

O

OBJECT_TYPE_DIALOG - Static variable in class com.reve.balancemanager.RedundancyConstants
 
OBJECT_TYPE_LEASE_DTO - Static variable in class com.reve.balancemanager.RedundancyConstants
 
OBJECT_TYPE_RATE_AND_LEASE_DETAILS_DTO - Static variable in class com.reve.balancemanager.RedundancyConstants
 
OBJECT_TYPE_RATE_DTO - Static variable in class com.reve.balancemanager.RedundancyConstants
 
OBJECT_TYPE_ROUTE_INFO_DTO - Static variable in class com.reve.balancemanager.RedundancyConstants
 
onAccFreeze(long) - Method in interface com.reve.balancemanager.BalanceFreezer
 
onAccUnfreeze(long) - Method in interface com.reve.balancemanager.BalanceFreezer
 
onMessage(String, String) - Method in class com.reve.balancemanager.pubsub.PubSubSubscriber
Process the message received from the given channel.
onProcessShutdown(boolean) - Method in class com.reve.balancemanager.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(boolean) - Method in class com.reve.balancemanager.impl.LeaseDTOImpl
Do all the task required to do while the application is shutting down.
onProcessShutdown(boolean) - Method in class com.reve.balancemanager.lease.LeaseDTO
Do all the task required to do while the application is shutting down.
onSubscribe(String, int) - Method in class com.reve.balancemanager.pubsub.PubSubSubscriber
Process on subscribe successful event.
onUnsubscribe(String, int) - Method in class com.reve.balancemanager.pubsub.PubSubSubscriber
Process on subscribe successful event.

P

processAccFreezeAck(long, String) - Method in class com.reve.balancemanager.BalanceManager
Process MessageType.ACK_FREEZE_REQUEST message from the given balance manager.
processAccFreezeCompete(long, String) - Method in class com.reve.balancemanager.BalanceManager
Process MessageType.FREEZE_COMPLETE message from the given balance manager.
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
Process MessageType.UNFREEZE_COMPLETE message from the given balance manager.
processAccUnfreezeRequest(long) - Method in class com.reve.balancemanager.BalanceManager
When an unfreeze request is received from mitigator this method will be called.
publishAccountValidationStatus(long, LeaseDTOStatus) - Method in class com.reve.balancemanager.pubsub.PubSubPublisher
Whenever any accountID that is unknown/newly introduced to DB at first.
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.
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
Publish a MessageType.FREEZE_REQUEST message in Channels.BALANCE_FREEZE_CHANNEL to freeze the given account ID.
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
 
publishNegativeRedisBalance(long) - Method in class com.reve.balancemanager.pubsub.PubSubPublisher
Whenever Balance is getting negative in redis.
publishUnfreezeRequest(long) - Method in class com.reve.balancemanager.pubsub.PubSubPublisher
Publish a MessageType.UNFREEZE_REQUEST message in Channels.BALANCE_FREEZE_CHANNEL to un-freeze the given account ID.
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
 
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.

R

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.
RedisCallDTO - Class in com.reve.balancemanager.lease
Whenever any redis call is required by RedisCaller thread, An instance of this RedisCallDTO dto class must be pushed into the queue of RedisCaller thread.
RedisCallDTO(LeaseDTO, double) - Constructor for class com.reve.balancemanager.lease.RedisCallDTO
Constructor
RedisCallDTO(LeaseDTO, RedisCallType) - Constructor for class com.reve.balancemanager.lease.RedisCallDTO
constructor
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
Protected constructor, only to be called from BalanceManager
RedisCallType - Enum in com.reve.balancemanager.lease
 
RedisLoader - Class in com.reve.balancemanager.lease
 
RedisLoader(long, BalanceManager) - Constructor for class com.reve.balancemanager.lease.RedisLoader
Create the instance of RedisLoader
RedundancyConstants - Class in com.reve.balancemanager
 
RedundancyConstants() - Constructor for class com.reve.balancemanager.RedundancyConstants
 
refundBalance(long, double) - Method in class com.reve.balancemanager.BalanceManager
For some unsuccessful case we may need to refund the balance of a transaction.
removeBMid(JedisCluster, String, String, String) - Static method in class com.reve.balancemanager.util.LuaScriptExecutor
remove BMid field value.
reset() - Method in class com.reve.balancemanager.matching.BalanceStatus
 
returnAvailableBalancePercentage(double) - Method in class com.reve.balancemanager.impl.LeaseDTOImpl
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 operation is added/subtract to the available local balance.
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.db.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.lease.RedisCaller
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.

S

savePendingCall(RedisCallDTO) - Method in class com.reve.balancemanager.lease.RedisCaller
Save this redisCall in pending call list to be called whenever possible.
saveRedisCall(RedisCallDTO) - 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 RedisCallDTO.
setAccountID(long) - Method in class com.reve.balancemanager.pubsub.PublishMessage
 
setAccountIDValidationStatus(boolean) - Method in class com.reve.balancemanager.impl.LeaseDTOImpl
It is setter method of validAccountID property.
setAccountIDValidationStatus(boolean) - Method in class com.reve.balancemanager.lease.LeaseDTO
It is setter method of validAccountID property.
setAdditionalInformation(String) - Method in class com.reve.balancemanager.pubsub.PublishMessage
 
setAmount(double) - Method in class com.reve.balancemanager.lease.RedisCallDTO
 
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
setChannel(String) - Method in class com.reve.balancemanager.pubsub.PublishMessage
 
setEnableRedisCall(boolean) - Method in class com.reve.balancemanager.BalanceManager
 
setLeaseDTO(LeaseDTO) - Method in class com.reve.balancemanager.lease.RedisCallDTO
 
setLocalBalanceSyncTime(long) - Method in class com.reve.balancemanager.impl.LeaseDTOImpl
Set the timestamp in millis when last time this instance was synced with slaved.
setLocalBalanceSyncTime(long) - Method in class com.reve.balancemanager.lease.LeaseDTO
Set the timestamp in millis when last time this instance was synced with slaved.
setMessageType(String) - Method in class com.reve.balancemanager.pubsub.PublishMessage
 
setMitigationRunning(boolean) - Method in class com.reve.balancemanager.impl.LeaseDTOImpl
Setter for freeze/unfreeze state of an account
setMitigationRunning(boolean) - Method in class com.reve.balancemanager.lease.LeaseDTO
Setter for freeze/unfreeze state of an account
setMysqlAmount(double) - Method in class com.reve.balancemanager.matching.BalanceStatus
 
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) - Static method in class com.reve.balancemanager.db.BalanceTable
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
Setter for the percentage which Balance Manager will release when BalanceManager.returnLeaseOnRequest(long, boolean) is called
setRedisAmount(double) - Method in class com.reve.balancemanager.matching.BalanceStatus
 
setThresholdToReleaseFullAmount(double) - Method in class com.reve.balancemanager.BalanceManager
Setter to configure threshold under which Balance Manager will release the full available amount
setType(RedisCallType) - Method in class com.reve.balancemanager.lease.RedisCallDTO
 
shutDown() - Method in class com.reve.balancemanager.db.MysqlBalanceUpdater
Shutting down this thread.
shutDown() - Method in class com.reve.balancemanager.lease.RedisCaller
Shut down this thread.
shutDown() - Method in class com.reve.balancemanager.pubsub.PubSubPublisher
Shutdown this thread
ShutdownCaller - Class in com.reve.balancemanager.lease
Primary concern for this class is to call the LeaseDTO.onProcessShutdown(boolean)
ShutdownCaller(LeaseDTO, boolean) - Constructor for class com.reve.balancemanager.lease.ShutdownCaller
Create an instance of ShutdownCaller
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
 
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.impl.LeaseDTOImpl
Check and assign values in LeaseDTOImpl.localBalanceSyncTime.
syncBalance() - Method in class com.reve.balancemanager.lease.LeaseDTO
Check and assign values in #localBalanceSyncTime.

T

TIME_TO_DECREASE_LEASE_CHUNK - Static variable in class com.reve.balancemanager.BalanceManager
Time above which a lease request is received in Redis, we will decrease local balance chunk for a LeaseDTO
TIME_TO_INCREASE_LEASE_CHUNK - Static variable in class com.reve.balancemanager.BalanceManager
Time under which a lease request is received in Redis, we will increase local balance chunk for a LeaseDTO
TOKENIZER - Static variable in class com.reve.balancemanager.BalanceManager
 
toString() - Method in class com.reve.balancemanager.impl.LeaseDTOImpl
For debugging purpose
toString() - Method in class com.reve.balancemanager.lease.LeaseResponse
 
toString() - Method in class com.reve.balancemanager.lease.RedisCallDTO
 
toString() - Method in class com.reve.balancemanager.matching.BalanceStatus
 
toString() - Method in class com.reve.balancemanager.pubsub.PublishMessage
 

U

UNFREEZE_COMPLETE - Static variable in class com.reve.balancemanager.pubsub.MessageType
 
UNFREEZE_REQUEST - Static variable in class com.reve.balancemanager.pubsub.MessageType
 
updateAvailableRedisAmount() - Method in class com.reve.balancemanager.impl.LeaseDTOImpl
After completing account freeze request we must set available redis amount to 0.
updateAvailableRedisAmount() - Method in class com.reve.balancemanager.lease.LeaseDTO
After completing account freeze request we must set available redis amount to 0.
updateInformation(byte[], int, int) - Method in class com.reve.balancemanager.impl.LeaseDTOImpl
We have received information from master, Now we will update this LeaseDTO with this latest attributes.
updateInformation(byte[], int, int) - Method in class com.reve.balancemanager.lease.LeaseDTO
We have received information from master, Now we will update this LeaseDTO with this latest attributes.
updateMysqlBalance(Map<Long, ? extends BalanceStatus>) - Method in class com.reve.balancemanager.BalanceManager
Update the value of BalanceStatus.setMysqlAmount(double) for all the instance of BalanceStatus of the given map.

V

value - Variable in enum com.reve.balancemanager.util.LeaseDTOStatus
 
valueOf(String) - Static method in enum com.reve.balancemanager.lease.RedisCallType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.reve.balancemanager.util.LeaseDTOStatus
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.reve.balancemanager.lease.RedisCallType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.reve.balancemanager.util.LeaseDTOStatus
Returns an array containing the constants of this enum type, in the order they are declared.
VERSION - Static variable in class com.reve.balancemanager.BalanceManager
 

W

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

Copyright © 2024. All rights reserved.