Back to index

openldap  2.4.31
Classes | Defines | Typedefs | Enumerations | Variables
back-monitor.h File Reference
#include <ldap_pvt.h>
#include <ldap_pvt_thread.h>
#include <avl.h>
#include <slap.h>
#include "proto-back-monitor.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  monitor_callback_t
struct  monitor_entry_t
struct  monitor_info_t
struct  monitor_subsys_t
struct  monitor_extra_t

Defines

#define mp_type   mp_info->mss_type
#define MONITOR_F_NONE   0x0000U
#define MONITOR_F_SUB   0x0001U /* subentry of subsystem */
#define MONITOR_F_PERSISTENT   0x0010U /* persistent entry */
#define MONITOR_F_PERSISTENT_CH
#define MONITOR_F_VOLATILE   0x0040U /* volatile entry */
#define MONITOR_F_VOLATILE_CH
#define MONITOR_F_EXTERNAL   0x0100U /* externally added - don't free */
#define SLAPD_MONITOR_AT   "cn"
#define SLAPD_MONITOR_BACKEND_NAME   "Backends"
#define SLAPD_MONITOR_BACKEND_RDN   SLAPD_MONITOR_AT "=" SLAPD_MONITOR_BACKEND_NAME
#define SLAPD_MONITOR_BACKEND_DN   SLAPD_MONITOR_BACKEND_RDN "," SLAPD_MONITOR_DN
#define SLAPD_MONITOR_CONN_NAME   "Connections"
#define SLAPD_MONITOR_CONN_RDN   SLAPD_MONITOR_AT "=" SLAPD_MONITOR_CONN_NAME
#define SLAPD_MONITOR_CONN_DN   SLAPD_MONITOR_CONN_RDN "," SLAPD_MONITOR_DN
#define SLAPD_MONITOR_DATABASE_NAME   "Databases"
#define SLAPD_MONITOR_DATABASE_RDN   SLAPD_MONITOR_AT "=" SLAPD_MONITOR_DATABASE_NAME
#define SLAPD_MONITOR_DATABASE_DN   SLAPD_MONITOR_DATABASE_RDN "," SLAPD_MONITOR_DN
#define SLAPD_MONITOR_LISTENER_NAME   "Listeners"
#define SLAPD_MONITOR_LISTENER_RDN   SLAPD_MONITOR_AT "=" SLAPD_MONITOR_LISTENER_NAME
#define SLAPD_MONITOR_LISTENER_DN   SLAPD_MONITOR_LISTENER_RDN "," SLAPD_MONITOR_DN
#define SLAPD_MONITOR_LOG_NAME   "Log"
#define SLAPD_MONITOR_LOG_RDN   SLAPD_MONITOR_AT "=" SLAPD_MONITOR_LOG_NAME
#define SLAPD_MONITOR_LOG_DN   SLAPD_MONITOR_LOG_RDN "," SLAPD_MONITOR_DN
#define SLAPD_MONITOR_OPS_NAME   "Operations"
#define SLAPD_MONITOR_OPS_RDN   SLAPD_MONITOR_AT "=" SLAPD_MONITOR_OPS_NAME
#define SLAPD_MONITOR_OPS_DN   SLAPD_MONITOR_OPS_RDN "," SLAPD_MONITOR_DN
#define SLAPD_MONITOR_OVERLAY_NAME   "Overlays"
#define SLAPD_MONITOR_OVERLAY_RDN   SLAPD_MONITOR_AT "=" SLAPD_MONITOR_OVERLAY_NAME
#define SLAPD_MONITOR_OVERLAY_DN   SLAPD_MONITOR_OVERLAY_RDN "," SLAPD_MONITOR_DN
#define SLAPD_MONITOR_SASL_NAME   "SASL"
#define SLAPD_MONITOR_SASL_RDN   SLAPD_MONITOR_AT "=" SLAPD_MONITOR_SASL_NAME
#define SLAPD_MONITOR_SASL_DN   SLAPD_MONITOR_SASL_RDN "," SLAPD_MONITOR_DN
#define SLAPD_MONITOR_SENT_NAME   "Statistics"
#define SLAPD_MONITOR_SENT_RDN   SLAPD_MONITOR_AT "=" SLAPD_MONITOR_SENT_NAME
#define SLAPD_MONITOR_SENT_DN   SLAPD_MONITOR_SENT_RDN "," SLAPD_MONITOR_DN
#define SLAPD_MONITOR_THREAD_NAME   "Threads"
#define SLAPD_MONITOR_THREAD_RDN   SLAPD_MONITOR_AT "=" SLAPD_MONITOR_THREAD_NAME
#define SLAPD_MONITOR_THREAD_DN   SLAPD_MONITOR_THREAD_RDN "," SLAPD_MONITOR_DN
#define SLAPD_MONITOR_TIME_NAME   "Time"
#define SLAPD_MONITOR_TIME_RDN   SLAPD_MONITOR_AT "=" SLAPD_MONITOR_TIME_NAME
#define SLAPD_MONITOR_TIME_DN   SLAPD_MONITOR_TIME_RDN "," SLAPD_MONITOR_DN
#define SLAPD_MONITOR_TLS_NAME   "TLS"
#define SLAPD_MONITOR_TLS_RDN   SLAPD_MONITOR_AT "=" SLAPD_MONITOR_TLS_NAME
#define SLAPD_MONITOR_TLS_DN   SLAPD_MONITOR_TLS_RDN "," SLAPD_MONITOR_DN
#define SLAPD_MONITOR_RWW_NAME   "Waiters"
#define SLAPD_MONITOR_RWW_RDN   SLAPD_MONITOR_AT "=" SLAPD_MONITOR_RWW_NAME
#define SLAPD_MONITOR_RWW_DN   SLAPD_MONITOR_RWW_RDN "," SLAPD_MONITOR_DN
#define MONITOR_F_OPENED   0x10000000U
#define MONITOR_HAS_VOLATILE_CH(mp)   ( ( mp )->mp_flags & MONITOR_F_VOLATILE_CH )
#define MONITOR_HAS_CHILDREN(mp)   ( ( mp )->mp_children || MONITOR_HAS_VOLATILE_CH( mp ) )
#define BACKMONITOR_BUFSIZE   8192

