|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.derby.impl.services.locks.D_Lock
public class D_Lock
Field Summary | |
---|---|
protected Lock |
lock
|
Constructor Summary | |
---|---|
D_Lock()
|
Method Summary | |
---|---|
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 |
---|
protected Lock lock
Constructor Detail |
---|
public D_Lock()
Method Detail |
---|
public void init(java.lang.Object obj)
init
in interface Diagnosticable
public java.lang.String diag() throws StandardException
Diagnosticable
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.
diag
in interface Diagnosticable
StandardException
- Standard exception policy.public void diag_detail(java.util.Properties prop)
Diagnosticable
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.
diag_detail
in interface Diagnosticable
|
Built on Thu 2010-12-23 20:49:13+0000, from revision ??? | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |