org.apache.derby.impl.services.locks
Class D_LockControl

java.lang.Object
  extended byorg.apache.derby.impl.services.locks.D_LockControl
All Implemented Interfaces:
Diagnosticable

public class D_LockControl
extends java.lang.Object
implements Diagnosticable


Field Summary
protected  LockControl control
           
 
Constructor Summary
D_LockControl()
           
 
Method Summary
(package private) static void debugAddThreadInfo(java.lang.StringBuffer sb)
           
(package private) static void debugAppendObject(java.lang.StringBuffer sb, java.lang.String desc, java.lang.Object item)
           
(package private) static void debugLock(java.lang.String type, java.lang.Object compatabilitySpace, java.lang.Object group)
           
(package private) static void debugLock(java.lang.String type, java.lang.Object compatabilitySpace, java.lang.Object group, Lockable ref)
           
(package private) static void debugLock(java.lang.String type, java.lang.Object compatabilitySpace, java.lang.Object group, Lockable ref, java.lang.Object qualifier, int timeout)
           
(package private) static java.lang.String debugLockString(java.lang.Object compatabilitySpace, java.lang.Object group)
           
(package private) static java.lang.String debugLockString(java.lang.Object compatabilitySpace, java.lang.Object group, Lockable ref)
           
(package private) static java.lang.String debugLockString(java.lang.Object compatabilitySpace, java.lang.Object group, Lockable ref, java.lang.Object qualifier, int timeout)
           
 void diag_detail(java.util.Properties prop)
          Default implementation of detail diagnostic on the object.
 java.lang.String diag()
          Default implementation of diagnostic on the object.
 void init(java.lang.Object obj)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

control

protected LockControl control
Constructor Detail

D_LockControl

public D_LockControl()
Method Detail

init

public void init(java.lang.Object obj)
Specified by:
init in interface Diagnosticable

diag

public java.lang.String diag()
                      throws StandardException
Description copied from interface: Diagnosticable
Default implementation of diagnostic on the object.

This routine returns a string with whatever diagnostic information you would like to provide about this associated object passed in the init() call.

This routine should be overriden by a real implementation of the diagnostic information you would like to provide.

Specified by:
diag in interface Diagnosticable
Returns:
A string with diagnostic information about the object.
Throws:
StandardException - Standard exception policy.

diag_detail

public void diag_detail(java.util.Properties prop)
Description copied from interface: Diagnosticable
Default implementation of detail diagnostic on the object.

This interface provides a way for an object to pass back pieces of information as requested by the caller. The information is passed back and forth through the properties argument. It is expected that the caller knows what kind of information to ask for, and correctly handles the situation when the diagnostic object can't provide the information.

As an example assume an object TABLE exists, and that we have created an object D_TABLE that knows how to return the number of pages in the TABLE object. The code to get that information out would looks something like the following:

print_num_pages(Object table) { Properties prop = new Properties(); prop.put(Page.DIAG_NUM_PAGES, ""); DiagnosticUtil.findDiagnostic(table).diag_detail(prop); System.out.println( "number of pages = " + prop.getProperty(Page.DIAG_NUM_PAGES)); }

This routine should be overriden if there is detail diagnostics to be provided by a real implementation.

Specified by:
diag_detail in interface Diagnosticable

debugLock

static void debugLock(java.lang.String type,
                      java.lang.Object compatabilitySpace,
                      java.lang.Object group,
                      Lockable ref,
                      java.lang.Object qualifier,
                      int timeout)

debugLock

static void debugLock(java.lang.String type,
                      java.lang.Object compatabilitySpace,
                      java.lang.Object group)

debugLock

static void debugLock(java.lang.String type,
                      java.lang.Object compatabilitySpace,
                      java.lang.Object group,
                      Lockable ref)

debugLockString

static java.lang.String debugLockString(java.lang.Object compatabilitySpace,
                                        java.lang.Object group)

debugLockString

static java.lang.String debugLockString(java.lang.Object compatabilitySpace,
                                        java.lang.Object group,
                                        Lockable ref)

debugLockString

static java.lang.String debugLockString(java.lang.Object compatabilitySpace,
                                        java.lang.Object group,
                                        Lockable ref,
                                        java.lang.Object qualifier,
                                        int timeout)

debugAddThreadInfo

static void debugAddThreadInfo(java.lang.StringBuffer sb)

debugAppendObject

static void debugAppendObject(java.lang.StringBuffer sb,
                              java.lang.String desc,
                              java.lang.Object item)

Built on Mon 2007-06-04 09:58:47+0400, from revision ???

Apache Derby V10.1 Engine Documentation - Copyright © 1997,2005 The Apache Software Foundation or its licensors, as applicable.