Class Constants

java.lang.Object
net.solarnetwork.node.Constants

public final class Constants extends Object
SolarNode constants.
Version:
1.3
Author:
matt
  • Field Details

    • SYSTEM_PROP_NODE_HOME

      public static final String SYSTEM_PROP_NODE_HOME
      The system property for the node's home directory.
      See Also:
    • EVENT_TOPIC_CONFIGURATION_CHANGED

      public static final String EVENT_TOPIC_CONFIGURATION_CHANGED
      An event topic to post when a significant change has occurred to the system's configuration. An example of a listener interested in such an event would be an automatic backup service.
      Since:
      1.1
      See Also:
    • SETTING_PID

      public static final String SETTING_PID
      A service property key for a setting PID.
      Since:
      1.3
      See Also:
  • Method Details

    • solarNodeHome

      public static String solarNodeHome()
      Get the configured SolarNode home directory.

      This returns the SYSTEM_PROP_NODE_HOME system property value if available, or else /home/solar.

      Returns:
      the home directory, never null
      Since:
      1.2