Author: david.lloyd(a)jboss.com
Date: 2008-07-18 20:53:56 -0400 (Fri, 18 Jul 2008)
New Revision: 4403
Modified:
remoting3/trunk/core/src/main/java/org/jboss/cx/remoting/core/AbstractContextImpl.java
remoting3/trunk/core/src/main/java/org/jboss/cx/remoting/core/ClientContextImpl.java
remoting3/trunk/core/src/main/java/org/jboss/cx/remoting/core/ClientImpl.java
remoting3/trunk/core/src/main/java/org/jboss/cx/remoting/core/ClientSourceImpl.java
remoting3/trunk/core/src/main/java/org/jboss/cx/remoting/core/EndpointImpl.java
remoting3/trunk/core/src/main/java/org/jboss/cx/remoting/core/ServiceContextImpl.java
Log:
More logging improvements
Modified:
remoting3/trunk/core/src/main/java/org/jboss/cx/remoting/core/AbstractContextImpl.java
===================================================================
---
remoting3/trunk/core/src/main/java/org/jboss/cx/remoting/core/AbstractContextImpl.java 2008-07-19
00:37:56 UTC (rev 4402)
+++
remoting3/trunk/core/src/main/java/org/jboss/cx/remoting/core/AbstractContextImpl.java 2008-07-19
00:53:56 UTC (rev 4403)
@@ -49,4 +49,8 @@
protected boolean isOpen() {
return super.isOpen();
}
+
+ public String toString() {
+ return "generic context instance <" + Integer.toString(hashCode()) +
">";
+ }
}
Modified:
remoting3/trunk/core/src/main/java/org/jboss/cx/remoting/core/ClientContextImpl.java
===================================================================
---
remoting3/trunk/core/src/main/java/org/jboss/cx/remoting/core/ClientContextImpl.java 2008-07-19
00:37:56 UTC (rev 4402)
+++
remoting3/trunk/core/src/main/java/org/jboss/cx/remoting/core/ClientContextImpl.java 2008-07-19
00:53:56 UTC (rev 4403)
@@ -54,4 +54,8 @@
public ServiceContext getServiceContext() {
return serviceContext;
}
+
+ public String toString() {
+ return "client context instance <" + Integer.toString(hashCode()) +
">";
+ }
}
Modified: remoting3/trunk/core/src/main/java/org/jboss/cx/remoting/core/ClientImpl.java
===================================================================
---
remoting3/trunk/core/src/main/java/org/jboss/cx/remoting/core/ClientImpl.java 2008-07-19
00:37:56 UTC (rev 4402)
+++
remoting3/trunk/core/src/main/java/org/jboss/cx/remoting/core/ClientImpl.java 2008-07-19
00:53:56 UTC (rev 4403)
@@ -80,4 +80,8 @@
}
remoteClientEndpoint.receiveRequest(request);
}
+
+ public String toString() {
+ return "client instance <" + Integer.toString(hashCode()) +
">";
+ }
}
Modified:
remoting3/trunk/core/src/main/java/org/jboss/cx/remoting/core/ClientSourceImpl.java
===================================================================
---
remoting3/trunk/core/src/main/java/org/jboss/cx/remoting/core/ClientSourceImpl.java 2008-07-19
00:37:56 UTC (rev 4402)
+++
remoting3/trunk/core/src/main/java/org/jboss/cx/remoting/core/ClientSourceImpl.java 2008-07-19
00:53:56 UTC (rev 4403)
@@ -58,4 +58,8 @@
IoUtils.safeClose(handle);
}
}
+
+ public String toString() {
+ return "client source instance <" + Integer.toString(hashCode()) +
">";
+ }
}
Modified: remoting3/trunk/core/src/main/java/org/jboss/cx/remoting/core/EndpointImpl.java
===================================================================
---
remoting3/trunk/core/src/main/java/org/jboss/cx/remoting/core/EndpointImpl.java 2008-07-19
00:37:56 UTC (rev 4402)
+++
remoting3/trunk/core/src/main/java/org/jboss/cx/remoting/core/EndpointImpl.java 2008-07-19
00:53:56 UTC (rev 4403)
@@ -184,4 +184,8 @@
}
}
}
+
+ public String toString() {
+ return "endpoint instance <" + Integer.toString(hashCode()) +
">";
+ }
}
Modified:
remoting3/trunk/core/src/main/java/org/jboss/cx/remoting/core/ServiceContextImpl.java
===================================================================
---
remoting3/trunk/core/src/main/java/org/jboss/cx/remoting/core/ServiceContextImpl.java 2008-07-19
00:37:56 UTC (rev 4402)
+++
remoting3/trunk/core/src/main/java/org/jboss/cx/remoting/core/ServiceContextImpl.java 2008-07-19
00:53:56 UTC (rev 4403)
@@ -36,4 +36,8 @@
protected ServiceContextImpl(final Executor executor) {
super(executor);
}
+
+ public String toString() {
+ return "service context instance <" + Integer.toString(hashCode()) +
">";
+ }
}