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

A

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
This method will try to adjust LeaseDTO.leaseChunkAmount dynamically.
adjustLeaseChunkAmount(long) - Method in class com.reve.balancemanager.lease.LeaseDTO
This method will try to adjust LeaseDTO.leaseChunkAmount dynamically.
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.
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.

B

BALANCE_FIELD - Static variable in class com.reve.balancemanager.BalanceManager
Redis cluster balance field constant key.
BALANCE_FIELD - Static variable in class com.reve.balancemanager.BalanceManager
Redis cluster balance field constant key.
BALANCE_FREEZE_CHANNEL - Static variable in class com.reve.balancemanager.pubsub.Channels
 
BALANCE_FREEZE_CHANNEL - Static variable in class com.reve.balancemanager.pubsub.Channels
 
BALANCE_SYNC_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.
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 BalanceManager.CLIENT_BALANCE_TABLE table.
BalanceManager - Class in com.reve.balancemanager
Manages balance information for all clients presents in mysql BalanceManager.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.
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 - Class in com.reve.balancemanager.mitigation
Class for the balance mitigation process.
BalanceMitigator() - Constructor for class com.reve.balancemanager.mitigation.BalanceMitigator
 
BalanceMitigator() - Constructor for class com.reve.balancemanager.mitigation.BalanceMitigator
 
BM_ID_FIELD - Static variable in class com.reve.balancemanager.BalanceManager
 
BM_ID_FIELD - Static variable in class com.reve.balancemanager.BalanceManager
 

C

call() - Method in class com.reve.balancemanager.mitigation.Mitigator
 
call() - Method in class com.reve.balancemanager.mitigation.Mitigator
 
Channels - Class in com.reve.balancemanager.pubsub
 
Channels - Class in com.reve.balancemanager.pubsub
 
Channels() - Constructor for class com.reve.balancemanager.pubsub.Channels
 
Channels() - Constructor for class com.reve.balancemanager.pubsub.Channels
 
CLIENT_BALANCE_TABLE - Static variable in class com.reve.balancemanager.BalanceManager
MySQL table name where balance information can be found
CLIENT_BALANCE_TABLE - Static variable in class com.reve.balancemanager.BalanceManager
MySQL table name where balance information can be found
com.reve.balancemanager - package com.reve.balancemanager
 
com.reve.balancemanager.lease - package com.reve.balancemanager.lease
 
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
 
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
decreaseBalance(long, double, double) - Method in class com.reve.balancemanager.recharge.RechargeManager
Decrease the balance for the given accountID

E

execute(String, JedisCluster, String, String) - Static method in class com.reve.balancemanager.util.LuaScriptExecutor
Method to execute loaded lua script in the Redis cluster
execute(String, JedisCluster, String, String) - Static method in class com.reve.balancemanager.util.LuaScriptExecutor
Method to execute loaded lua script in the Redis cluster

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
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_COMPLETE - Static variable in class com.reve.balancemanager.pubsub.MessageType
 
FREEZE_REQUEST - 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.lease.LeaseDTO
 
getAccountId() - Method in class com.reve.balancemanager.lease.LeaseDTO
 
getAccountID() - Method in class com.reve.balancemanager.pubsub.PublishMessage
 
getAccountID() - Method in class com.reve.balancemanager.pubsub.PublishMessage
 
getAccountIDList() - Method in class com.reve.balancemanager.mitigation.Configuration
 
getAccountIDList() - Method in class com.reve.balancemanager.mitigation.Configuration
 
getAmount() - Method in class com.reve.balancemanager.lease.RedisCall
 
getAmount() - Method in class com.reve.balancemanager.lease.RedisCall
 
getAvailableLocalBalance() - Method in class com.reve.balancemanager.lease.LeaseDTO
 
getAvailableLocalBalance() - Method in class com.reve.balancemanager.lease.LeaseDTO
 
getBalanceManagerID() - Method in class com.reve.balancemanager.mitigation.Configuration
 
getBalanceManagerID() - Method in class com.reve.balancemanager.mitigation.Configuration
 
getChannel() - Method in class com.reve.balancemanager.pubsub.PublishMessage
 
getChannel() - Method in class com.reve.balancemanager.pubsub.PublishMessage
 
getClusterObserver() - Method in class com.reve.balancemanager.BalanceManager
getClusterObserver() - Method in class com.reve.balancemanager.BalanceManager
getIdentifier() - Method in class com.reve.balancemanager.BalanceManager
 
getIdentifier() - Method in class com.reve.balancemanager.BalanceManager
 
getInstance() - Static method in class com.reve.balancemanager.mitigation.Configuration
 
