|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.opensymphony.xwork.ActionSupport com.atlassian.crowd.console.action.BaseAction com.atlassian.crowd.console.action.options.UpdateLoggingProfiling
public class UpdateLoggingProfiling
Allows configuration of logging and profiling. These could be split to separate classes (& actions), but not as long as they're one page in the UI.
Nested Class Summary | |
---|---|
protected static class |
UpdateLoggingProfiling.LoggingConfigEntry
Represents a Log4j Config entry, corresponding to a Class or Package mapped to a Level. |
Field Summary | |
---|---|
protected String[] |
classNames
TODO: levelNames[i] is the level name for class classNames[i]. |
protected List |
entries
|
protected UpdateLoggingProfiling.LoggingConfigEntry |
entry
|
protected String[] |
levelNames
|
protected static String |
LOGLEVEL_DEFAULT
|
Fields inherited from class com.atlassian.crowd.console.action.BaseAction |
---|
actionMessageAlertColor, ALERT_BLUE, ALERT_GREEN, ALERT_RED, ALERT_YELLOW, applicationManager, applicationService, clientProperties, crowdLicenseManager, directoryManager, initialLoad, propertyManager, tab, tokenAuthenticationManager |
Fields inherited from class com.opensymphony.xwork.ActionSupport |
---|
LOG |
Fields inherited from interface com.opensymphony.xwork.Action |
---|
ERROR, INPUT, LOGIN, NONE, SUCCESS |
Constructor Summary | |
---|---|
UpdateLoggingProfiling()
|
Method Summary | |
---|---|
String |
doDefault()
|
String |
doUpdateLogging()
|
String |
doUpdateProfiling()
|
List |
getEntries()
|
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 |
setEntries(List entries)
|
protected void |
setLevelForLogger(String className,
String levelName)
|
void |
setLevelNames(String[] levelNames)
|
void |
setProfileName(String profileName)
|
void |
setProfilingOn(boolean profilingOn)
|
protected boolean |
updateLogging()
Updates the logging rules upon a "submit" of the UI form by the user. |
protected boolean |
updateProfiling()
|
Methods inherited from class com.opensymphony.xwork.ActionSupport |
---|
addActionError, addActionMessage, addFieldError, clearErrorsAndMessages, clone, doInput, execute, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getLocale, getText, getText, getText, getText, getText, getText, getText, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, hasKey, pause, setActionErrors, setActionMessages, setFieldErrors, validate |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final String LOGLEVEL_DEFAULT
protected String[] classNames
protected String[] levelNames
protected UpdateLoggingProfiling.LoggingConfigEntry entry
protected List entries
Constructor Detail |
---|
public UpdateLoggingProfiling()
Method Detail |
---|
public String doDefault()
doDefault
in class BaseAction
public String doUpdateLogging()
public String doUpdateProfiling()
protected void processLogging()
protected boolean updateLogging()
protected void setLevelForLogger(String className, String levelName)
protected void processProfiling()
protected boolean updateProfiling()
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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |