}
public String getProcessName() {
- if (processNameByRequest == null) {
- synchronized (processNameRequestLock) {
- if (processNameByRequest == null) {
- List<Integer> pids = new ArrayList<Integer>();
- pids.add(Integer.valueOf(pid));
- Map<Integer, String> nameMap = DACommunicator
- .sendProcessAddInfoMessage(pids);
- if (nameMap != null) {
- String name = nameMap.get(Integer.valueOf(pid));
- if (name != null) {
- int index = name.lastIndexOf("/");
- if(index > 0) {
- processNameByRequest = name.substring(index + 1);
- } else {
- processNameByRequest = name;
- }
- }
- }
- }
- }
- }
+// if (processNameByRequest == null) {
+// synchronized (processNameRequestLock) {
+// if (processNameByRequest == null) {
+// List<Integer> pids = new ArrayList<Integer>();
+// pids.add(Integer.valueOf(pid));
+// Map<Integer, String> nameMap = DACommunicator
+// .sendProcessAddInfoMessage(pids);
+// if (nameMap != null) {
+// String name = nameMap.get(Integer.valueOf(pid));
+// if (name != null) {
+// int index = name.lastIndexOf("/");
+// if(index > 0) {
+// processNameByRequest = name.substring(index + 1);
+// } else {
+// processNameByRequest = name;
+// }
+// }
+// }
+// }
+// }
+// }
if (processNameByRequest != null && !processNameByRequest.isEmpty())
return processNameByRequest;