Exposed method isOpen()
*/
package com.orientechnologies.orient.core.db;
-import com.orientechnologies.orient.core.db.document.ODatabaseDocument;
-
import java.util.ArrayList;
import java.util.List;
@@ -294,6 +292,16 @@ public class OrientDB implements AutoCloseable {
this.internal.close();
}
+ /**
+ * Check if the current OrientDB context is open
+ *
+ *
+ * @return boolean true if is open false otherwise.
+ */
+ public boolean isOpen(){
+ return this.internal.isOpen();
+ }
+
ODatabasePoolInternal openPool(String database, String user, String password, OrientDBConfig config) {
return this.internal.openPool(database, user, password, config);
}
