Class MBeanProcessId

java.lang.Object
com.arjuna.ats.internal.arjuna.utils.MBeanProcessId
All Implemented Interfaces:
Process

public class MBeanProcessId extends Object implements Process
Obtains a unique value to represent the process id via ManagementFactory.getRuntimeMXBean().getName(). WARNING: use with care because the contents of getName may change between OSes and versions of JDK.
  • Constructor Details

    • MBeanProcessId

      public MBeanProcessId()
  • Method Details

    • getpid

      public int getpid()
      Specified by:
      getpid in interface Process
      Returns:
      the process id. This had better be unique between processes on the same machine. If not we're in trouble!