getInstance() - Static method in class com.reve.balancemanager.mitigation.Configuration
 
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(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.lease.LeaseDTO
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() - Method in class com.reve.balancemanager.lease.RedisCall
 
getLeaseDTO() - Method in class com.reve.balancemanager.lease.RedisCall
 
getLeaseMap() - Method in class com.reve.balancemanager.BalanceManager
Get the map containing all the LeaseDTO instances.
getLeaseMap() - Method in class com.reve.balancemanager.BalanceManager
Get the map containing all the LeaseDTO instances.
getMessageType() - Method in class com.reve.balancemanager.pubsub.PublishMessage
 
getMessageType() - Method in class com.reve.balancemanager.pubsub.PublishMessage
 
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) - 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.
getPercentageToRelease() - Method in class com.reve.balancemanager.BalanceManager
 
getPercentageToRelease() - Method in class com.reve.balancemanager.BalanceManager
 
getPublisher() - Method in class com.reve.balancemanager.BalanceManager
getPublisher() - Method in class com.reve.balancemanager.BalanceManager
getPubSubPublisher() - Method in class com.reve.balancemanager.BalanceManager
 
getPubSubPublisher() - Method in class com.reve.balancemanager.BalanceManager
 
getRedisAuthPassword() - Method in class com.reve.balancemanager.mitigation.Configuration
 
getRedisAuthPassword() - Method in class com.reve.balancemanager.mitigation.Configuration
 
getRedisHostAddress() - 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
 
getRedisHostPort() - Method in class com.reve.balancemanager.mitigation.Configuration
 
getRedisKeystoreFilePassword() - 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
 
getRedisKeystoreFilePath() - Method in class com.reve.balancemanager.mitigation.Configuration
 
getRedisKeystoreKeyPassword() - 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
 
getThresholdToReleaseFullAmount() - Method in class com.reve.balancemanager.BalanceManager
 

I

immediateDatabaseBalanceUpdate(long) - Method in class com.reve.balancemanager.MysqlBalanceUpdater
When this account maintenance is needed and mysql balance need to be updated immediately, this method does that
immediateDatabaseBalanceUpdate(long) - Method in class com.reve.balancemanager.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
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.lease.LeaseDTO
Call hincrByFloat method in JedisCluster instance.
increaseRedis(double) - Method in class com.reve.balancemanager.lease.LeaseDTO
Call hincrByFloat method in JedisCluster instance.

L

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.
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
loadLeaseInfoToClusterIfNotPresent() - Method in class com.reve.balancemanager.lease.LeaseDTO
Successful completion of this method will ensure the presence of this LeaseDTO in redis cluster Either in the nearest node or In the far nod.
loadLeaseInfoToClusterIfNotPresent() - Method in class com.reve.balancemanager.lease.LeaseDTO
Successful completion of this method will ensure the presence of this LeaseDTO in redis cluster Either in the nearest node or In the far nod.
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
 

M

main(String[]) - Static method in class com.reve.balancemanager.mitigation.BalanceMitigator
 
main(String[]) - Static method in class com.reve.balancemanager.mitigation.BalanceMitigator
 
MAX_THREAD_COUNT - Static variable in class com.reve.balancemanager.BalanceManager
 
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 @getLease is called
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 @getLease 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.
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 - Class in com.reve.balancemanager.pubsub
 
MessageType() - Constructor for class com.reve.balancemanager.pubsub.MessageType
 
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 @getLease is called
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 @getLease is called
mitigatePossibleBalanceMismatch(long) - Method in class com.reve.balancemanager.BalanceManager
This method will call balance mitigatory process to resolve any dispute in balance.
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
Thread class which will work on balance sync for a specified account
Mitigator - Class in com.reve.balancemanager.mitigation
Thread class which will work on balance sync for a specified account
Mitigator(BalanceManager, long, Double, Double) - Constructor for class com.reve.balancemanager.mitigation.Mitigator
Constructor specifying the account for which this thread will be called and under which mitigator this thread will work
Mitigator(BalanceManager, long, Double, Double) - Constructor for class com.reve.balancemanager.mitigation.Mitigator
Constructor specifying the account for which this thread will be called and under which mitigator this thread will work
MysqlBalanceUpdater - Class in com.reve.balancemanager
Updates client balance in mysql periodically
MysqlBalanceUpdater - Class in com.reve.balancemanager
Updates client balance in mysql periodically
MysqlBalanceUpdater(boolean) - Constructor for class com.reve.balancemanager.MysqlBalanceUpdater
Create the instance
MysqlBalanceUpdater(boolean) - Constructor for class com.reve.balancemanager.MysqlBalanceUpdater
Create the instance

N

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

O

onAccFreeze(long) - Method in interface com.reve.balancemanager.BalanceFreezer
 
onAccFreeze(long) - Method in interface com.reve.balancemanager.BalanceFreezer
 
