client/src/main/java/com/orientechnologies/orient/client/remote/OServerAdmin.java
public synchronized OServerAdmin freezeDatabase(final String storageType) throws IOException {

    OFreezeDatabaseRequest request = new OFreezeDatabaseRequest(storage.getName(), storageType);
    OFreezeDatabaseResponse response = networkAdminOperation(request, "Cannot freeze the remote storage: " + storage.getName());

    return this;
  }
public synchronized OServerAdmin freezeDatabase(final String storageType) throws IOException {

    OFreezeDatabaseRequest request = new OFreezeDatabaseRequest(storage.getName(), storageType);
    OFreezeDatabaseResponse response = networkAdminOperation(request, "Cannot freeze the remote storage: " + storage.getName());

    return this;
  }
Freezes the database by locking it in exclusive mode.

@param storageType Storage type between "plocal" or "memory".

@return

@throws IOException
@see #releaseDatabase(String)