Class AgentJsonProvider

All Implemented Interfaces:
JsonStreamingAction, ErrorCollection, BambooSessionAware, NavigationAware, DomainObjectSecurityAware, GlobalAdminSecurityAware, GlobalReadSecurityAware, ReturnUrlAware, com.atlassian.core.i18n.I18nTextProvider, com.atlassian.struts.TextProvider, com.atlassian.struts.ValidationAware, com.opensymphony.xwork.ValidationAware, com.opensymphony.xwork2.Action, com.opensymphony.xwork2.interceptor.ValidationAware, com.opensymphony.xwork2.LocaleProvider, com.opensymphony.xwork2.Preparable, com.opensymphony.xwork2.TextProvider, com.opensymphony.xwork2.Validateable, Serializable

public class AgentJsonProvider extends ViewAgentDetails
See Also:
  • Constructor Details

    • AgentJsonProvider

      public AgentJsonProvider()
  • Method Details

    • prepare

      public void prepare() throws Exception
      Specified by:
      prepare in interface com.opensymphony.xwork2.Preparable
      Overrides:
      prepare in class ViewAgentDetails
      Throws:
      Exception
    • getJsonObject

      @NotNull public @NotNull com.opensymphony.webwork.dispatcher.json.JSONObject getJsonObject() throws com.opensymphony.webwork.dispatcher.json.JSONException
      Description copied from class: BambooActionSupport
      This is default property read by webwork for webwork's result type "json".
      Overrides:
      getJsonObject in class BambooActionSupport
      Returns:
      Throws:
      com.opensymphony.webwork.dispatcher.json.JSONException
      See Also:
      • JSON Result

        If descending classes need to add anything to JSON response these should override #buildJsonObject() method.

    • getRemoteElasticInstances

      @NotNull public @NotNull Collection<RemoteElasticInstance> getRemoteElasticInstances()
    • setAgentManager

      public void setAgentManager(AgentManager agentManager)
    • setElasticInstanceManager

      public void setElasticInstanceManager(ElasticInstanceManager elasticInstanceManager)
    • setOnlineOnly

      public void setOnlineOnly(boolean onlineOnly)
    • setIncludeInstances

      public void setIncludeInstances(boolean includeInstances)
    • setIncludeRemoteAgentSummary

      public void setIncludeRemoteAgentSummary(boolean includeRemoteAgentSummary)