Class OrientDBManager
- java.lang.Object
-
- com.chutneytesting.component.scenario.infra.orient.OrientDBManager
-
@Component public class OrientDBManager extends Object
-
-
Constructor Summary
Constructors Constructor Description OrientDBManager(OrientConfigurationProperties orientConfigurationProperties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbackup(String dbName, OutputStream outputStream)Backup database with given name as zil file into given stream.voidcreateOrientDB(String dbName, com.orientechnologies.orient.core.db.ODatabaseType dbType)voiddestroy()voiddropOrientDB(String dbName)com.orientechnologies.orient.core.db.ODatabasePoolgetDBPool(String dbName)voidinit()
-
-
-
Constructor Detail
-
OrientDBManager
public OrientDBManager(OrientConfigurationProperties orientConfigurationProperties)
-
-
Method Detail
-
init
@PostConstruct public void init()
-
destroy
@PreDestroy public void destroy()
-
createOrientDB
public void createOrientDB(String dbName, com.orientechnologies.orient.core.db.ODatabaseType dbType)
-
backup
public void backup(String dbName, OutputStream outputStream) throws UncheckedIOException
Backup database with given name as zil file into given stream. Be aware that the stream will be closed after this method call.- Throws:
UncheckedIOException
-
getDBPool
public com.orientechnologies.orient.core.db.ODatabasePool getDBPool(String dbName)
-
dropOrientDB
public void dropOrientDB(String dbName)
-
-