public class LDAPStatistics extends MonitorProvider<MonitorProviderCfg>
Constructor and Description |
---|
LDAPStatistics(String instanceName)
Creates a new instance of this class with the specified parent.
|
Modifier and Type | Method and Description |
---|---|
void |
clearStatistics()
Clears any statistical information collected to this point.
|
long |
getAbandonRequests()
Retrieves the number of abandon requests that have been received.
|
long |
getAddRequests()
Retrieves the number of add requests that have been received.
|
long |
getAddResponses()
Retrieves the number of add responses that have been sent.
|
long |
getAllRequests()
Returns the number of requests of all kind that have been processed.
|
long |
getBindRequests()
Retrieves the number of bind requests that have been received.
|
long |
getBytesRead()
Retrieves the number of bytes that have been received from clients.
|
long |
getBytesWritten()
Retrieves the number of bytes that have been written to clients.
|
long |
getCompareRequests()
Retrieves the number of compare requests that have been received.
|
long |
getDeleteRequests()
Retrieves the number of delete requests that have been received.
|
long |
getExtendedRequests()
Retrieves the number of extended requests that have been received.
|
long |
getModifyDnRequests()
Retrieves the number of modify DN requests that have been received.
|
long |
getModifyRequests()
Retrieves the number of modify requests that have been received.
|
long |
getModifyResponses()
Retrieves the number of modify responses that have been sent.
|
MonitorData |
getMonitorData()
Retrieves a set of attributes containing monitor data that should be returned to the client if the corresponding
monitor entry is requested.
|
String |
getMonitorInstanceName()
Retrieves the name of this monitor provider.
|
ObjectClass |
getMonitorObjectClass()
Retrieves the objectclass that should be included in the monitor entry created from this monitor provider.
|
long |
getOperationsAbandoned()
Retrieves the number of operations that have been abandoned by clients.
|
long |
getSearchRequests()
Retrieves the number of search requests that have been received.
|
long |
getSearchResultEntries()
Retrieves the number of search result entries that have been sent.
|
long |
getSearchResultReferences()
Retrieves the number of search result references that have been sent.
|
long |
getSearchResultsDone()
Retrieves the number of search result done messages that have been sent.
|
void |
initializeMonitorProvider(MonitorProviderCfg configuration)
Initializes this monitor provider based on the information in the provided configuration entry.
|
void |
updateBytesRead(int bytesRead)
Updates the appropriate set of counters to indicate that the specified number of bytes have been read by the
client.
|
void |
updateBytesWritten(int bytesWritten)
Updates the appropriate set of counters to indicate that the specified number of bytes have been written to the
client.
|
void |
updateConnect()
Updates the appropriate set of counters to indicate that a new connection has been established.
|
void |
updateDisconnect()
Updates the appropriate set of counters to indicate that a connection has been closed.
|
void |
updateMessageRead(Request request)
Updates the appropriate set of counters based on the provided
Request that has been read from the client. |
finalizeMonitorProvider, getMonitorInstanceDn, isConfigurationAcceptable, scheduleUpdate
public LDAPStatistics(String instanceName)
instanceName
- The name for this monitor provider instance.public void initializeMonitorProvider(MonitorProviderCfg configuration) throws ConfigException
MonitorProvider
initializeMonitorProvider
in class MonitorProvider<MonitorProviderCfg>
configuration
- The configuration to use to initialize this monitor provider.ConfigException
- If an unrecoverable problem arises in the process of performing the initialization.public String getMonitorInstanceName()
MonitorProvider
UnsupportedOperationException
indicating that neither this method nor MonitorProvider.getMonitorInstanceDn()
have been
overridden.getMonitorInstanceName
in class MonitorProvider<MonitorProviderCfg>
public ObjectClass getMonitorObjectClass()
MonitorProvider
getMonitorObjectClass
in class MonitorProvider<MonitorProviderCfg>
public MonitorData getMonitorData()
MonitorProvider
getMonitorData
in class MonitorProvider<MonitorProviderCfg>
public void clearStatistics()
public void updateConnect()
public void updateDisconnect()
public void updateBytesRead(int bytesRead)
bytesRead
- The number of bytes read by the client.public void updateBytesWritten(int bytesWritten)
bytesWritten
- The number of bytes written to the client.public void updateMessageRead(Request request)
Request
that has been read from the client.request
- The request that was read from the client.public long getBytesRead()
public long getBytesWritten()
public long getOperationsAbandoned()
public long getAbandonRequests()
public long getAddRequests()
public long getAddResponses()
public long getBindRequests()
public long getCompareRequests()
public long getDeleteRequests()
public long getExtendedRequests()
public long getModifyRequests()
public long getModifyResponses()
public long getModifyDnRequests()
public long getSearchRequests()
public long getSearchResultEntries()
public long getSearchResultReferences()
public long getSearchResultsDone()
public long getAllRequests()
Copyright 2010-2020 ForgeRock AS.