1 28 29 30 package org.objectweb.corba.runtime; 31 32 36 public class DebugSRIImpl 37 extends org.omg.CORBA.LocalObject 38 implements org.omg.PortableInterceptor.ServerRequestInterceptor 39 { 40 static final private String _class_name = "DebugSRIImpl"; 42 43 public 45 DebugSRIImpl() 46 { 47 } 48 49 53 final public String 54 name() 55 { 56 return _class_name; 57 } 58 59 final public void 60 destroy() 61 { 62 } 63 64 68 final public void 69 receive_request_service_contexts(org.omg.PortableInterceptor.ServerRequestInfo info) 70 throws org.omg.PortableInterceptor.ForwardRequest 71 { 72 String opname = "receive_request_service_contexts"; 73 TheLogger.debug(_class_name, opname, ""); 74 TheLogger.debug(_class_name, opname, "Request: "+info.request_id()); 75 TheLogger.debug(_class_name, opname, "Operation: "+info.operation()); 76 } 77 78 final public void 79 receive_request(org.omg.PortableInterceptor.ServerRequestInfo info) 80 throws org.omg.PortableInterceptor.ForwardRequest 81 { 82 String opname = "receive_request"; 83 TheLogger.debug(_class_name, opname, ""); 84 TheLogger.debug(_class_name, opname, "Request: "+info.request_id()); 85 TheLogger.debug(_class_name, opname, "Operation: "+info.operation()); 86 TheLogger.debug(_class_name, opname, "POA id: "+info.adapter_id()); 87 TheLogger.debug(_class_name, opname, "Object id: "+info.object_id()); 88 TheLogger.debug(_class_name, opname, "Repid: "+info.target_most_derived_interface()); 89 } 90 91 final public void 92 send_reply(org.omg.PortableInterceptor.ServerRequestInfo info) 93 { 94 String opname = "send_reply"; 95 TheLogger.debug(_class_name, opname, ""); 96 TheLogger.debug(_class_name, opname, "Request: "+info.request_id()); 97 TheLogger.debug(_class_name, opname, "Operation: "+info.operation()); 98 TheLogger.debug(_class_name, opname, "POA id: "+info.adapter_id()); 99 TheLogger.debug(_class_name, opname, "Object id: "+info.object_id()); 100 } 101 102 final public void 103 send_exception(org.omg.PortableInterceptor.ServerRequestInfo info) 104 throws org.omg.PortableInterceptor.ForwardRequest 105 { 106 String opname = "send_exception"; 107 TheLogger.debug(_class_name, opname, ""); 108 TheLogger.debug(_class_name, opname, "Request: "+info.request_id()); 109 TheLogger.debug(_class_name, opname, "Operation: "+info.operation()); 110 try { 113 TheLogger.debug(_class_name, opname, "POA id: "+info.adapter_id()); 114 TheLogger.debug(_class_name, opname, "Object id: "+info.object_id()); 115 } catch (org.omg.CORBA.BAD_INV_ORDER ex) { 116 TheLogger.debug(_class_name, opname, "BAD_INV_ORDER"); 119 } catch (org.omg.CORBA.NO_RESOURCES ex) { 120 TheLogger.debug(_class_name, opname, "NO_RESOURCES"); 123 } 124 } 125 126 final public void 127 send_other(org.omg.PortableInterceptor.ServerRequestInfo info) 128 throws org.omg.PortableInterceptor.ForwardRequest 129 { 130 String opname = "send_other"; 131 TheLogger.debug(_class_name, opname, ""); 132 TheLogger.debug(_class_name, opname, "Request: "+info.request_id()); 133 TheLogger.debug(_class_name, opname, "Operation: "+info.operation()); 134 try { 137 TheLogger.debug(_class_name, opname, "POA id: "+info.adapter_id()); 138 TheLogger.debug(_class_name, opname, "Object id: "+info.object_id()); 139 } catch (org.omg.CORBA.BAD_INV_ORDER ex) { 140 TheLogger.debug(_class_name, opname, "BAD_INV_ORDER"); 143 } catch (org.omg.CORBA.NO_RESOURCES ex) { 144 TheLogger.debug(_class_name, opname, "NO_RESOURCES"); 147 } 148 } 149 } 150 | Popular Tags |