summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2007-09-12 03:29:57 (EDT)
committerEike Stepper2007-09-12 03:29:57 (EDT)
commitd728186f957d3523763804d2dba69f92ab32f757 (patch)
treee09775807eefaed65d3c16ddad2e52c6b61e9a2a
parentac1e98a217f88ae043802d185afbd3b33d9322bb (diff)
downloadcdo-d728186f957d3523763804d2dba69f92ab32f757.zip
cdo-d728186f957d3523763804d2dba69f92ab32f757.tar.gz
cdo-d728186f957d3523763804d2dba69f92ab32f757.tar.bz2
[201267] Failover strategy for CDO/NET4J
https://bugs.eclipse.org/bugs/show_bug.cgi?id=201267
-rw-r--r--plugins/org.eclipse.net4j/src/org/eclipse/net4j/signal/SignalActor.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/org.eclipse.net4j/src/org/eclipse/net4j/signal/SignalActor.java b/plugins/org.eclipse.net4j/src/org/eclipse/net4j/signal/SignalActor.java
index 3ba292b..09e3668 100644
--- a/plugins/org.eclipse.net4j/src/org/eclipse/net4j/signal/SignalActor.java
+++ b/plugins/org.eclipse.net4j/src/org/eclipse/net4j/signal/SignalActor.java
@@ -15,6 +15,8 @@ import org.eclipse.net4j.IChannel;
import org.eclipse.net4j.stream.BufferInputStream;
import org.eclipse.net4j.util.ReflectUtil;
+import java.text.MessageFormat;
+
/**
* @author Eike Stepper
*/
@@ -53,8 +55,8 @@ public abstract class SignalActor<RESULT> extends Signal
@Override
public String toString()
{
- return ReflectUtil.getSimpleName(getClass()) + "[" + getSignalID() + ", " + getProtocol() + ", correlation=" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- + getCorrelationID() + (terminated ? ", SENT" : "") + "]"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
+ return MessageFormat.format("{0}[{1}, {2}, correlation= {3}, {4}]", ReflectUtil.getSimpleName(getClass()),
+ getSignalID(), getProtocol(), getCorrelationID(), terminated ? "SENT" : "UNSENT");
}
protected void setResult(RESULT result)