Class OETLContext
java.lang.Object
com.orientechnologies.orient.core.command.OBasicCommandContext
com.orientechnologies.orient.etl.context.OETLContext
- All Implemented Interfaces:
OCommandContext
OETLContext extends OBasicCommandContext, in order to handle the following additional elements: -
message handler for application messages
- Author:
- Gabriele Ponzi
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.orientechnologies.orient.core.command.OCommandContext
OCommandContext.TIMEOUT_STRATEGY -
Field Summary
Fields inherited from class com.orientechnologies.orient.core.command.OBasicCommandContext
args, child, database, declaredScriptVariables, EXECUTION_BEGUN, inputParameters, INVALID_COMPARE_COUNT, parent, recordMetrics, resultsProcessed, TIMEOUT_MS, TIMEOUT_STRATEGY, uniqueResult, variables -
Constructor Summary
ConstructorsConstructorDescriptionBy default the OETLContext in initialized with a message handler with: - verbosity level: 0 (NONE) --> nothing will be printed out - output stream: null - logging: OLogManager -
Method Summary
Modifier and TypeMethodDescriptiongetOrientDB(String url, String user, String password) printExceptionMessage(Exception e, String message, String level) Prints the error message for a caught exception according to a level passed as argument.printExceptionStackTrace(Exception e, String level) Builds the exception stack trace and prints it according to a level passed as argument.voidregisterOrientDB(OrientDB orientdb) voidsetMessageHandler(OPluginMessageHandler messageHandler) Methods inherited from class com.orientechnologies.orient.core.command.OBasicCommandContext
addToUniqueResult, beginExecution, checkTimeout, copy, declareScriptVariable, getDatabase, getInputParameters, getParent, getResultsProcessed, getVariable, getVariable, getVariableFromParentHierarchy, getVariables, incrementVariable, isRecordingMetrics, isScriptVariableDeclared, merge, setChild, setDatabase, setDynamicVariable, setInputParameters, setParent, setParentWithoutOverridingChild, setRecordingMetrics, setVariable, toString, updateMetric
-
Constructor Details
-
OETLContext
public OETLContext()By default the OETLContext in initialized with a message handler with: - verbosity level: 0 (NONE) --> nothing will be printed out - output stream: null - logging: OLogManager
-
-
Method Details
-
getMessageHandler
-
setMessageHandler
-
printExceptionMessage
Prints the error message for a caught exception according to a level passed as argument. It's composed of: - defined error message - exception message- Parameters:
e-message-level-- Returns:
- printedMessage
-
printExceptionStackTrace
Builds the exception stack trace and prints it according to a level passed as argument.- Parameters:
e-level-- Returns:
- printedMessage
-
registerOrientDB
-
getOrientDB
-