Top Fields Constructors Methods
org.apache.derby.impl.services.locks

public Class D_LockControl

extends Object
implements Diagnosticable
Class Inheritance
All Implemented Interfaces
org.apache.derby.iapi.services.diag.Diagnosticable
Imports
org.apache.derby.iapi.services.diag.Diagnosticable, .DiagnosticUtil, org.apache.derby.shared.common.error.StandardException, org.apache.derby.shared.common.sanity.SanityManager, org.apache.derby.iapi.services.locks.CompatibilitySpace, .Lockable, java.util.Properties, .List, .Iterator

Field Summary

Modifier and TypeField and Description
protected LockControl

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
pack-priv static void
pack-priv static void
pack-priv static void
debugLock(String type, CompatibilitySpace compatibilitySpace, Object group, Lockable ref, Object qualifier, int timeout)

pack-priv static void
debugLock(String type, CompatibilitySpace compatibilitySpace, Object group)

pack-priv static void
debugLock(String type, CompatibilitySpace compatibilitySpace, Object group, Lockable ref)

pack-priv static String
debugLockString(CompatibilitySpace compatibilitySpace, Object group)

pack-priv static String
debugLockString(CompatibilitySpace compatibilitySpace, Object group, Lockable ref)

pack-priv static String
debugLockString(CompatibilitySpace compatibilitySpace, Object group, Lockable ref, Object qualifier, int timeout)

public String
diag()

Implements org.apache.derby.iapi.services.diag.Diagnosticable.diag.

Default implementation of diagnostic on the object.

public void
diag_detail(Properties
In/out argument for passing information
prop
)

Implements org.apache.derby.iapi.services.diag.Diagnosticable.diag_detail.

Default implementation of detail diagnostic on the object.

public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

controlback to summary
protected LockControl control

Constructor Detail

D_LockControlback to summary
public D_LockControl()

Method Detail

debugAddThreadInfoback to summary
pack-priv static void debugAddThreadInfo(StringBuffer sb)
debugAppendObjectback to summary
pack-priv static void debugAppendObject(StringBuffer sb, String desc, Object item)
debugLockback to summary
pack-priv static void debugLock(String type, CompatibilitySpace compatibilitySpace, Object group, Lockable ref, Object qualifier, int timeout)
debugLockback to summary
pack-priv static void debugLock(String type, CompatibilitySpace compatibilitySpace, Object group)
debugLockback to summary
pack-priv static void debugLock(String type, CompatibilitySpace compatibilitySpace, Object group, Lockable ref)
debugLockStringback to summary
pack-priv static String debugLockString(CompatibilitySpace compatibilitySpace, Object group)
debugLockStringback to summary
pack-priv static String debugLockString(CompatibilitySpace compatibilitySpace, Object group, Lockable ref)
debugLockStringback to summary
pack-priv static String debugLockString(CompatibilitySpace compatibilitySpace, Object group, Lockable ref, Object qualifier, int timeout)
diagback to summary
public String diag() throws StandardException

Implements org.apache.derby.iapi.services.diag.Diagnosticable.diag.

Doc from org.apache.derby.iapi.services.diag.Diagnosticable.diag.

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.

Returns:String

A string with diagnostic information about the object.

Exceptions
StandardException:
Standard exception policy.
diag_detailback to summary
public void diag_detail(Properties prop)

Implements org.apache.derby.iapi.services.diag.Diagnosticable.diag_detail.

Doc from org.apache.derby.iapi.services.diag.Diagnosticable.diag_detail.

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.

Parameters
prop:Properties

In/out argument for passing information

initback to summary
public void init(Object obj)

Implements org.apache.derby.iapi.services.diag.Diagnosticable.init.