Class OETLContext

java.lang.Object
com.orientechnologies.orient.core.command.OBasicCommandContext
com.orientechnologies.orient.etl.context.OETLContext
All Implemented Interfaces:
OCommandContext

public class OETLContext extends OBasicCommandContext
OETLContext extends OBasicCommandContext, in order to handle the following additional elements: - message handler for application messages
Author:
Gabriele Ponzi
  • 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

      public OPluginMessageHandler getMessageHandler()
    • setMessageHandler

      public void setMessageHandler(OPluginMessageHandler messageHandler)
    • printExceptionMessage

      public String printExceptionMessage(Exception e, String message, String level)
      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

      public String printExceptionStackTrace(Exception e, String level)
      Builds the exception stack trace and prints it according to a level passed as argument.
      Parameters:
      e -
      level -
      Returns:
      printedMessage
    • registerOrientDB

      public void registerOrientDB(OrientDB orientdb)
    • getOrientDB

      public OrientDB getOrientDB(String url, String user, String password)