* @see ConnectionAttemptListener#attemptSucceeded(int,
* ConnectionDescriptor)
*/
public void attemptSucceeded(final int attemptNumber,
final ConnectionDescriptor connection) {
final TransportDescriptor transport =
connection.getTransportDescriptor();
final StringBuffer sb = new StringBuffer();
// Prepare a connection success message
sb.append("Sucess attempting: ").append(
TransportInfo
.getTransportTypeName(transport.getTransportType()));
if (transport.getUid() != null) {
sb.append(": [").append(transport.getUid()).append(']');
}
sb.append("\n Attempt Number: ").append(attemptNumber);
showStatus(sb.toString(), 2000);
}