Search in sources :

Example 1 with ODatabaseTool

use of com.orientechnologies.orient.core.db.tool.ODatabaseTool in project orientdb by orientechnologies.

the class OCRUDWorkload method check.

@Override
public void check(final ODatabaseIdentifier databaseIdentifier) {
    final ODatabaseDocument db = (ODatabaseDocument) getDocumentDatabase(databaseIdentifier, OStorageRemote.CONNECTION_STRATEGY.STICKY);
    final ODatabaseTool repair = new ODatabaseRepair().setDatabase(db);
    repair.run();
}
Also used : ODatabaseTool(com.orientechnologies.orient.core.db.tool.ODatabaseTool) ODatabaseRepair(com.orientechnologies.orient.core.db.tool.ODatabaseRepair) ODatabaseDocument(com.orientechnologies.orient.core.db.document.ODatabaseDocument)

Aggregations

ODatabaseDocument (com.orientechnologies.orient.core.db.document.ODatabaseDocument)1 ODatabaseRepair (com.orientechnologies.orient.core.db.tool.ODatabaseRepair)1 ODatabaseTool (com.orientechnologies.orient.core.db.tool.ODatabaseTool)1