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
child, database, declaredScriptVariables, EXECUTION_BEGUN, inputParameters, INVALID_COMPARE_COUNT, parent, recordMetrics, resultsProcessed, TIMEOUT_MS, TIMEOUT_STRATEGY, 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
beginExecution, checkTimeout, copy, declareScriptVariable, enableProfiling, endProfiling, getCurrent, getDatabase, getInputParameters, getLocalVariable, getParent, getResultsProcessed, getSimpleVariable, getStats, getVariable, getVariable, getVariableFromParentHierarchy, getVariables, hasLocalVariable, incrementVariable, isProfiling, isRecordingMetrics, isScriptVariableDeclared, merge, setArrayParameters, setChild, setCurrent, setCurrentIfMissing, setDatabase, setDynamicVariable, setInputParameters, setLocalVariable, setParent, setParentWithoutOverridingChild, setRecordingMetrics, setVariable, startProfiling, toString, updateMetric, updateProfilerIndex
-
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
-