Class OServerAdmin

java.lang.Object
com.orientechnologies.orient.client.remote.OServerAdmin

@Deprecated public class OServerAdmin extends Object
Deprecated.
Remote administration class of OrientDB Server instances.
  • Field Details

    • session

      protected OStorageRemoteSession session
      Deprecated.
    • clientType

      protected String clientType
      Deprecated.
    • collectStats

      protected boolean collectStats
      Deprecated.
  • Constructor Details

    • OServerAdmin

      @Deprecated public OServerAdmin(String iURL) throws IOException
      Deprecated.
      Creates the object passing a remote URL to connect. sessionToken
      Parameters:
      iURL - URL to connect. It supports only the "remote" storage type.
      Throws:
      IOException
    • OServerAdmin

      public OServerAdmin(OrientDBRemote remote, String url) throws IOException
      Deprecated.
      Throws:
      IOException
    • OServerAdmin

      @Deprecated public OServerAdmin(OStorageRemote iStorage)
      Deprecated.
      Creates the object starting from an existent remote storage.
      Parameters:
      iStorage -
  • Method Details

    • connect

      @Deprecated public OServerAdmin connect(String iUserName, String iUserPassword) throws IOException
      Deprecated.
      Connects to a remote server.
      Parameters:
      iUserName - Server's user name
      iUserPassword - Server's password for the user name used
      Returns:
      The instance itself. Useful to execute method in chain
      Throws:
      IOException
    • listDatabases

      @Deprecated public Map<String,String> listDatabases() throws IOException
      Deprecated.
      Returns the list of databases on the connected remote server.
      Throws:
      IOException
    • getServerInfo

      @Deprecated public ODocument getServerInfo() throws IOException
      Deprecated.
      Returns the server information in form of document.
      Throws:
      IOException
    • getSessionId

      public int getSessionId()
      Deprecated.
    • createDatabase

      @Deprecated public OServerAdmin createDatabase(String iStorageMode) throws IOException
      Deprecated.
      Deprecated. Use the createDatabase(String, String) instead.
      Throws:
      IOException
    • createDatabase

      @Deprecated public OServerAdmin createDatabase(String iDatabaseType, String iStorageMode) throws IOException
      Deprecated.
      Creates a database in a remote server.
      Parameters:
      iDatabaseType - 'document' or 'graph'
      iStorageMode - local or memory
      Returns:
      The instance itself. Useful to execute method in chain
      Throws:
      IOException
    • getStorageName

      public String getStorageName()
      Deprecated.
    • createDatabase

      public OServerAdmin createDatabase(String iDatabaseName, String iDatabaseType, String iStorageMode) throws IOException
      Deprecated.
      Throws:
      IOException
    • createDatabase

      public OServerAdmin createDatabase(String iDatabaseName, String iDatabaseType, String iStorageMode, String backupPath) throws IOException
      Deprecated.
      Creates a database in a remote server.
      Parameters:
      iDatabaseName - The database name
      iDatabaseType - 'document' or 'graph'
      iStorageMode - local or memory
      backupPath - path to incremental backup which will be used to create database (optional)
      Returns:
      The instance itself. Useful to execute method in chain
      Throws:
      IOException
    • existsDatabase

      public boolean existsDatabase() throws IOException
      Deprecated.
      Checks if a database exists in the remote server.
      Returns:
      true if exists, otherwise false
      Throws:
      IOException
    • existsDatabase

      public boolean existsDatabase(String iDatabaseName, String storageType) throws IOException
      Deprecated.
      Checks if a database exists in the remote server.
      Parameters:
      iDatabaseName - The database name
      storageType - Storage type between "plocal" or "memory".
      Returns:
      true if exists, otherwise false
      Throws:
      IOException
    • existsDatabase

      public boolean existsDatabase(String storageType) throws IOException
      Deprecated.
      Checks if a database exists in the remote server.
      Parameters:
      storageType - Storage type between "plocal" or "memory".
      Returns:
      true if exists, otherwise false
      Throws:
      IOException
    • deleteDatabase

      @Deprecated public OServerAdmin deleteDatabase(String storageType) throws IOException
      Deprecated.
      Deprecated. Use dropDatabase() instead.
      Parameters:
      storageType - Storage type between "plocal" or "memory".
      Returns:
      The instance itself. Useful to execute method in chain
      Throws:
      IOException
      See Also:
    • dropDatabase

      public OServerAdmin dropDatabase(String iDatabaseName, String storageType) throws IOException
      Deprecated.
      Drops a database from a remote server instance.
      Parameters:
      iDatabaseName - The database name
      storageType - Storage type between "plocal" or "memory".
      Returns:
      The instance itself. Useful to execute method in chain
      Throws:
      IOException
    • dropDatabase

      public OServerAdmin dropDatabase(String storageType) throws IOException
      Deprecated.
      Drops a database from a remote server instance.
      Parameters:
      storageType - Storage type between "plocal" or "memory".
      Returns:
      The instance itself. Useful to execute method in chain
      Throws:
      IOException
    • freezeDatabase

      public OServerAdmin freezeDatabase(String storageType) throws IOException
      Deprecated.
      Freezes the database by locking it in exclusive mode.
      Parameters:
      storageType - Storage type between "plocal" or "memory".
      Returns:
      Throws:
      IOException
      See Also:
    • releaseDatabase

      public OServerAdmin releaseDatabase(String storageType) throws IOException
      Deprecated.
      Releases a frozen database.
      Parameters:
      storageType - Storage type between "plocal" or "memory".
      Returns:
      Throws:
      IOException
      See Also:
    • clusterStatus

      public ODocument clusterStatus()
      Deprecated.
      Gets the cluster status.
      Returns:
      the JSON containing the current cluster structure
    • getGlobalConfigurations

      public Map<String,String> getGlobalConfigurations() throws IOException
      Deprecated.
      Throws:
      IOException
    • getGlobalConfiguration

      public String getGlobalConfiguration(OGlobalConfiguration config) throws IOException
      Deprecated.
      Throws:
      IOException
    • setGlobalConfiguration

      public OServerAdmin setGlobalConfiguration(OGlobalConfiguration config, Object iValue) throws IOException
      Deprecated.
      Throws:
      IOException
    • close

      public void close()
      Deprecated.
      Close the connection if open.
    • close

      public void close(boolean iForce)
      Deprecated.
    • getURL

      public String getURL()
      Deprecated.
    • isConnected

      public boolean isConnected()
      Deprecated.