public class ServiceStatistics
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description |
|---|
ServiceStatistics(DistinguishedName serviceDN)
Constructs a ServiceStatistics instance with
the specified service DistinguishedName, and
all statistics set to zero.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getAccountOperationAverage()
Returns the average account operation execution
time in milliseconds.
|
long |
getAccountOperationCount()
Returns the number of account operations performed
against the service.
|
long |
getActiveRequests()
Returns the number of requests actively executing
against the service.
|
long |
getActiveRequestsHung()
Returns the number of requests actively executing
against the service that are suspected to have
hung.
|
long |
getDeferredRequestsCompleted()
Returns the number of deferred requests that
have been re-executed since the service recovery
process completed.
|
long |
getDeferredRequestsCreated()
Returns the number of requests made to the service
during its failures that were deferred for execution
after recovery is complete.
|
long |
getSearchOperationAverage()
Returns the average search operation execution
time in milliseconds.
|
long |
getSearchOperationCount()
Returns the number of search operations performed
against the service.
|
DistinguishedName |
getServiceDN()
Returns the DistinguishedName identifying the service.
|
long |
getServiceFailuresDetected()
Returns the number of times that a service
failure has been detected since the last server
restart.
|
long |
getServiceRecoveriesAttempted()
Returns the number of times that an attempt
was made to recover this service after a
failure.
|
long |
getServiceRecoveriesCompleted()
Returns the number of times that the
service was successfully recovered after
failure.
|
void |
setAccountOperationAverage(long accountOperationAvg)
Sets the average account operation execution time.
|
void |
setAccountOperationCount(long accountOperationCnt)
Sets the number of account operations performed.
|
void |
setActiveRequests(long activeRequests)
Sets the number of active requests.
|
void |
setActiveRequestsHung(long activeRequestsHung)
Sets the number of hung requests.
|
void |
setDeferredRequestsCompleted(long deferredRequestsCompleted)
Sets the number of deferred requests completed after
service failure and recovery.
|
void |
setDeferredRequestsCreated(long deferredRequestsCreated)
Sets the number of deferred requests created due to
service failure.
|
void |
setSearchOperationAverage(long searchOperationAvg)
Sets the average search operation execution time.
|
void |
setSearchOperationCount(long searchOperationCnt)
Sets the number of search operations performed.
|
void |
setServiceFailuresDetected(long failuresDetected)
Sets the number of service failures detected.
|
void |
setServiceRecoveriesAttempted(long recoveryAttempts)
Sets the number of service recoveries attempted.
|
void |
setServiceRecoveriesCompleted(long recoveryCompletes)
Sets the number of service recoveries completed.
|
java.lang.String |
toString() |
public ServiceStatistics(DistinguishedName serviceDN)
serviceDN - DistinguishedName of the servicepublic DistinguishedName getServiceDN()
public long getServiceFailuresDetected()
public long getServiceRecoveriesAttempted()
public long getServiceRecoveriesCompleted()
public long getDeferredRequestsCreated()
public long getDeferredRequestsCompleted()
public long getActiveRequests()
public long getActiveRequestsHung()
public long getAccountOperationCount()
public long getAccountOperationAverage()
public long getSearchOperationCount()
public long getSearchOperationAverage()
public void setServiceFailuresDetected(long failuresDetected)
failuresDetected - failures detectedpublic void setServiceRecoveriesAttempted(long recoveryAttempts)
recoveryAttempts - recoveries attemptedpublic void setServiceRecoveriesCompleted(long recoveryCompletes)
recoveryCompletes - recoveries completdpublic void setDeferredRequestsCreated(long deferredRequestsCreated)
deferredRequestsCreated - deferred requests createdpublic void setDeferredRequestsCompleted(long deferredRequestsCompleted)
deferredRequestsCompleted - deferred requests completedpublic void setActiveRequests(long activeRequests)
activeRequests - active request countpublic void setActiveRequestsHung(long activeRequestsHung)
activeRequestsHung - hung request countpublic void setAccountOperationCount(long accountOperationCnt)
accountOperationCnt - account operation countpublic void setAccountOperationAverage(long accountOperationAvg)
accountOperationAvg - account operation time in millisecondspublic void setSearchOperationCount(long searchOperationCnt)
searchOperationCnt - search operation countpublic void setSearchOperationAverage(long searchOperationAvg)
searchOperationAvg - search operation time in millisecondspublic java.lang.String toString()
toString in class java.lang.Object