onAccUnfreeze(long) - Method in interface com.reve.balancemanager.BalanceFreezer
 
onAccUnfreeze(long) - Method in interface com.reve.balancemanager.BalanceFreezer
 
ongoingSyncMap - Variable in class com.reve.balancemanager.BalanceManager
Contains all the instance of running Mitigator mapped with Account ID.
ongoingSyncMap - Variable in class com.reve.balancemanager.BalanceManager
Contains all the instance of running Mitigator mapped with Account ID.
onMessage(String, String) - Method in class com.reve.balancemanager.pubsub.PubSubSubscriber
Process the message received from the given channel.
onMessage(String, String) - Method in class com.reve.balancemanager.pubsub.PubSubSubscriber
Process the message received from the given channel.
onProcessShutdown() - 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() - 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() - Method in class com.reve.balancemanager.lease.LeaseDTO
Do all the task required to do while the application is shutting down.
onProcessShutdown() - 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.
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.
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.
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.
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.
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.
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.
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
Publish a MessageType.FREEZE_REQUEST message in Channels.BALANCE_FREEZE_CHANNEL to freeze the given account ID.
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 - 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
Publish a MessageType.UNFREEZE_REQUEST message in Channels.BALANCE_FREEZE_CHANNEL to un-freeze the given account ID.
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 - 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.

R

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
Whenever any redis call is required by RedisCaller thread, An instance of this RedisCall dto class must be pushed into the queue of RedisCaller thread.
RedisCall - Class in com.reve.balancemanager.lease
Whenever any redis call is required by RedisCaller thread, An instance of this RedisCall dto class must be pushed into the queue of RedisCaller thread.
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
Protected constructor, only to be called from BalanceManager
RedisCaller() - Constructor for class com.reve.balancemanager.lease.RedisCaller
Protected constructor, only to be called from BalanceManager
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.

S

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
 
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
Setter for the percentage which Balance Manager will release when BalanceManager.returnLeaseOnRequest(long, boolean) is called
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
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.
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.

T

takeOverAsMaster(Map<? extends Long, ? extends LeaseDTO>) - Method in class com.reve.balancemanager.BalanceManager
Clear BalanceManager.accountIdLeaseDtoMap and populate it with new Values present in the parameter map.
takeOverAsMaster(Map<? extends Long, ? extends LeaseDTO>) - Method in class com.reve.balancemanager.BalanceManager
Clear BalanceManager.accountIdLeaseDtoMap and populate it with new Values present in the parameter map.
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_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
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
 
TOKENIZER - Static variable in class com.reve.balancemanager.BalanceManager
 
toString() - Method in class com.reve.balancemanager.lease.LeaseDTO
For debugging purpose
toString() - Method in class com.reve.balancemanager.lease.LeaseDTO
For debugging purpose
toString() - Method in class com.reve.balancemanager.lease.LeaseResponse
 
toString() - Method in class com.reve.balancemanager.lease.LeaseResponse
 
toString() - Method in class com.reve.balancemanager.lease.RedisCall
 
toString() - Method in class com.reve.balancemanager.lease.RedisCall
 
toString() - Method in class com.reve.balancemanager.pubsub.PublishMessage
 
toString() - Method in class com.reve.balancemanager.pubsub.PublishMessage
 

U

UNFREEZE_COMPLETE - Static variable in class com.reve.balancemanager.pubsub.MessageType
 
UNFREEZE_COMPLETE - Static variable in class com.reve.balancemanager.pubsub.MessageType
 
UNFREEZE_REQUEST - Static variable in class com.reve.balancemanager.pubsub.MessageType
 
UNFREEZE_REQUEST - Static variable in class com.reve.balancemanager.pubsub.MessageType
 
updateLeaseDTO(long, double) - Method in class com.reve.balancemanager.BalanceManager
When take-over happens, this method must be called so that it will create an instance of LeaseDTO and update it with given information.
updateLeaseDTO(long, double) - Method in class com.reve.balancemanager.BalanceManager
When take-over happens, this method must be called so that it will create an instance of LeaseDTO and update it with given information.
updateMysqlBalanceForAllClient() - Method in class com.reve.balancemanager.MysqlBalanceUpdater
Mysql balance is updated for all client.
updateMysqlBalanceForAllClient() - Method in class com.reve.balancemanager.MysqlBalanceUpdater
Mysql balance is updated for all client.
updateUnSyncedInformation(BalanceManager) - Method in class com.reve.balancemanager.lease.LeaseDTO
When slave has taken over as master.
updateUnSyncedInformation(BalanceManager) - Method in class com.reve.balancemanager.lease.LeaseDTO
When slave has taken over as master.

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
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 W 
Skip navigation links

Copyright © 2022. All rights reserved.