public class UpdateLoggingProfiling extends BaseAction
Modifier and Type | Class and Description |
---|---|
protected static class |
UpdateLoggingProfiling.LoggingConfigEntry
Represents a Log4j Config entry, corresponding to a Class or Package mapped to a Level.
|
Modifier and Type | Field and Description |
---|---|
protected String[] |
classNames
TODO: levelNames[i] is the level name for class classNames[i].
|
protected List<UpdateLoggingProfiling.LoggingConfigEntry> |
entries |
protected UpdateLoggingProfiling.LoggingConfigEntry |
entry |
protected String[] |
levelNames |
protected static String |
LOGLEVEL_DEFAULT |
actionHelper, actionMessageAlertColor, ALERT_BLUE, ALERT_GREEN, ALERT_RED, ALERT_YELLOW, applicationManager, applicationService, clientProperties, clusterService, crowdLicenseManager, directoryManager, initialLoad, propertyManager, rememberMeService, SMALL_AVATAR_SIZE, smallAvatarUrl, tab, tokenAuthenticationManager
Constructor and Description |
---|
UpdateLoggingProfiling() |
Modifier and Type | Method and Description |
---|---|
String |
execute() |
List |
getEntries() |
List<String> |
getLoggingLevelOption() |
String |
getProfileName() |
boolean |
isProfilingOn() |
protected void |
processLogging()
Reads current state of logging and updates class fields to match.
|
protected void |
processProfiling()
Updates the class profiling fields to reflect the current status of profiling.
|
void |
setClassNames(String[] classNames) |
void |
setCrowdHomeLogAppenderSwitcher(CrowdHomeLogAppenderSwitcher crowdHomeLogAppenderSwitcher) |
void |
setCrowdLoggingConfiguration(CrowdLoggingConfiguration crowdLoggingConfiguration) |
void |
setEntries(List entries) |
void |
setEventPublisher(com.atlassian.event.api.EventPublisher eventPublisher) |
protected void |
setLevelForLogger(String className,
String levelName) |
void |
setLevelNames(String[] levelNames) |
void |
setProfileName(String profileName) |
void |
setProfilingOn(boolean profilingOn) |
protected boolean |
tryUpdateLogging()
Updates the logging rules upon a "submit" of the UI form by the user.
|
protected boolean |
tryUpdateProfiling() |
String |
updateLogging() |
String |
updateProfiling() |
addActionError, addActionMessage, applyFieldError, applyFieldErrors, authorisedToAccessCrowdAdminConsole, authorisedToAccessCrowdConsole, bindInformationAboutLicense, containsActionMessages, containsErrorMessages, directory, findAvatarUrl, getActionMessageAlertColor, getBootstrapManager, getCrowdApplication, getCurrentLicenseResourceTotal, getDisplayableLink, getHttpRequest, getImageLocation, getImageTitle, getLabel, getLicense, getLink, getLocaleProvider, getPasswordComplexityMessage, getRemoteUser, getSession, getSitemeshPageProperties, getSmallAvatarUrl, getTab, getText, getText, getTextProvider, getUserName, getWebFragmentsContextMap, getWebInterfaceManager, getWebItemsForSection, getWebResourceManager, getWebSectionsForLocation, getXsrfToken, getXsrfTokenName, isAtResourceLimit, isAuthenticated, isEvaluation, isGroupAdmin, isInitialLoad, isLicenseExpired, isLicenseForged, isRestartRequiredToEnableClustering, isSubscription, isSysAdmin, isWithinGracePeriod, renderFreemarkerTemplate, resolveAvatarUri, setActionHelper, setApplicationManager, setApplicationService, setClientProperties, setClusterService, setCrowdApplication, setCrowdLicenseManager, setDirectoryManager, setPropertyManager, setRememberMeService, setTab, setTokenAuthenticationManager, setWebInterfaceManager, setWebResourceManager, setXsrfTokenGenerator
addActionError, addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, getActionErrors, getActionMessages, getContainer, getFieldErrors, getFormatted, getLocale, getText, getText, getText, getText, getText, getText, getText, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, hasKey, input, isValidLocale, isValidLocaleString, pause, setActionErrors, setActionMessages, setContainer, setFieldErrors, validate
protected static final String LOGLEVEL_DEFAULT
protected String[] classNames
protected String[] levelNames
protected UpdateLoggingProfiling.LoggingConfigEntry entry
protected List<UpdateLoggingProfiling.LoggingConfigEntry> entries
public String execute()
execute
in interface com.opensymphony.xwork2.Action
execute
in class BaseAction
public String updateLogging()
public String updateProfiling()
protected void processLogging()
protected boolean tryUpdateLogging()
protected void processProfiling()
protected boolean tryUpdateProfiling()
public List getEntries()
public void setEntries(List entries)
public void setClassNames(String[] classNames)
public void setLevelNames(String[] levelNames)
public String getProfileName()
public void setProfileName(String profileName)
public boolean isProfilingOn()
public void setProfilingOn(boolean profilingOn)
public void setCrowdLoggingConfiguration(CrowdLoggingConfiguration crowdLoggingConfiguration)
public void setCrowdHomeLogAppenderSwitcher(CrowdHomeLogAppenderSwitcher crowdHomeLogAppenderSwitcher)
public void setEventPublisher(com.atlassian.event.api.EventPublisher eventPublisher)
Copyright © 2021 Atlassian. All rights reserved.