Refine search
@ManagedOperation(description="Activate fatal level") @ManagedOperationParameters({@ManagedOperationParameter(name = "category", description = "the log4j category to set")}) public void activateFatal(String category) { LogManager.getLogger(category).setLevel(Level.FATAL); }
@ManagedOperation(description="Activate debug level") @ManagedOperationParameters({@ManagedOperationParameter(name = "category", description = "the log4j category to set")}) public void activateDebug(String category) { LogManager.getLogger(category).setLevel(Level.DEBUG); }
@ManagedOperation(description="Activate error level") @ManagedOperationParameters({@ManagedOperationParameter(name = "category", description = "the log4j category to set")}) public void activateError(String category) { LogManager.getLogger(category).setLevel(Level.ERROR); }
@ManagedOperation(description="Activate info level") @ManagedOperationParameters({@ManagedOperationParameter(name = "category", description = "the log4j2 category to set")}) public void activateInfo(String category) { Configurator.setLevel(category, Level.INFO); }
@ManagedOperation(description="Activate error level") @ManagedOperationParameters({@ManagedOperationParameter(name = "category", description = "the log4j2 category to set")}) public void activateError(String category) { Configurator.setLevel(category, Level.ERROR); }
@ManagedOperation(description="Activate fatal level") @ManagedOperationParameters({@ManagedOperationParameter(name = "category", description = "the log4j2 category to set")}) public void activateFatal(String category) { Configurator.setLevel(category, Level.FATAL); }
@ManagedOperation(description="Activate warn level") @ManagedOperationParameters({@ManagedOperationParameter(name = "category", description = "the log4j category to set")}) public void activateWarn(String category) { LogManager.getLogger(category).setLevel(Level.WARN); }
@ManagedOperation(description="Activate info level") @ManagedOperationParameters({@ManagedOperationParameter(name = "category", description = "the log4j category to set")}) public void activateInfo(String category) { LogManager.getLogger(category).setLevel(Level.INFO); }
@ManagedOperation(description="Activate debug level") @ManagedOperationParameters({@ManagedOperationParameter(name = "category", description = "the log4j2 category to set")}) public void activateDebug(String category) { Configurator.setLevel(category, Level.DEBUG); }
@ManagedOperation(description="Activate warn level") @ManagedOperationParameters({@ManagedOperationParameter(name = "category", description = "the log4j2 category to set")}) public void activateWarn(String category) { Configurator.setLevel(category, Level.WARN); }
@ManagedOperation(description="Retrieve the category log level") @ManagedOperationParameters({@ManagedOperationParameter(name = "category", description = "the log4j2 category")}) public String getLevel(String category) { return LogManager.getLogger(category).getLevel().toString(); }
@ManagedOperation(description="Retrieve the category log level") @ManagedOperationParameters({@ManagedOperationParameter(name = "category", description = "the log4j category")}) public String getLevel(String category) { return LogManager.getLogger(category).getLevel().toString(); }
@ManagedOperation(description = "Invoke a getter method of configuration interface and print the result") @ManagedOperationParameters({ @ManagedOperationParameter(name = "classFQN", description = "Fully qualified name of a configuration interface"), @ManagedOperationParameter(name = "methodName", description = "Getter method name"), @ManagedOperationParameter(name = "userLogin", description = "User login that will be used for creating a user session. " + "You can leave this field blank when using JMX console from CUBA application.") }) String getConfigValue(String classFQN, String methodName, String userLogin); }
@ManagedOperation(description = "Invoke a getter method of configuration interface and print the result") @ManagedOperationParameters({ @ManagedOperationParameter(name = "classFQN", description = "Fully qualified name of a configuration interface"), @ManagedOperationParameter(name = "methodName", description = "Getter method name"), @ManagedOperationParameter(name = "userLogin", description = "User login that will be used for creating a user session") }) String getConfigValue(String classFQN, String methodName, String userLogin); }
@ManagedOperation(description = "加法操作") @ManagedOperationParameters({ @ManagedOperationParameter(name = "a", description = "加数"), @ManagedOperationParameter(name = "b", description = "被加数")}) public int add(int a, int b) { return a + b; }
@ManagedOperation(description = "Invoke a getter method of configuration interface and print the result") @ManagedOperationParameters({ @ManagedOperationParameter(name = "classFQN", description = "Fully qualified name of a configuration interface"), @ManagedOperationParameter(name = "methodName", description = "Getter method name") }) String getConfigValue(String classFQN, String methodName); }
@ManagedOperation(description = "Removes executions occurred earlier than 'age' for tasks with period lesser than 'maxPeriod'") @ManagedOperationParameters({ @ManagedOperationParameter(name = "age", description = "Execution age in hours"), @ManagedOperationParameter(name = "maxPeriod", description = "Max task period in hours")}) String removeExecutionHistory(String age, String maxPeriod); }
@ManagedOperation(description = "Store a property value into the database") @ManagedOperationParameters({ @ManagedOperationParameter(name = "name", description = ""), @ManagedOperationParameter(name = "value", description = "") }) String setDbProperty(String name, String value);
@ManagedOperation(description = "Set a file-stored property value in memory until the server restart") @ManagedOperationParameters({ @ManagedOperationParameter(name = "name", description = ""), @ManagedOperationParameter(name = "value", description = "") }) String setAppProperty(String name, String value);
/** * Execute a JPQL update statement. * @param queryString JPQL update statement * @param softDeletion soft deletion sign * @return number of entity instances affected by update */ @ManagedOperation(description = "Execute a JPQL update statement") @ManagedOperationParameters({ @ManagedOperationParameter(name = "queryString", description = ""), @ManagedOperationParameter(name = "softDeletion", description = "") }) String jpqlExecuteUpdate(String queryString, boolean softDeletion);