use of com.orientechnologies.orient.client.remote.OServerAdmin in project orientdb by orientechnologies.
the class HookInstallServerTest method after.
@After
public void after() throws IOException {
OServerAdmin admin = new OServerAdmin("remote:localhost");
admin.connect("root", "D2AFD02F20640EC8B7A5140F34FCA49D2289DB1F0D0598BB9DE8AAA75A0792F3");
admin.dropDatabase("test", "memory");
admin.close();
server.shutdown();
Orient.instance().startup();
}
use of com.orientechnologies.orient.client.remote.OServerAdmin in project orientdb by orientechnologies.
the class TestBatchRemoteResultSet method before.
@Before
public void before() throws ClassNotFoundException, MalformedObjectNameException, InstanceAlreadyExistsException, NotCompliantMBeanException, MBeanRegistrationException, InvocationTargetException, NoSuchMethodException, InstantiationException, IOException, IllegalAccessException {
server = new OServer(false);
server.startup(OrientGraphRemoteTest.class.getResourceAsStream("/embedded-server-config-single-run.xml"));
server.activate();
OServerAdmin admin = new OServerAdmin("remote:localhost:3064");
admin.connect("root", "root");
admin.createDatabase(OrientGraphRemoteTest.class.getSimpleName(), "graph", "memory");
admin.close();
}
use of com.orientechnologies.orient.client.remote.OServerAdmin in project orientdb by orientechnologies.
the class TestDirtyTrackingTreeRidBagRemote method before.
@Before
public void before() throws ClassNotFoundException, MalformedObjectNameException, InstanceAlreadyExistsException, NotCompliantMBeanException, MBeanRegistrationException, InvocationTargetException, NoSuchMethodException, InstantiationException, IOException, IllegalAccessException {
server = new OServer(false);
server.startup(OrientGraphRemoteTest.class.getResourceAsStream("/embedded-server-config-single-run.xml"));
server.activate();
OServerAdmin admin = new OServerAdmin("remote:localhost:3064");
admin.connect("root", "root");
admin.createDatabase(TestDirtyTrackingTreeRidBagRemote.class.getSimpleName(), "graph", "memory");
admin.close();
}
use of com.orientechnologies.orient.client.remote.OServerAdmin in project orientdb by orientechnologies.
the class OrientCommitMT method afterClass.
@AfterClass
public static void afterClass() throws IOException {
if (DB_URL.startsWith("remote:")) {
OServerAdmin serverAdmin = new OServerAdmin(DB_URL);
serverAdmin.connect("root", ODatabaseHelper.getServerRootPassword());
if (serverAdmin.existsDatabase(OrientGraphTest.getStorageType())) {
serverAdmin.dropDatabase(OrientGraphTest.getStorageType());
}
} else {
OrientGraph graph = new OrientGraph(DB_URL, DB_USER, DB_PASSWORD);
graph.drop();
}
}
use of com.orientechnologies.orient.client.remote.OServerAdmin in project orientdb by orientechnologies.
the class OSBTreeRidBagTest method afterMethod.
@AfterMethod
public void afterMethod() throws IOException {
OGlobalConfiguration.RID_BAG_EMBEDDED_TO_SBTREEBONSAI_THRESHOLD.setValue(topThreshold);
OGlobalConfiguration.RID_BAG_SBTREEBONSAI_TO_EMBEDDED_THRESHOLD.setValue(bottomThreshold);
if (database.getStorage() instanceof OStorageProxy) {
OServerAdmin server = new OServerAdmin(database.getURL()).connect("root", ODatabaseHelper.getServerRootPassword());
server.setGlobalConfiguration(OGlobalConfiguration.RID_BAG_EMBEDDED_TO_SBTREEBONSAI_THRESHOLD, topThreshold);
server.setGlobalConfiguration(OGlobalConfiguration.RID_BAG_SBTREEBONSAI_TO_EMBEDDED_THRESHOLD, bottomThreshold);
server.close();
}
}
Aggregations