Class RpcUserAuthCounter


  • public class RpcUserAuthCounter
    extends java.lang.Object
    Keeps track of the user's login/out counts per RPC server.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void clearCount()
      Clears all counts for the RPC server.
      int decrementAndGet​(java.lang.String authPrefix)
      Decrement and get the count for the specified user auth prefix.
      int getCount​(java.lang.String authPrefix)
      Gets the count for the specified user auth prefix.
      int incrementAndGet​(java.lang.String authPrefix)
      Increment and get the count for the specified user auth prefix.
      java.lang.String toString()
      Returns the string value of the user auth counter.
      • Methods inherited from class java.lang.Object

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

      • RpcUserAuthCounter

        public RpcUserAuthCounter()
    • Method Detail

      • incrementAndGet

        public int incrementAndGet​(java.lang.String authPrefix)
        Increment and get the count for the specified user auth prefix.
        Parameters:
        authPrefix - the auth prefix
        Returns:
        the int
      • decrementAndGet

        public int decrementAndGet​(java.lang.String authPrefix)
        Decrement and get the count for the specified user auth prefix.
        Parameters:
        authPrefix - the auth prefix
        Returns:
        the int
      • getCount

        public int getCount​(java.lang.String authPrefix)
        Gets the count for the specified user auth prefix.
        Parameters:
        authPrefix - the auth prefix
        Returns:
        the count
      • clearCount

        public void clearCount()
        Clears all counts for the RPC server.
      • toString

        public java.lang.String toString()
        Returns the string value of the user auth counter.
        Overrides:
        toString in class java.lang.Object