()
| 65 | } |
| 66 | |
| 67 | private static long getPID() { |
| 68 | String processName |
| 69 | = java.lang.management.ManagementFactory.getRuntimeMXBean().getName(); |
| 70 | return Long.parseLong(processName.split("@")[0]); |
| 71 | } |
| 72 | |
| 73 | /** |
| 74 | * The work here should be done repeatedly until the thread gets interrupted |
no test coverage detected