Typedefs

typedef LDAP_BEGIN_DECL struct
monitor_callback_t 
monitor_callback_t
typedef struct monitor_entry_t monitor_entry_t
typedef struct monitor_info_t monitor_info_t
typedef struct monitor_subsys_t monitor_subsys_t
typedef intmonitor_cbfunc )(struct berval *ndn, monitor_callback_t *cb, struct berval *base, int scope, struct berval *filter)
typedef intmonitor_cbafunc )(struct berval *ndn, Attribute *a, monitor_callback_t *cb, struct berval *base, int scope, struct berval *filter)
typedef struct monitor_extra_t monitor_extra_t

Enumerations

enum  {
  SLAPD_MONITOR_BACKEND = 0, SLAPD_MONITOR_CONN, SLAPD_MONITOR_DATABASE, SLAPD_MONITOR_LISTENER,
  SLAPD_MONITOR_LOG, SLAPD_MONITOR_OPS, SLAPD_MONITOR_OVERLAY, SLAPD_MONITOR_SASL,
  SLAPD_MONITOR_SENT, SLAPD_MONITOR_THREAD, SLAPD_MONITOR_TIME, SLAPD_MONITOR_TLS,
  SLAPD_MONITOR_RWW, SLAPD_MONITOR_LAST
}

Variables

BackendDBbe_monitor

Class Documentation

struct monitor_entry_t

Definition at line 55 of file back-monitor.h.

Collaboration diagram for monitor_entry_t:
Class Members
struct monitor_callback_t * mp_cb
Entry * mp_children
unsigned long mp_flags
struct monitor_subsys_t * mp_info
ldap_pvt_thread_mutex_t mp_mutex
Entry * mp_next
struct monitor_info_t

Definition at line 77 of file back-monitor.h.

