Class ConfigureLogback
java.lang.Object
org.cristalise.kernel.graph.model.Vertex
org.cristalise.kernel.graph.model.GraphableVertex
org.cristalise.kernel.lifecycle.instance.WfVertex
org.cristalise.kernel.lifecycle.instance.Activity
org.cristalise.kernel.lifecycle.instance.predefined.PredefinedStep
org.cristalise.kernel.lifecycle.instance.predefined.server.ConfigureLogback
-
Nested Class Summary
Nested classes/interfaces inherited from class org.cristalise.kernel.lifecycle.instance.WfVertex
WfVertex.Types -
Field Summary
FieldsFields inherited from class org.cristalise.kernel.lifecycle.instance.predefined.PredefinedStep
AVAILABLE, DONEFields inherited from class org.cristalise.kernel.lifecycle.instance.Activity
active, mErrors, PREDEF_STEPS_ELEMENT, state, XPATH_TOKENFields inherited from class org.cristalise.kernel.graph.model.GraphableVertex
mIsComposite -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringrunActivityLogic(AgentPath agent, ItemPath item, int transitionID, String requestData, TransactionKey transactionKey) All predefined steps must override this to implement their actionstatic booleansetLogLevel(String loggerName, String logLevel) Dynamically sets the logback log level for the given class to the specified level.Methods inherited from class org.cristalise.kernel.lifecycle.instance.predefined.PredefinedStep
bundleData, bundleData, computeUpdates, getActive, getDataList, getErrors, getName, getPredefStepOutcomeNode, getPredefStepSchemaName, getStepInstance, getType, mergeProperties, request, storeOutcomeEventAndViews, storeOutcomeEventAndViews, verifyMethods inherited from class org.cristalise.kernel.lifecycle.instance.Activity
abort, addNext, calculateAllJobs, calculateJobs, getCurrentAgentName, getCurrentAgentRole, getDescription, getErrorTransitionId, getNext, getState, getStateDate, getStateMachine, getStateMachine, getStateName, getTypeName, isFinished, loop, reinit, request, request, run, runFirst, runNext, setActive, setActiveDate, setStartDate, setState, setStateDate, setType, toStringMethods inherited from class org.cristalise.kernel.lifecycle.instance.WfVertex
evaluateProperty, evaluatePropertyValue, evaluateScript, findLastVertex, findPair, getActContext, getWfMethods inherited from class org.cristalise.kernel.graph.model.GraphableVertex
addChild, deriveVersionNumber, getBuiltInProperty, getBuiltInProperty, getCentrePoint, getChildren, getChildrenEdges, getChildrenGraphModel, getCreationContext, getInEdgeIds, getInEdges, getInGraphables, getIsComposite, getIsLayoutable, getKeyValuePairs, getLayoutableChildren, getOtherPairingID, getOutEdgeIds, getOutEdges, getOutGraphables, getOutlinePoints, getPairingId, getParent, getPath, getProperties, isMyPair, search, setBuiltInProperty, setChildrenGraphModel, setIsComposite, setIsLayoutable, setKeyValuePairs, setParent, setProperties, updatePropertiesFromCollection, updatePropertiesFromCollectionMethods inherited from class org.cristalise.kernel.graph.model.Vertex
addInEdgeId, addOutEdgeId, clearTag, containsPoint, hasTag, isJoin, isLoop, moveAbsolute, removeInEdgeId, removeOutEdgeId, setInEdgeIds, setOutEdgeIds, setOutlinePoints, setTag
-
Field Details
-
description
- See Also:
-
-
Constructor Details
-
ConfigureLogback
public ConfigureLogback()
-
-
Method Details
-
runActivityLogic
protected String runActivityLogic(AgentPath agent, ItemPath item, int transitionID, String requestData, TransactionKey transactionKey) throws InvalidDataException, ObjectCannotBeUpdated, ObjectNotFoundException, CannotManageException, ObjectAlreadyExistsException, InvalidCollectionModification Description copied from class:PredefinedStepAll predefined steps must override this to implement their action- Specified by:
runActivityLogicin classPredefinedStep- Parameters:
agent-item-transitionID-requestData-transactionKey-- Returns:
- Throws:
InvalidDataExceptionObjectCannotBeUpdatedObjectNotFoundExceptionCannotManageExceptionObjectAlreadyExistsExceptionInvalidCollectionModification
-
setLogLevel
public static boolean setLogLevel(String loggerName, String logLevel) throws InvalidDataException, ReflectiveOperationException Dynamically sets the logback log level for the given class to the specified level.- Parameters:
loggerName- Name of the logger to set its log level. If blank, root logger will be used.logLevel- One of the supported log levels: TRACE, DEBUG, INFO, WARN, ERROR, FATAL, OFF. blank value is considered as 'OFF'.- Throws:
ReflectiveOperationException- could not find Logback classes or methodsInvalidDataException- Logback is not in the classpath
-