Class OServerAdmin
java.lang.Object
com.orientechnologies.orient.client.remote.OServerAdmin
Deprecated.
Remote administration class of OrientDB Server instances.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringDeprecated.protected booleanDeprecated.protected OStorageRemoteSessionDeprecated. -
Constructor Summary
ConstructorsConstructorDescriptionOServerAdmin(OrientDBRemote remote, String url) Deprecated.OServerAdmin(OStorageRemote iStorage) Deprecated.OServerAdmin(String iURL) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Deprecated.Close the connection if open.voidclose(boolean iForce) Deprecated.Deprecated.Gets the cluster status.Deprecated.createDatabase(String iStorageMode) Deprecated.createDatabase(String iDatabaseType, String iStorageMode) Deprecated.createDatabase(String iDatabaseName, String iDatabaseType, String iStorageMode) Deprecated.createDatabase(String iDatabaseName, String iDatabaseType, String iStorageMode, String backupPath) Deprecated.Creates a database in a remote server.deleteDatabase(String storageType) Deprecated.dropDatabase(String storageType) Deprecated.Drops a database from a remote server instance.dropDatabase(String iDatabaseName, String storageType) Deprecated.Drops a database from a remote server instance.booleanDeprecated.Checks if a database exists in the remote server.booleanexistsDatabase(String storageType) Deprecated.Checks if a database exists in the remote server.booleanexistsDatabase(String iDatabaseName, String storageType) Deprecated.Checks if a database exists in the remote server.freezeDatabase(String storageType) Deprecated.Freezes the database by locking it in exclusive mode.Deprecated.Deprecated.Deprecated.intDeprecated.Deprecated.getURL()Deprecated.booleanDeprecated.Deprecated.releaseDatabase(String storageType) Deprecated.Releases a frozen database.setGlobalConfiguration(OGlobalConfiguration config, Object iValue) Deprecated.
-
Field Details
-
session
Deprecated. -
clientType
Deprecated. -
collectStats
protected boolean collectStatsDeprecated.
-
-
Constructor Details
-
OServerAdmin
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
Deprecated.- Throws:
IOException
-
OServerAdmin
Deprecated.Creates the object starting from an existent remote storage.- Parameters:
iStorage-
-
-
Method Details
-
connect
Deprecated.Connects to a remote server.- Parameters:
iUserName- Server's user nameiUserPassword- Server's password for the user name used- Returns:
- The instance itself. Useful to execute method in chain
- Throws:
IOException
-
listDatabases
Deprecated.Returns the list of databases on the connected remote server.- Throws:
IOException
-
getServerInfo
Deprecated.Returns the server information in form of document.- Throws:
IOException
-
getSessionId
public int getSessionId()Deprecated. -
createDatabase
Deprecated.Deprecated. Use thecreateDatabase(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
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 nameiDatabaseType- 'document' or 'graph'iStorageMode- local or memorybackupPath- 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
Deprecated.Checks if a database exists in the remote server.- Returns:
- true if exists, otherwise false
- Throws:
IOException
-
existsDatabase
Deprecated.Checks if a database exists in the remote server.- Parameters:
iDatabaseName- The database namestorageType- Storage type between "plocal" or "memory".- Returns:
- true if exists, otherwise false
- Throws:
IOException
-
existsDatabase
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.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
Deprecated.Drops a database from a remote server instance.- Parameters:
iDatabaseName- The database namestorageType- Storage type between "plocal" or "memory".- Returns:
- The instance itself. Useful to execute method in chain
- Throws:
IOException
-
dropDatabase
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
Deprecated.Freezes the database by locking it in exclusive mode.- Parameters:
storageType- Storage type between "plocal" or "memory".- Returns:
- Throws:
IOException- See Also:
-
releaseDatabase
Deprecated.Releases a frozen database.- Parameters:
storageType- Storage type between "plocal" or "memory".- Returns:
- Throws:
IOException- See Also:
-
clusterStatus
Deprecated.Gets the cluster status.- Returns:
- the JSON containing the current cluster structure
-
getGlobalConfigurations
Deprecated.- Throws:
IOException
-
getGlobalConfiguration
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
Deprecated. -
isConnected
public boolean isConnected()Deprecated.
-