public synchronized OServerAdmin createDatabase(final String iDatabaseName, final String iDatabaseType, final String iStorageMode,
      final String backupPath) throws IOException {
    """
	Creates a database in a remote server.
	
	@param iDatabaseName The database name
	@param iDatabaseType 'document' or 'graph'
	@param iStorageMode  local or memory
	@param backupPath    path to incremental backup which will be used to create database (optional)
	
	@return The instance itself. Useful to execute method in chain
	
	@throws IOException
    """

    if (iDatabaseName == null || iDatabaseName.length() <= 0) {
      final String message = "Cannot create unnamed remote storage. Check your syntax";
      OLogManager.instance().error(this, message, null);
      throw new OStorageException(message);
    } else {
      String storageMode;
      if (iStorageMode == null)
        storageMode = "plocal";
      else
        storageMode = iStorageMode;

      OCreateDatabaseRequest request = new OCreateDatabaseRequest(iDatabaseName, iDatabaseName, storageMode, backupPath);
      OCreateDatabaseResponse response = networkAdminOperation(request, "Cannot create the remote storage: " + storage.getName());

    }

    return this;
  }
public synchronized OServerAdmin createDatabase(final String iDatabaseName, final String iDatabaseType, final String iStorageMode,
      final String backupPath) throws IOException {

    if (iDatabaseName == null || iDatabaseName.length() <= 0) {
      final String message = "Cannot create unnamed remote storage. Check your syntax";
      OLogManager.instance().error(this, message, null);
      throw new OStorageException(message);
    } else {
      String storageMode;
      if (iStorageMode == null)
        storageMode = "plocal";
      else
        storageMode = iStorageMode;

      OCreateDatabaseRequest request = new OCreateDatabaseRequest(iDatabaseName, iDatabaseName, storageMode, backupPath);
      OCreateDatabaseResponse response = networkAdminOperation(request, "Cannot create the remote storage: " + storage.getName());

    }

    return this;
  }
public synchronized OServerAdmin createDatabase ( final String iDatabaseName , final String iDatabaseType , final String iStorageMode , final String backupPath ) throws IOException { if ( iDatabaseName == null || iDatabaseName . length ( ) <= 0 ) { final String message = "Cannot create unnamed remote storage. Check your syntax" ; OLogManager . instance ( ) . error ( this , message , null ) ; throw new OStorageException ( message ) ; } else { String storageMode ; if ( iStorageMode == null ) storageMode = "plocal" ; else storageMode = iStorageMode ; OCreateDatabaseRequest request = new OCreateDatabaseRequest ( iDatabaseName , iDatabaseName , storageMode , backupPath ) ; OCreateDatabaseResponse response = networkAdminOperation ( request , "Cannot create the remote storage: " + storage . getName ( ) ) ; } return this ; }
Creates a database in a remote server.

@param iDatabaseName The database name
@param iDatabaseType 'document' or 'graph'
@param iStorageMode  local or memory
@param backupPath    path to incremental backup which will be used to create database (optional)

@return The instance itself. Useful to execute method in chain

@throws IOException
Creates a database in a remote server .