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

A

ACK_FREEZE_REQUEST - Static variable in class com.reve.balancemanager.BalanceManager
 
ACK_FREEZE_REQUEST - Static variable in class com.reve.balancemanager.BalanceManager
 
ackFreezeRequest(long) - Method in class com.reve.balancemanager.cluster.PubSubPublisher
 
ackFreezeRequest(long) - Method in class com.reve.balancemanager.cluster.PubSubPublisher
 
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.LeaseDTO
 
adjustLeaseChunkAmount(long) - Method in class com.reve.balancemanager.LeaseDTO
 

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.BalanceManager
 
BALANCE_FREEZE_CHANNEL - Static variable in class com.reve.balancemanager.BalanceManager
 
BALANCE_SYNC_CHANNEL - Static variable in class com.reve.balancemanager.BalanceManager
 
BALANCE_SYNC_CHANNEL - Static variable in class com.reve.balancemanager.BalanceManager
 
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) - 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) - 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.

C

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.cluster - package com.reve.balancemanager.cluster
 
com.reve.balancemanager.util - package com.reve.balancemanager.util
 

D

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

E

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

F

FREEZE_COMPLETE - Static variable in class com.reve.balancemanager.BalanceManager
 
FREEZE_COMPLETE - Static variable in class com.reve.balancemanager.BalanceManager
 
FREEZE_REQUEST - Static variable in class com.reve.balancemanager.BalanceManager
 
FREEZE_REQUEST - Static variable in class com.reve.balancemanager.BalanceManager
 
Functions - Class in com.reve.balancemanager.util
Contains the helper functions of the project
Functions - Class in com.reve.balancemanager.util
Contains the helper functions of the project
Functions() - Constructor for class com.reve.balancemanager.util.Functions
 
Functions() - Constructor for class com.reve.balancemanager.util.Functions
 

G

getAccountId() - Method in class com.reve.balancemanager.LeaseDTO
 
getAccountId() - Method in class com.reve.balancemanager.LeaseDTO
 
getAvailableLocalBalance() - Method in class com.reve.balancemanager.LeaseDTO
 
getAvailableLocalBalance() - Method in class com.reve.balancemanager.LeaseDTO
 
getCallerLocation() - Static method in class com.reve.balancemanager.util.Functions
 
getCallerLocation() - Static method in class com.reve.balancemanager.util.Functions
 
getClusterObserver() - Method in class com.reve.balancemanager.BalanceManager
getClusterObserver() - Method in class com.reve.balancemanager.BalanceManager
getDefaultDecimalPoint() - Static method in class com.reve.balancemanager.util.DisplayFormat
 
getDefaultDecimalPoint() - Static method in class com.reve.balancemanager.util.DisplayFormat
 
getIdentifier() - Method in class com.reve.balancemanager.BalanceManager
 
getIdentifier() - Method in class com.reve.balancemanager.BalanceManager
 
getLease(long, double) - Method in class com.reve.balancemanager.BalanceManager
Try to get a lease from this account balance.
getLease(long, double) - Method in class com.reve.balancemanager.BalanceManager
Try to get a lease from this account balance.
getLease(double) - Method in class com.reve.balancemanager.LeaseDTO
Try to get a lease from this account balance.
getLease(double) - Method in class com.reve.balancemanager.LeaseDTO
Try to get a lease from this account balance.
getPercentageToRelease() - Method in class com.reve.balancemanager.BalanceManager
 
getPercentageToRelease() - Method in class com.reve.balancemanager.BalanceManager
 
getPubSubPublisher() - Method in class com.reve.balancemanager.BalanceManager
 
getPubSubPublisher() - Method in class com.reve.balancemanager.BalanceManager
 
getRoundedDecimal(double) - Static method in class com.reve.balancemanager.util.DisplayFormat
 
getRoundedDecimal(double, int) - Static method in class com.reve.balancemanager.util.DisplayFormat
 
getRoundedDecimal(double) - Static method in class com.reve.balancemanager.util.DisplayFormat
 
getRoundedDecimal(double, int) - Static method in class com.reve.balancemanager.util.DisplayFormat
 
getStackTrace() - Static method in class com.reve.balancemanager.util.Functions
 
getStackTrace() - Static method in class com.reve.balancemanager.util.Functions
 
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

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.BalanceManager
 
LEASE_EMPTY_STATUS - Static variable in class com.reve.balancemanager.BalanceManager
 
LeaseDTO - Class in com.reve.balancemanager
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
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.LeaseDTO
Create a LeaseDTO instance for the given account id
LeaseDTO(long, BalanceManager) - Constructor for class com.reve.balancemanager.LeaseDTO
Create a LeaseDTO instance for the given account id
loadLuaScript(String) - Static method in class com.reve.balancemanager.util.Functions
This is to load the lua script in our java program.
loadLuaScript(String) - Static method in class com.reve.balancemanager.util.Functions
This is to load the lua script in our java program.

M

main(String[]) - Static method in class com.reve.balancemanager.Test
 
main(String[]) - Static method in class com.reve.balancemanager.Test
 
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
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
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(BalanceManager) - Constructor for class com.reve.balancemanager.MysqlBalanceUpdater
Create the instance
MysqlBalanceUpdater(BalanceManager) - Constructor for class com.reve.balancemanager.MysqlBalanceUpdater
Create the instance

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
 
onMessage(String, String) - Method in class com.reve.balancemanager.cluster.PubSubSubscriber
 
