From 099e62c20e8d1f65234d6a99ccafc7fcba1d901f Mon Sep 17 00:00:00 2001 From: Audrius Meskauskas Date: Thu, 23 Mar 2006 16:12:56 +0000 Subject: 2006-03-23 Audrius Meskauskas * gnu/java/rmi/activation/ActivationSystemTransient.java (debug): Made public. (constructor): Made protected. (activate, getActivationDesc): Throw more informative exceptions. * gnu/java/rmi/server/UnicastConnectionManager.java (toString): New method. * gnu/java/rmi/server/UnicastRef.java (remoteToString): Stub, implemented. * gnu/java/rmi/server/UnicastServer.java (incomingMessageCall): Documented. * gnu/java/rmi/server/UnicastServerRef.java (incomingMessageCall): Better exception. * java/rmi/activation/Activatable.java (obtainId): Use the activation system, passed in the activation descriptor field. * java/rmi/activation/ActivationGroup.java (createGroup): Likewise. * java/rmi/activation/ActivationGroupID.java (system, uid): Changed to package private final. (equals): Compare uid, not the system. (hashCode): Forward to uid.hashCode(). toString(): New method. * java/rmi/activation/ActivationID.java (readObject, writeObject): Rewritten. (equals): Compare UID only. toString(): New method. * java/rmi/server/ObjID.java (eq): New method. (equals): Compare also UID (space). (hashCode, toString): Rewritten. * java/rmi/server/RemoteObjectInvocationHandler.java (noArgs): New method. (invoke): Treat null as an empty array for parameters. * java/rmi/server/UID.java (toString): Rewritten. (hashCode): Include count, do not include the static machineId. --- gnu/java/rmi/server/UnicastConnectionManager.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'gnu/java/rmi/server/UnicastConnectionManager.java') diff --git a/gnu/java/rmi/server/UnicastConnectionManager.java b/gnu/java/rmi/server/UnicastConnectionManager.java index 08f6a9bc3..9715d4a31 100644 --- a/gnu/java/rmi/server/UnicastConnectionManager.java +++ b/gnu/java/rmi/server/UnicastConnectionManager.java @@ -310,6 +310,14 @@ private UnicastConnection getClientConnection() throws IOException { return (conn); } +/** + * Get the string representation, describing the connection. + */ +public String toString() +{ + return serverName+":"+serverPort+" ("+serverobj+")"; +} + /** * Discard a connection when we're done with it - maybe it can be * recycled. @@ -443,4 +451,12 @@ public boolean equals(Object obj) { return (false); } + /** + * Get the string representation, describing the connection. + */ + public String toString() + { + return host+":"+port+" ("+other+")"; + } + } -- cgit v1.2.1