org.springframework.boot.system

Class ApplicationPid

  • java.lang.Object
    • org.springframework.boot.system.ApplicationPid


  • public class ApplicationPid
    extends java.lang.Object
    An application process ID.
    Since:
    2.0.0
    • Constructor Summary

      Constructors 
      Modifier Constructor and Description
        ApplicationPid() 
      protected ApplicationPid(java.lang.String pid) 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      boolean equals(java.lang.Object obj) 
      int hashCode() 
      java.lang.String toString() 
      void write(java.io.File file)
      Write the PID to the specified file.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ApplicationPid

        public ApplicationPid()
      • ApplicationPid

        protected ApplicationPid(java.lang.String pid)
    • Method Detail

      • equals

        public boolean equals(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • write

        public void write(java.io.File file)
                   throws java.io.IOException
        Write the PID to the specified file.
        Parameters:
        file - the PID file
        Throws:
        java.lang.IllegalStateException - if no PID is available.
        java.io.IOException - if the file cannot be written