code: public void renameThread(String base_name, Thread thread, String addr, String cluster_name) {
          String thread_name=getThreadName(base_name, thread, addr, cluster_name);
          if(thread_name != null)
              thread.setName(thread_name);
      }
docs: Names a thread according to base_name, cluster name and local address. If includeClusterName and includeLocalAddress
  are null, but cluster_name is set, then we assume we have a shared transport and name the thread shared=clusterName.
  In the latter case, clusterName points to the singleton_name of TP.
  @param base_name
  @param thread
  @param addr
  @param cluster_name