1 21 22 package org.apache.derby.impl.store.raw.data; 23 24 import org.apache.derby.iapi.services.diag.Diagnosticable; 25 import org.apache.derby.iapi.services.diag.DiagnosticableGeneric; 26 import org.apache.derby.iapi.services.diag.DiagnosticUtil; 27 import org.apache.derby.iapi.services.monitor.ModuleControl; 28 29 import org.apache.derby.iapi.error.StandardException; 30 31 import org.apache.derby.iapi.store.raw.RowLock; 32 import org.apache.derby.iapi.store.raw.ContainerKey; 33 34 import java.util.Properties ; 35 36 42 43 public class D_BaseContainerHandle extends DiagnosticableGeneric 44 { 45 46 53 public String diag() 54 throws StandardException 55 { 56 BaseContainerHandle ch = (BaseContainerHandle) diag_object; 57 String str = null; 58 59 65 66 long container_id = ch.identity.getContainerId(); 67 68 long conglom_id = 69 D_DiagnosticUtil.diag_containerid_to_conglomid( 70 ch.xact.getDataFactory(), 71 container_id); 72 73 if (conglom_id != Long.MIN_VALUE) 74 { 75 str = "TABLE(" + conglom_id + "," + container_id + ")"; 76 } 77 else 78 { 79 str = "TABLE(Booting..., " + container_id + ")"; 80 } 81 82 94 95 return(str); 96 } 97 98 105 public void diag_detail(Properties prop) 106 throws StandardException 107 { 108 BaseContainerHandle ch = (BaseContainerHandle) diag_object; 109 ContainerKey key = ch.getId(); 110 111 prop.put(RowLock.DIAG_CONTAINERID, Long.toString(key.getContainerId())); 112 113 prop.put(RowLock.DIAG_SEGMENTID, Long.toString(key.getSegmentId())); 114 115 prop.put(RowLock.DIAG_PAGENUM, Integer.toString(0)); 119 prop.put(RowLock.DIAG_RECID, Integer.toString(0)); 120 121 return; 122 } 123 } 124 | Popular Tags |