com.ibm.itim.apps.provisioning

Class ServiceStatistics

  • java.lang.Object
    • com.ibm.itim.apps.provisioning.ServiceStatistics
  • All Implemented Interfaces:
    java.io.Serializable


    public class ServiceStatistics
    extends java.lang.Object
    implements java.io.Serializable
    Value object containing the statistics tracked for a particular service. All statistics are tracked on a per server basis, and are reset when the server is restarted. Note that setters in this class only change the values tracked in the object instance.
    See Also:
    Serialized Form
    • Constructor Detail

      • ServiceStatistics

        public ServiceStatistics(DistinguishedName serviceDN)
        Constructs a ServiceStatistics instance with the specified service DistinguishedName, and all statistics set to zero.
        Parameters:
        serviceDN - DistinguishedName of the service
    • Method Detail

      • getServiceDN

        public DistinguishedName getServiceDN()
        Returns the DistinguishedName identifying the service.
        Returns:
        DistinguishedName of the service
      • getServiceFailuresDetected

        public long getServiceFailuresDetected()
        Returns the number of times that a service failure has been detected since the last server restart.
        Returns:
        number of service failures detected
      • getServiceRecoveriesAttempted

        public long getServiceRecoveriesAttempted()
        Returns the number of times that an attempt was made to recover this service after a failure.
        Returns:
        number of service recoveries attempted
      • getServiceRecoveriesCompleted

        public long getServiceRecoveriesCompleted()
        Returns the number of times that the service was successfully recovered after failure.
        Returns:
        number of service recoveries completed
      • getDeferredRequestsCreated

        public long getDeferredRequestsCreated()
        Returns the number of requests made to the service during its failures that were deferred for execution after recovery is complete.
        Returns:
        number of requests deferred due to failure
      • getDeferredRequestsCompleted

        public long getDeferredRequestsCompleted()
        Returns the number of deferred requests that have been re-executed since the service recovery process completed.
        Returns:
        number of deferred requests completed
      • getActiveRequests

        public long getActiveRequests()
        Returns the number of requests actively executing against the service.
        Returns:
        number of active requests
      • getActiveRequestsHung

        public long getActiveRequestsHung()
        Returns the number of requests actively executing against the service that are suspected to have hung.
        Returns:
        number of active requests that have hung
      • getAccountOperationCount

        public long getAccountOperationCount()
        Returns the number of account operations performed against the service.
        Returns:
        number of account operations
      • getAccountOperationAverage

        public long getAccountOperationAverage()
        Returns the average account operation execution time in milliseconds.
        Returns:
        average account execution time
      • getSearchOperationCount

        public long getSearchOperationCount()
        Returns the number of search operations performed against the service.
        Returns:
        number of search operations
      • getSearchOperationAverage

        public long getSearchOperationAverage()
        Returns the average search operation execution time in milliseconds.
        Returns:
        average search execution time
      • setServiceFailuresDetected

        public void setServiceFailuresDetected(long failuresDetected)
        Sets the number of service failures detected.
        Parameters:
        failuresDetected - failures detected
      • setServiceRecoveriesAttempted

        public void setServiceRecoveriesAttempted(long recoveryAttempts)
        Sets the number of service recoveries attempted.
        Parameters:
        recoveryAttempts - recoveries attempted
      • setServiceRecoveriesCompleted

        public void setServiceRecoveriesCompleted(long recoveryCompletes)
        Sets the number of service recoveries completed.
        Parameters:
        recoveryCompletes - recoveries completd
      • setDeferredRequestsCreated

        public void setDeferredRequestsCreated(long deferredRequestsCreated)
        Sets the number of deferred requests created due to service failure.
        Parameters:
        deferredRequestsCreated - deferred requests created
      • setDeferredRequestsCompleted

        public void setDeferredRequestsCompleted(long deferredRequestsCompleted)
        Sets the number of deferred requests completed after service failure and recovery.
        Parameters:
        deferredRequestsCompleted - deferred requests completed
      • setActiveRequests

        public void setActiveRequests(long activeRequests)
        Sets the number of active requests.
        Parameters:
        activeRequests - active request count
      • setActiveRequestsHung

        public void setActiveRequestsHung(long activeRequestsHung)
        Sets the number of hung requests.
        Parameters:
        activeRequestsHung - hung request count
      • setAccountOperationCount

        public void setAccountOperationCount(long accountOperationCnt)
        Sets the number of account operations performed.
        Parameters:
        accountOperationCnt - account operation count
      • setAccountOperationAverage

        public void setAccountOperationAverage(long accountOperationAvg)
        Sets the average account operation execution time.
        Parameters:
        accountOperationAvg - account operation time in milliseconds
      • setSearchOperationCount

        public void setSearchOperationCount(long searchOperationCnt)
        Sets the number of search operations performed.
        Parameters:
        searchOperationCnt - search operation count
      • setSearchOperationAverage

        public void setSearchOperationAverage(long searchOperationAvg)
        Sets the average search operation execution time.
        Parameters:
        searchOperationAvg - search operation time in milliseconds
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object