Class AccountServiceCallback

    • 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 associated AccountService will select container which valid data size equals to zero from DELETE_IN_PROGRESS Container set and mark it INACTIVE in zookeeper.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AccountServiceCallback

        public AccountServiceCallback​(AccountService accountService)
        Construct a AccountServiceCallback object
        Parameters:
        accountService - the AccountService 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 associated AccountService will select container which valid data size equals to zero from DELETE_IN_PROGRESS Container set and mark it INACTIVE in zookeeper.
        Specified by:
        onCompletion in interface Callback<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.