Solaris Bandwidth Manager 1.6 Developer Guide

Directory M-bean

The directory policy m-bean provides classes and methods for monitoring changes to directory information. The main classes and methods are:

Table 2-2 Directory M-bean Classes and Methods

Class 

Method 

Description 

QDirMod

toString()

Returns a string representation of operation/value pairs 

getOpe()

Returns the operation (ADD, MODIFY, or DELETE) 

getAttr()

Returns the name of the attribute to which the operation applies 

QDirRep

toString()

Returns a string representation of the replication data sent by the directory server 

getDirOpe()

Returns the operation (ADD, MODIFY, MODIFYDN, or DELETE) 

getDN()

Returns the distinguished name (DN) of an entry 

getQDirMods()

Returns the vector of modifications sent when the operation is a MODIFY 

getNewDN()

Returns the new DN sent when the operation is a MODIFYDN 

getAttrs()

Returns the list of attribute/value pairs sent when the operation is an ADD 

QDirEvent

getTarget()

Returns the replicated modification referred to in the event 

QDir

addQDirListener()

Registers a listener for receiving directory-related events 

removeQDirListener()

Stops a listener receiving directory-related events 

QDirListener

handleQDirEvent()

Returns an event 

To call the directory m-bean, you require the following:

M-bean name 

QConstants.dirMOName

M-bean class name 

com.sun.ba.ldap.QDir

C-bean class name 

com.sun.ba.mo.QDirMO