Package com.github.ambry.account
Class AccountServiceCallback
- java.lang.Object
-
- com.github.ambry.account.AccountServiceCallback
-
- All Implemented Interfaces:
Callback<StatsSnapshot>
public class AccountServiceCallback extends java.lang.Object implements Callback<StatsSnapshot>
-
-
Constructor Summary
Constructors Constructor Description AccountServiceCallback(AccountService accountService)
Construct a AccountServiceCallback object
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onCompletion(StatsSnapshot results, java.lang.Exception exception)
When the aggregation report has been generated successfully, this method will be invoked and associatedAccountService
will select container which valid data size equals to zero from DELETE_IN_PROGRESSContainer
set and mark it INACTIVE in zookeeper.
-
-
-
Constructor Detail
-
AccountServiceCallback
public AccountServiceCallback(AccountService accountService)
Construct a AccountServiceCallback object- Parameters:
accountService
- theAccountService
associated with this callback.
-
-
Method Detail
-
onCompletion
public void onCompletion(StatsSnapshot results, java.lang.Exception exception)
When the aggregation report has been generated successfully, this method will be invoked and associatedAccountService
will select container which valid data size equals to zero from DELETE_IN_PROGRESSContainer
set and mark it INACTIVE in zookeeper.- Specified by:
onCompletion
in interfaceCallback<StatsSnapshot>
- Parameters:
results
- the StatsSnapshot whose values represents aggregated stats across all partitions.exception
- Exception occurred when updating Helix property store, not in aggregation phase, the result is still solid.
-
-