org.apache.directory.server.core.schema
Class OidRegistryMonitorAdapter

java.lang.Object
  extended by org.apache.directory.server.core.schema.OidRegistryMonitorAdapter
All Implemented Interfaces:
OidRegistryMonitor

public class OidRegistryMonitorAdapter
extends java.lang.Object
implements OidRegistryMonitor

An adapter for an OidRegistryMonitor.

Version:
$Rev: 434579 $
Author:
Apache Directory Project

Constructor Summary
OidRegistryMonitorAdapter()
           
 
Method Summary
 void getOidWithOid(java.lang.String oid)
          Monitors situations where an OID is used to resolve an OID.
 void nameResolved(java.lang.String oid, java.lang.String name)
          Monitors situations where a primary name is resolved for a OID.
 void namesResolved(java.lang.String oid, java.util.List names)
          Monitors situations where a names are resolved for a OID.
 void oidDoesNotExist(java.lang.String oid, javax.naming.NamingException fault)
          Monitors when a name lookups fail due to the use of an unknown OID.
 void oidResolutionFailed(java.lang.String name, javax.naming.NamingException fault)
          Monitors when resolution of an OID by name fails.
 void oidResolved(java.lang.String name, java.lang.String oid)
          Monitors when an OID is resolved successfully for a name.
 void oidResolved(java.lang.String name, java.lang.String normalized, java.lang.String oid)
          Monitors when an OID is resolved successfully by using a normalized form of the name.
 void registered(java.lang.String name, java.lang.String oid)
          Monitors the successful registration of a name for an OID.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OidRegistryMonitorAdapter

public OidRegistryMonitorAdapter()
Method Detail

getOidWithOid

public void getOidWithOid(java.lang.String oid)
Description copied from interface: OidRegistryMonitor
Monitors situations where an OID is used to resolve an OID. The caller does not know that the argument is the same as the return value.

Specified by:
getOidWithOid in interface OidRegistryMonitor
Parameters:
oid - the OID argument and return value

oidResolved

public void oidResolved(java.lang.String name,
                        java.lang.String oid)
Description copied from interface: OidRegistryMonitor
Monitors when an OID is resolved successfully for a name.

Specified by:
oidResolved in interface OidRegistryMonitor
Parameters:
name - the name used to lookup an OID
oid - the OID returned for the name

oidResolved

public void oidResolved(java.lang.String name,
                        java.lang.String normalized,
                        java.lang.String oid)
Description copied from interface: OidRegistryMonitor
Monitors when an OID is resolved successfully by using a normalized form of the name.

Specified by:
oidResolved in interface OidRegistryMonitor
Parameters:
name - the name used to lookup an OID
normalized - the normalized name that mapped to the OID
oid - the OID returned for the name

oidResolutionFailed

public void oidResolutionFailed(java.lang.String name,
                                javax.naming.NamingException fault)
Description copied from interface: OidRegistryMonitor
Monitors when resolution of an OID by name fails.

Specified by:
oidResolutionFailed in interface OidRegistryMonitor
Parameters:
name - the name used to lookup an OID
fault - the exception thrown for the failure after this call

oidDoesNotExist

public void oidDoesNotExist(java.lang.String oid,
                            javax.naming.NamingException fault)
Description copied from interface: OidRegistryMonitor
Monitors when a name lookups fail due to the use of an unknown OID.

Specified by:
oidDoesNotExist in interface OidRegistryMonitor
Parameters:
oid - the OID used to lookup object names
fault - the exception thrown for the failure after this call

nameResolved

public void nameResolved(java.lang.String oid,
                         java.lang.String name)
Description copied from interface: OidRegistryMonitor
Monitors situations where a primary name is resolved for a OID.

Specified by:
nameResolved in interface OidRegistryMonitor
Parameters:
oid - the OID used for the lookup
name - the primary name found for the OID

namesResolved

public void namesResolved(java.lang.String oid,
                          java.util.List names)
Description copied from interface: OidRegistryMonitor
Monitors situations where a names are resolved for a OID.

Specified by:
namesResolved in interface OidRegistryMonitor
Parameters:
oid - the OID used for the lookup
names - the names found for the OID

registered

public void registered(java.lang.String name,
                       java.lang.String oid)
Description copied from interface: OidRegistryMonitor
Monitors the successful registration of a name for an OID.

Specified by:
registered in interface OidRegistryMonitor
Parameters:
name - the one of many names registered with an OID
oid - the OID to be associated with the name


Copyright © 2003-2010 Apache Software Foundation. All Rights Reserved.