Collaboration diagram for monitor_info_t:
Class Members
AttributeDescription * mi_ad_managedInfo
AttributeDescription * mi_ad_monitorConnectionActivityTime
AttributeDescription * mi_ad_monitorConnectionAuthzDN
AttributeDescription * mi_ad_monitorConnectionGet
AttributeDescription * mi_ad_monitorConnectionListener
AttributeDescription * mi_ad_monitorConnectionLocalAddress
AttributeDescription * mi_ad_monitorConnectionMask
AttributeDescription * mi_ad_monitorConnectionNumber
AttributeDescription * mi_ad_monitorConnectionOpsCompleted
AttributeDescription * mi_ad_monitorConnectionOpsExecuting
AttributeDescription * mi_ad_monitorConnectionOpsPending
AttributeDescription * mi_ad_monitorConnectionOpsReceived
AttributeDescription * mi_ad_monitorConnectionPeerAddress
AttributeDescription * mi_ad_monitorConnectionPeerDomain
AttributeDescription * mi_ad_monitorConnectionProtocol
AttributeDescription * mi_ad_monitorConnectionRead
AttributeDescription * mi_ad_monitorConnectionStartTime
AttributeDescription * mi_ad_monitorConnectionWrite
AttributeDescription * mi_ad_monitorCounter
AttributeDescription * mi_ad_monitoredInfo
AttributeDescription * mi_ad_monitorIsShadow
AttributeDescription * mi_ad_monitorOpCompleted
AttributeDescription * mi_ad_monitorOpInitiated
AttributeDescription * mi_ad_monitorOverlay
AttributeDescription * mi_ad_monitorRuntimeConfig
AttributeDescription * mi_ad_monitorSuperiorDN
AttributeDescription * mi_ad_monitorTimestamp
AttributeDescription * mi_ad_monitorUpdateRef
AttributeDescription * mi_ad_readOnly
AttributeDescription * mi_ad_restrictedOperation
Avlnode * mi_cache
ldap_pvt_thread_mutex_t mi_cache_mutex
struct entry_limbo_t * mi_entry_limbo
ObjectClass * mi_oc_managedObject
ObjectClass * mi_oc_monitor
ObjectClass * mi_oc_monitorConnection
ObjectClass * mi_oc_monitorContainer
ObjectClass * mi_oc_monitorCounterObject
ObjectClass * mi_oc_monitoredObject
ObjectClass * mi_oc_monitorOperation
ObjectClass * mi_oc_monitorServer

Define Documentation

#define BACKMONITOR_BUFSIZE   8192

Definition at line 274 of file back-monitor.h.

#define MONITOR_F_EXTERNAL   0x0100U /* externally added - don't free */

Definition at line 69 of file back-monitor.h.

#define MONITOR_F_NONE   0x0000U

Definition at line 63 of file back-monitor.h.

#define MONITOR_F_OPENED   0x10000000U

Definition at line 251 of file back-monitor.h.

#define MONITOR_F_PERSISTENT   0x0010U /* persistent entry */

Definition at line 65 of file back-monitor.h.

Value:
0x0020U              /* subsystem generates 
                                             persistent entries */

Definition at line 66 of file back-monitor.h.

#define MONITOR_F_SUB   0x0001U /* subentry of subsystem */

Definition at line 64 of file back-monitor.h.

#define MONITOR_F_VOLATILE   0x0040U /* volatile entry */

Definition at line 67 of file back-monitor.h.

Value:
0x0080U              /* subsystem generates 
                                             volatile entries */

Definition at line 68 of file back-monitor.h.

#define MONITOR_HAS_CHILDREN (   mp)    ( ( mp )->mp_children || MONITOR_HAS_VOLATILE_CH( mp ) )

Definition at line 255 of file back-monitor.h.

#define MONITOR_HAS_VOLATILE_CH (   mp)    ( ( mp )->mp_flags & MONITOR_F_VOLATILE_CH )

Definition at line 253 of file back-monitor.h.

#define mp_type   mp_info->mss_type

Definition at line 60 of file back-monitor.h.

#define SLAPD_MONITOR_AT   "cn"

