Class UpdateLoggingProfiling

java.lang.Object
org.apache.struts2.ActionSupport
com.atlassian.crowd.console.action.BaseAction
com.atlassian.crowd.console.action.options.UpdateLoggingProfiling
All Implemented Interfaces:
Serializable, org.apache.struts2.action.Action, org.apache.struts2.interceptor.ValidationAware, org.apache.struts2.locale.LocaleProvider, org.apache.struts2.text.TextProvider, org.apache.struts2.Validateable

public class UpdateLoggingProfiling extends BaseAction
Allows configuration of logging and profiling. These could be split to separate classes (and actions), but not as long as they're one page in the UI.
See Also:
  • Field Details

  • Constructor Details

    • UpdateLoggingProfiling

      public UpdateLoggingProfiling()
  • Method Details

    • execute

      public String execute()
      Specified by:
      execute in interface org.apache.struts2.action.Action
      Overrides:
      execute in class BaseAction
    • updateLogging

      public String updateLogging()
    • updateProfiling

      public String updateProfiling()
    • processLogging

      protected void processLogging()
      Reads current state of logging and updates class fields to match.
    • tryUpdateLogging

      protected boolean tryUpdateLogging()
      Updates the logging rules upon a "submit" of the UI form by the user.
      Returns:
      true if successful, false otherwise.
    • setLevelForLogger

      protected void setLevelForLogger(String className, String levelName)
    • processProfiling

      protected void processProfiling()
      Updates the class profiling fields to reflect the current status of profiling.
    • tryUpdateProfiling

      protected boolean tryUpdateProfiling()
    • getEntries

    • setEntries

      public void setEntries(List<UpdateLoggingProfiling.LoggingConfigEntry> entries)
    • setClassNames

      public void setClassNames(String[] classNames)
    • setLevelNames

      public void setLevelNames(String[] levelNames)
    • getProfileName

      public String getProfileName()
    • setProfileName

      public void setProfileName(String profileName)
    • isProfilingOn

      public boolean isProfilingOn()
    • setProfilingOn

      public void setProfilingOn(boolean profilingOn)
    • getLoggingLevelOption

      public List<String> getLoggingLevelOption()
    • setCrowdLoggingConfiguration

      public void setCrowdLoggingConfiguration(CrowdLoggingConfiguration crowdLoggingConfiguration)
    • setCrowdHomeLogAppenderSwitcher

      public void setCrowdHomeLogAppenderSwitcher(CrowdHomeLogAppenderSwitcher crowdHomeLogAppenderSwitcher)
    • setEventPublisher

      public void setEventPublisher(com.atlassian.event.api.EventPublisher eventPublisher)