Class AgentJsonProvider

All Implemented Interfaces:
JsonStreamingAction, ErrorCollection, BambooSessionAware, NavigationAware, DomainObjectSecurityAware, GlobalAdminSecurityAware, GlobalReadSecurityAware, ReturnUrlAware, UserAware, com.atlassian.core.i18n.I18nTextProvider, Serializable, org.apache.struts2.action.Action, org.apache.struts2.interceptor.ValidationAware, org.apache.struts2.locale.LocaleProvider, org.apache.struts2.Preparable, org.apache.struts2.text.TextProvider, org.apache.struts2.Validateable

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 org.apache.struts2.Preparable
      Overrides:
      prepare in class ViewAgentDetails
      Throws:
      Exception
    • getJsonObject

      @NotNull public @NotNull org.json.JSONObject getJsonObject() throws org.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:
      org.json.JSONException
      See Also:
    • 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)