@Deprecated public class OServerAdmin extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
clientType
Deprecated.
|
protected boolean |
collectStats
Deprecated.
|
protected OStorageRemoteSession |
session
Deprecated.
|
protected OStorageRemote |
storage
Deprecated.
|
Constructor and Description |
---|
OServerAdmin(OrientDBRemote remote,
String url)
Deprecated.
|
OServerAdmin(OStorageRemote iStorage)
Deprecated.
|
OServerAdmin(String iURL)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Deprecated.
Close the connection if open.
|
void |
close(boolean iForce)
Deprecated.
|
ODocument |
clusterStatus()
Deprecated.
Gets the cluster status.
|
OServerAdmin |
connect(String iUserName,
String iUserPassword)
Deprecated.
|
OServerAdmin |
createDatabase(String iStorageMode)
Deprecated.
|
OServerAdmin |
createDatabase(String iDatabaseType,
String iStorageMode)
Deprecated.
|
OServerAdmin |
createDatabase(String iDatabaseName,
String iDatabaseType,
String iStorageMode)
Deprecated.
|
OServerAdmin |
createDatabase(String iDatabaseName,
String iDatabaseType,
String iStorageMode,
String backupPath)
Deprecated.
Creates a database in a remote server.
|
OServerAdmin |
deleteDatabase(String storageType)
Deprecated.
|
OServerAdmin |
dropDatabase(String storageType)
Deprecated.
Drops a database from a remote server instance.
|
OServerAdmin |
dropDatabase(String iDatabaseName,
String storageType)
Deprecated.
Drops a database from a remote server instance.
|
boolean |
existsDatabase()
Deprecated.
Checks if a database exists in the remote server.
|
boolean |
existsDatabase(String storageType)
Deprecated.
Checks if a database exists in the remote server.
|
boolean |
existsDatabase(String iDatabaseName,
String storageType)
Deprecated.
Checks if a database exists in the remote server.
|
OServerAdmin |
freezeDatabase(String storageType)
Deprecated.
Freezes the database by locking it in exclusive mode.
|
String |
getGlobalConfiguration(OGlobalConfiguration config)
Deprecated.
|
Map<String,String> |
getGlobalConfigurations()
Deprecated.
|
ODocument |
getServerInfo()
Deprecated.
|
int |
getSessionId()
Deprecated.
|
String |
getStorageName()
Deprecated.
|
String |
getURL()
Deprecated.
|
boolean |
isConnected()
Deprecated.
|
Map<String,String> |
listDatabases()
Deprecated.
|
protected <T extends OBinaryResponse> |
networkAdminOperation(OBinaryRequest<T> request,
String errorMessage)
Deprecated.
|
protected <T> T |
networkAdminOperation(OStorageRemoteOperation<T> operation,
String errorMessage)
Deprecated.
|
OServerAdmin |
releaseDatabase(String storageType)
Deprecated.
Releases a frozen database.
|
OServerAdmin |
setGlobalConfiguration(OGlobalConfiguration config,
Object iValue)
Deprecated.
|
protected OStorageRemote storage
protected OStorageRemoteSession session
protected String clientType
protected boolean collectStats
@Deprecated public OServerAdmin(String iURL) throws IOException
iURL
- URL to connect. It supports only the "remote" storage type.IOException
public OServerAdmin(OrientDBRemote remote, String url) throws IOException
IOException
@Deprecated public OServerAdmin(OStorageRemote iStorage)
iStorage
- @Deprecated public OServerAdmin connect(String iUserName, String iUserPassword) throws IOException
iUserName
- Server's user nameiUserPassword
- Server's password for the user name usedIOException
@Deprecated public Map<String,String> listDatabases() throws IOException
IOException
@Deprecated public ODocument getServerInfo() throws IOException
IOException
public int getSessionId()
@Deprecated public OServerAdmin createDatabase(String iStorageMode) throws IOException
createDatabase(String, String)
instead.IOException
@Deprecated public OServerAdmin createDatabase(String iDatabaseType, String iStorageMode) throws IOException
iDatabaseType
- 'document' or 'graph'iStorageMode
- local or memoryIOException
public String getStorageName()
public OServerAdmin createDatabase(String iDatabaseName, String iDatabaseType, String iStorageMode) throws IOException
IOException
public OServerAdmin createDatabase(String iDatabaseName, String iDatabaseType, String iStorageMode, String backupPath) throws IOException
iDatabaseName
- The database nameiDatabaseType
- 'document' or 'graph'iStorageMode
- local or memorybackupPath
- path to incremental backup which will be used to create database (optional)IOException
public boolean existsDatabase() throws IOException
IOException
public boolean existsDatabase(String iDatabaseName, String storageType) throws IOException
iDatabaseName
- The database namestorageType
- Storage type between "plocal" or "memory".IOException
public boolean existsDatabase(String storageType) throws IOException
storageType
- Storage type between "plocal" or "memory".IOException
@Deprecated public OServerAdmin deleteDatabase(String storageType) throws IOException
storageType
- Storage type between "plocal" or "memory".IOException
dropDatabase(String)
public OServerAdmin dropDatabase(String iDatabaseName, String storageType) throws IOException
iDatabaseName
- The database namestorageType
- Storage type between "plocal" or "memory".IOException
public OServerAdmin dropDatabase(String storageType) throws IOException
storageType
- Storage type between "plocal" or "memory".IOException
public OServerAdmin freezeDatabase(String storageType) throws IOException
storageType
- Storage type between "plocal" or "memory".IOException
releaseDatabase(String)
public OServerAdmin releaseDatabase(String storageType) throws IOException
storageType
- Storage type between "plocal" or "memory".IOException
freezeDatabase(String)
public ODocument clusterStatus()
public Map<String,String> getGlobalConfigurations() throws IOException
IOException
public String getGlobalConfiguration(OGlobalConfiguration config) throws IOException
IOException
public OServerAdmin setGlobalConfiguration(OGlobalConfiguration config, Object iValue) throws IOException
IOException
public void close()
public void close(boolean iForce)
public String getURL()
public boolean isConnected()
protected <T extends OBinaryResponse> T networkAdminOperation(OBinaryRequest<T> request, String errorMessage)
protected <T> T networkAdminOperation(OStorageRemoteOperation<T> operation, String errorMessage)
Copyright © 2009–2020 OrientDB. All rights reserved.