- public int hashCode() {
- int result = 17;
- result = 37 * result + super.hashCode();
- result = 37 * result + fSessionPath.hashCode();
- result = 37 * result + fState.hashCode();
+ @SuppressWarnings("nls")
+ public String formatString() {
+ StringBuffer output = new StringBuffer();
+ // Tracing session mysession: [active]
+ output.append("Tracing session ");
+ output.append(getName());
+ output.append(": [");
+ output.append(getSessionState().getInName());
+ output.append("]\n");
+
+ // Trace path: /home/user/lttng-traces/mysession-20120129-084256
+ output.append(" Trace path: ");
+ output.append(getSessionPath());
+ output.append("\n");
+