Definition at line 164 of file back-monitor.h.

Definition at line 169 of file back-monitor.h.

#define SLAPD_MONITOR_BACKEND_NAME   "Backends"

Definition at line 166 of file back-monitor.h.

Definition at line 167 of file back-monitor.h.

Definition at line 175 of file back-monitor.h.

#define SLAPD_MONITOR_CONN_NAME   "Connections"

Definition at line 172 of file back-monitor.h.

Definition at line 173 of file back-monitor.h.

Definition at line 181 of file back-monitor.h.

#define SLAPD_MONITOR_DATABASE_NAME   "Databases"

Definition at line 178 of file back-monitor.h.

Definition at line 179 of file back-monitor.h.

Definition at line 187 of file back-monitor.h.

#define SLAPD_MONITOR_LISTENER_NAME   "Listeners"

Definition at line 184 of file back-monitor.h.

Definition at line 185 of file back-monitor.h.

Definition at line 193 of file back-monitor.h.

#define SLAPD_MONITOR_LOG_NAME   "Log"

Definition at line 190 of file back-monitor.h.

Definition at line 191 of file back-monitor.h.

Definition at line 199 of file back-monitor.h.

#define SLAPD_MONITOR_OPS_NAME   "Operations"

Definition at line 196 of file back-monitor.h.

Definition at line 197 of file back-monitor.h.

Definition at line 205 of file back-monitor.h.

#define SLAPD_MONITOR_OVERLAY_NAME   "Overlays"

Definition at line 202 of file back-monitor.h.

Definition at line 203 of file back-monitor.h.

Definition at line 241 of file back-monitor.h.

#define SLAPD_MONITOR_RWW_NAME   "Waiters"

Definition at line 238 of file back-monitor.h.

Definition at line 239 of file back-monitor.h.

Definition at line 211 of file back-monitor.h.

#define SLAPD_MONITOR_SASL_NAME   "SASL"

Definition at line 208 of file back-monitor.h.

Definition at line 209 of file back-monitor.h.

Definition at line 217 of file back-monitor.h.

#define SLAPD_MONITOR_SENT_NAME   "Statistics"

Definition at line 214 of file back-monitor.h.

Definition at line 215 of file back-monitor.h.

Definition at line 223 of file back-monitor.h.

#define SLAPD_MONITOR_THREAD_NAME   "Threads"

Definition at line 220 of file back-monitor.h.

Definition at line 221 of file back-monitor.h.

Definition at line 229 of file back-monitor.h.

#define SLAPD_MONITOR_TIME_NAME   "Time"

Definition at line 226 of file back-monitor.h.

Definition at line 227 of file back-monitor.h.

Definition at line 235 of file back-monitor.h.

#define SLAPD_MONITOR_TLS_NAME   "TLS"

Definition at line 232 of file back-monitor.h.

Definition at line 233 of file back-monitor.h.


Typedef Documentation

typedef int( monitor_cbafunc)(struct berval *ndn, Attribute *a, monitor_callback_t *cb, struct berval *base, int scope, struct berval *filter)

Definition at line 279 of file back-monitor.h.

typedef int( monitor_cbfunc)(struct berval *ndn, monitor_callback_t *cb, struct berval *base, int scope, struct berval *filter)

Definition at line 276 of file back-monitor.h.


Enumeration Type Documentation

anonymous enum
Enumerator:
SLAPD_MONITOR_BACKEND 
SLAPD_MONITOR_CONN 
SLAPD_MONITOR_DATABASE 
SLAPD_MONITOR_LISTENER 
SLAPD_MONITOR_LOG 
SLAPD_MONITOR_OPS 
SLAPD_MONITOR_OVERLAY 
SLAPD_MONITOR_SASL 
SLAPD_MONITOR_SENT 
SLAPD_MONITOR_THREAD 
SLAPD_MONITOR_TIME 
SLAPD_MONITOR_TLS 
SLAPD_MONITOR_RWW 
SLAPD_MONITOR_LAST 

Definition at line 146 of file back-monitor.h.


Variable Documentation

Definition at line 44 of file init.c.