Conversation
|
Benchmark under Windows getpid() vs JMX: |
|
Improved documentation for Native and UUIDs classes. Squashed commits again. |
| * <ol> | ||
| * <li>Since Java does not provide direct access to the host's MAC address, that information | ||
| * is replaced with a digest of all IP addresses available on the host;</li> | ||
| * <li>The process ID (PID) isn't easily available to Java neither, so it is determined by one of the |
|
Looks good to me, apart from 2 minor remarks and the "optional" discussion. |
|
Rebased on current 2.1 (2708bd7) |
f3f7d1e to
1c22a13
Compare
|
Rebased again on top of current #591. |
| } | ||
| if (pid == null) { | ||
| try { | ||
| String pidJmx = ManagementFactory.getRuntimeMXBean().getName().split("@")[0]; |
There was a problem hiding this comment.
Really hard to test this as is as I need a non-POSIX system :D, I commented out the code above and it seems to work 👍
|
|
||
| @Override | ||
| public long currentTime() { | ||
| public long currentTimeMicros() { |
There was a problem hiding this comment.
We could probably remove the 'public' modifiers from these since the parent class is not public right? (we'd probably need to add from clirr exceptions though, doesn't seem important).
There was a problem hiding this comment.
Unfortunately that would not work here, as this method is inherited from Clock interface, so it needs to be public.
|
Rebased on top of current #591 to benefit from OSGi fixes. |
|
👍 on merging after rebased on 2.1 after #591 is merged. |
JAVA-444: Add Java process information to UUIDs.makeNode() hash.
Javadoc param description. [apache#593]
This is based on #591 and supersedes #521.