Class AgentConfigurationFile

java.lang.Object
org.netxms.client.agent.config.AgentConfigurationFile

public class AgentConfigurationFile extends Object
Agent configuration content (master configuration file or effective configuration) read from node. Content can be read directly from agent or, if agent is not reachable, from server-side cache. Cached content is read-only and carries timestamp of last cache update.
  • Constructor Details

    • AgentConfigurationFile

      public AgentConfigurationFile(NXCPMessage msg)
      Create from NXCP message.
      Parameters:
      msg - NXCP message
  • Method Details

    • getContent

      public String getContent()
      Get configuration content.
      Returns:
      configuration content
    • isCached

      public boolean isCached()
      Check if content was served from server-side cache because agent is not reachable.
      Returns:
      true if content was served from server-side cache
    • getCacheTime

      public Date getCacheTime()
      Get time of last cache update. Valid only when content was served from cache.
      Returns:
      time of last cache update or null if content was read directly from agent