onMessage(String, String) - Method in class com.reve.balancemanager.cluster.PubSubSubscriber
 
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.
onSubscribe(String, int) - Method in class com.reve.balancemanager.cluster.PubSubSubscriber
 
onSubscribe(String, int) - Method in class com.reve.balancemanager.cluster.PubSubSubscriber
 
onUnsubscribe(String, int) - Method in class com.reve.balancemanager.cluster.PubSubSubscriber
 
onUnsubscribe(String, int) - Method in class com.reve.balancemanager.cluster.PubSubSubscriber
 

P

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.
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.cluster.PubSubPublisher
 
publishCompletedFreeze(long) - Method in class com.reve.balancemanager.cluster.PubSubPublisher
 
publishCompletedUnfreeze(long) - Method in class com.reve.balancemanager.cluster.PubSubPublisher
 
publishCompletedUnfreeze(long) - Method in class com.reve.balancemanager.cluster.PubSubPublisher
 
publishEmptyLeaseStatus(long) - Method in class com.reve.balancemanager.cluster.PubSubPublisher
 
publishEmptyLeaseStatus(long) - Method in class com.reve.balancemanager.cluster.PubSubPublisher
 
PubSubListener - Class in com.reve.balancemanager.cluster
Listener Thread to subscribe to the channels needed for communication in Redis cluster
PubSubListener - Class in com.reve.balancemanager.cluster
Listener Thread to subscribe to the channels needed for communication in Redis cluster
PubSubListener(String, JedisCluster, PubSubSubscriber, String[]) - Constructor for class com.reve.balancemanager.cluster.PubSubListener
 
PubSubListener(String, JedisCluster, PubSubSubscriber, String[]) - Constructor for class com.reve.balancemanager.cluster.PubSubListener
 
PubSubPublisher - Class in com.reve.balancemanager.cluster
Publisher class to publish messages in Redis cluster pubsub
PubSubPublisher - Class in com.reve.balancemanager.cluster
Publisher class to publish messages in Redis cluster pubsub
PubSubPublisher(String, JedisCluster) - Constructor for class com.reve.balancemanager.cluster.PubSubPublisher
 
PubSubPublisher(String, JedisCluster) - Constructor for class com.reve.balancemanager.cluster.PubSubPublisher
 
PubSubSubscriber - Class in com.reve.balancemanager.cluster
Subscriber class to subscribe and listen to messages in Redis cluster pubsub
PubSubSubscriber - Class in com.reve.balancemanager.cluster
Subscriber class to subscribe and listen to messages in Redis cluster pubsub
PubSubSubscriber(BalanceManager) - Constructor for class com.reve.balancemanager.cluster.PubSubSubscriber
 
PubSubSubscriber(BalanceManager) - Constructor for class com.reve.balancemanager.cluster.PubSubSubscriber
 

R

readFromDb(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.
readFromDb(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.
readResourceFile(String) - Static method in class com.reve.balancemanager.util.Functions
Read a text resource file.
readResourceFile(String) - Static method in class com.reve.balancemanager.util.Functions
Read a text resource file.
returnAvailableBalancePercentage(double) - Method in class com.reve.balancemanager.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.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) - 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) - 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.cluster.PubSubListener
 
run() - Method in class com.reve.balancemanager.cluster.PubSubListener
 
run() - Method in class com.reve.balancemanager.MysqlBalanceUpdater
Periodically update mysql balance for all client
run() - Method in class com.reve.balancemanager.MysqlBalanceUpdater
Periodically update mysql balance for all client

S

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
setDefaultDecimalPoint(int) - Static method in class com.reve.balancemanager.util.DisplayFormat
 
setDefaultDecimalPoint(int) - Static method in class com.reve.balancemanager.util.DisplayFormat
 
setFrozen(boolean) - Method in class com.reve.balancemanager.LeaseDTO
Setter for freeze/unfreeze state of an account
setFrozen(boolean) - Method in class com.reve.balancemanager.LeaseDTO
Setter for freeze/unfreeze state of an account
setPercentageToRelease(double) - Method in class com.reve.balancemanager.BalanceManager
Setter for the percentage which Balance Manager will release when BalanceManager.returnLeaseOnRequest(long) is called
setPercentageToRelease(double) - Method in class com.reve.balancemanager.BalanceManager
Setter for the percentage which Balance Manager will release when BalanceManager.returnLeaseOnRequest(long) 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.MysqlBalanceUpdater
Shutting down this thread.
shutDown() - Method in class com.reve.balancemanager.MysqlBalanceUpdater
Shutting down this thread.
startMysqlBalanceUpdate(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) - 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.

T

Test - Class in com.reve.balancemanager
 
Test - Class in com.reve.balancemanager
 
Test() - Constructor for class com.reve.balancemanager.Test
 
Test() - Constructor for class com.reve.balancemanager.Test
 
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
 

U

UNFREEZE_COMPLETE - Static variable in class com.reve.balancemanager.BalanceManager
 
UNFREEZE_COMPLETE - Static variable in class com.reve.balancemanager.BalanceManager
 
UNFREEZE_REQUEST - Static variable in class com.reve.balancemanager.BalanceManager
 
UNFREEZE_REQUEST - Static variable in class com.reve.balancemanager.BalanceManager
 
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.

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 O P R S T U W 
Skip navigation links

Copyright © 2022. All rights reserved.