Class StateManager


  • public class StateManager
    extends java.lang.Object
    Maintains state in cfg file: systemid=000-00-00-0000 enabled=true acknowledged-by=admin acknowledged-at=13943454545 Same file also holds: url=http://stats.opennms.org/datachoices/ interval=86400000
    Author:
    jwhite
    • Constructor Detail

      • StateManager

        public StateManager()
    • Method Detail

      • isEnabled

        public java.lang.Boolean isEnabled()
                                    throws java.io.IOException
        Throws:
        java.io.IOException
      • setEnabled

        public void setEnabled​(boolean enabled,
                               java.lang.String user)
                        throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getOrGenerateSystemId

        public java.lang.String getOrGenerateSystemId()
                                               throws java.io.IOException
        Throws:
        java.io.IOException
      • getAndRegenerateSystemId

        public java.lang.String getAndRegenerateSystemId()
                                                  throws java.io.IOException
        Throws:
        java.io.IOException