public class OTeleporterContext extends Object
Constructor and Description |
---|
OTeleporterContext(com.orientechnologies.orient.core.db.OrientDB orientDBInstance) |
OTeleporterContext(String url) |
Modifier and Type | Method and Description |
---|---|
void |
closeOrientDBInstance() |
void |
dropOrientDBDatabase(String databaseName) |
ODriverDataTypeHandler |
getDataTypeHandler() |
ODBQueryEngine |
getDbQueryEngine() |
String |
getDriverDependencyPath() |
String |
getExecutionStrategy() |
static OTeleporterContext |
getInstance() |
com.orientechnologies.orient.output.OPluginMessageHandler |
getMessageHandler() |
ONameResolver |
getNameResolver() |
com.orientechnologies.orient.core.db.OrientDB |
getOrientDBInstance() |
OTeleporterStatistics |
getStatistics() |
void |
initOrientDBInstance(String url)
Url contains: protocol + parentDBDirectory.
|
void |
initOrientDBInstance(String url,
com.orientechnologies.orient.core.db.OrientDBConfig config) |
static OTeleporterContext |
newInstance(com.orientechnologies.orient.core.db.OrientDB orientDBInstance) |
static OTeleporterContext |
newInstance(String url) |
String |
printExceptionMessage(Exception e,
String message,
String level)
Prints the error message for a caught exception according to a level passed as argument.
|
static String |
printExceptionMessage(Object requester,
com.orientechnologies.orient.output.OPluginMessageHandler messageHandler,
Exception e,
String message,
String level)
Prints the error message for a caught exception according to a level passed as argument.
|
String |
printExceptionStackTrace(Exception e,
String level)
Builds the exception stack trace and prints it according to a level passed as argument.
|
static String |
printExceptionStackTrace(Object requester,
com.orientechnologies.orient.output.OPluginMessageHandler messageHandler,
Exception e,
String level)
Builds the exception stack trace and prints it according to a level passed as argument.
|
void |
setDataTypeHandler(ODriverDataTypeHandler dataTypeHandler) |
void |
setDbQueryEngine(ODBQueryEngine dbQueryEngine) |
void |
setDriverDependencyPath(String driverDependencyPath) |
void |
setExecutionStrategy(String executionStrategy) |
void |
setMessageHandler(com.orientechnologies.orient.output.OPluginMessageHandler messageHandler) |
void |
setNameResolver(ONameResolver nameResolver) |
void |
setStatistics(OTeleporterStatistics statistics) |
public OTeleporterContext(com.orientechnologies.orient.core.db.OrientDB orientDBInstance)
public OTeleporterContext(String url)
public static OTeleporterContext getInstance()
public static OTeleporterContext newInstance(com.orientechnologies.orient.core.db.OrientDB orientDBInstance)
public static OTeleporterContext newInstance(String url)
public com.orientechnologies.orient.core.db.OrientDB getOrientDBInstance()
public void initOrientDBInstance(String url)
url
- public void initOrientDBInstance(String url, com.orientechnologies.orient.core.db.OrientDBConfig config)
public void closeOrientDBInstance()
public void dropOrientDBDatabase(String databaseName)
public OTeleporterStatistics getStatistics()
public void setStatistics(OTeleporterStatistics statistics)
public com.orientechnologies.orient.output.OPluginMessageHandler getMessageHandler()
public void setMessageHandler(com.orientechnologies.orient.output.OPluginMessageHandler messageHandler)
public ODriverDataTypeHandler getDataTypeHandler()
public void setDataTypeHandler(ODriverDataTypeHandler dataTypeHandler)
public ONameResolver getNameResolver()
public void setNameResolver(ONameResolver nameResolver)
public String getDriverDependencyPath()
public void setDriverDependencyPath(String driverDependencyPath)
public String getExecutionStrategy()
public void setExecutionStrategy(String executionStrategy)
public ODBQueryEngine getDbQueryEngine()
public void setDbQueryEngine(ODBQueryEngine dbQueryEngine)
public String printExceptionMessage(Exception e, String message, String level)
e
- message
- level
- public static String printExceptionMessage(Object requester, com.orientechnologies.orient.output.OPluginMessageHandler messageHandler, Exception e, String message, String level)
e
- message
- level
- public String printExceptionStackTrace(Exception e, String level)
e
- level
- public static String printExceptionStackTrace(Object requester, com.orientechnologies.orient.output.OPluginMessageHandler messageHandler, Exception e, String level)
e
- level
- Copyright © 2015–2024 OrientDB. All rights reserved.