commit | 1412e8c16cb3a591242ffb2c461ed76a3ef64b79 | [log] [tgz] |
---|---|---|
author | Yuta HIGUCHI <y-higuchi@onlab.us> | Fri Jan 03 17:19:01 2014 -0800 |
committer | Yuta HIGUCHI <y-higuchi@onlab.us> | Fri Jan 03 17:19:01 2014 -0800 |
tree | 581234e486028858249e0fa0ac017db65a534699 | |
parent | 490ad8f11612327971b15242ee043bd5401b1d4a [diff] |
Use original ThreadPool specific name, so that user can correlate other Task using the same Worker Thread afterwards.
diff --git a/src/main/java/net/onrc/onos/ofcontroller/floodlightlistener/NetworkGraphPublisher.java b/src/main/java/net/onrc/onos/ofcontroller/floodlightlistener/NetworkGraphPublisher.java index d1e7387..22241ce 100644 --- a/src/main/java/net/onrc/onos/ofcontroller/floodlightlistener/NetworkGraphPublisher.java +++ b/src/main/java/net/onrc/onos/ofcontroller/floodlightlistener/NetworkGraphPublisher.java
@@ -83,7 +83,7 @@ @Override public void run() { String old = Thread.currentThread().getName(); - Thread.currentThread().setName("SwitchCleanup " + Thread.currentThread().getId()); + Thread.currentThread().setName("SwitchCleanup@" + old); try { log.debug("Running cleanup thread"); switchCleanup();