
public class OrientDBRemote extends Object implements OrientDBInternal
| Modifier and Type | Field and Description |
|---|---|
protected ORemoteConnectionManager |
connectionManager |
| Constructor and Description |
|---|
OrientDBRemote(String[] hosts,
OrientDBConfig configurations,
Orient orient) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the factory with all related databases and pools.
|
void |
closeStorage(OStorageRemote remote) |
void |
create(String name,
String user,
String password,
ODatabaseType databaseType)
Create a new database
|
void |
create(String name,
String user,
String password,
ODatabaseType databaseType,
OrientDBConfig config)
Create a new database
|
void |
drop(String name,
String user,
String password)
Drop a database
|
boolean |
exists(String name,
String user,
String password)
Check if a database exists
|
void |
forceDatabaseClose(String databaseName) |
ODocument |
getClusterStatus(String username,
String password) |
ORemoteConnectionManager |
getConnectionManager() |
OEmbeddedDatabaseInstanceFactory |
getFactory() |
String |
getGlobalConfiguration(String username,
String password,
OGlobalConfiguration config) |
Map<String,String> |
getGlobalConfigurations(String username,
String password) |
ODocument |
getServerInfo(String username,
String password) |
Collection<OStorage> |
getStorages() |
void |
initCustomStorage(String name,
String baseUrl,
String userName,
String userPassword) |
void |
internalClose()
Should be called only by shutdown listeners
|
boolean |
isEmbedded() |
boolean |
isOpen()
Check if the current instance is open
|
Set<String> |
listDatabases(String user,
String password)
List of database exiting in the current environment
|
void |
loadAllDatabases() |
ODatabaseDocumentInternal |
open(String name,
String user,
String password)
Open a database specified by name using the username and password if needed
|
ODatabaseDocumentInternal |
open(String name,
String user,
String password,
OrientDBConfig config)
Open a database specified by name using the username and password if needed, with specific configuration
|
ODatabaseDocumentInternal |
openNoAuthenticate(String iDbUrl,
String user) |
ODatabaseDocumentInternal |
openNoAuthorization(String name) |
ODatabasePoolInternal |
openPool(String name,
String user,
String password)
Open a pool of databases, similar to open but with multiple instances.
|
ODatabasePoolInternal |
openPool(String name,
String user,
String password,
OrientDBConfig config)
Open a pool of databases, similar to open but with multiple instances.
|
ODatabaseDocumentRemotePooled |
poolOpen(String name,
String user,
String password,
ODatabasePoolInternal pool)
Internal api for request to open a database with a pool
|
void |
removePool(ODatabasePoolInternal pool)
Internal API for pool close
|
void |
removeShutdownHook() |
void |
replaceFactory(OEmbeddedDatabaseInstanceFactory instanceFactory) |
void |
restore(String name,
InputStream in,
Map<String,Object> options,
Callable<Object> callable,
OCommandOutputListener iListener) |
void |
restore(String name,
String user,
String password,
ODatabaseType type,
String path,
OrientDBConfig config) |
void |
setGlobalConfiguration(String username,
String password,
OGlobalConfiguration config,
String iConfigValue) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdistributed, embedded, extract, fromUrl, fullSync, newOrientDB, remoteprotected volatile ORemoteConnectionManager connectionManager
public OrientDBRemote(String[] hosts, OrientDBConfig configurations, Orient orient)
public ODatabaseDocumentInternal open(String name, String user, String password)
OrientDBInternalopen in interface OrientDBInternalname - of the database to openuser - the username allowed to open the databasepassword - related to the specified usernamepublic ODatabaseDocumentInternal open(String name, String user, String password, OrientDBConfig config)
OrientDBInternalopen in interface OrientDBInternalname - of the database to openuser - the username allowed to open the databasepassword - related to the specified usernameconfig - database specific configuration that override the factory global settings where needed.public void create(String name, String user, String password, ODatabaseType databaseType)
OrientDBInternalcreate in interface OrientDBInternalname - database nameuser - the username of a user allowed to create a database, in case of remote is a server user for embedded it can be
left emptypassword - the password relative to the userdatabaseType - can be plocal or memorypublic void create(String name, String user, String password, ODatabaseType databaseType, OrientDBConfig config)
OrientDBInternalcreate in interface OrientDBInternalname - database nameuser - the username of a user allowed to create a database, in case of remote is a server user for embedded it can be
left emptypassword - the password relative to the userdatabaseType - can be plocal or memoryconfig - database specific configuration that override the factory global settings where needed.public ODatabaseDocumentRemotePooled poolOpen(String name, String user, String password, ODatabasePoolInternal pool)
OrientDBInternalpoolOpen in interface OrientDBInternalpublic void closeStorage(OStorageRemote remote)
public String getGlobalConfiguration(String username, String password, OGlobalConfiguration config)
public void setGlobalConfiguration(String username, String password, OGlobalConfiguration config, String iConfigValue)
public Map<String,String> getGlobalConfigurations(String username, String password)
public ORemoteConnectionManager getConnectionManager()
public boolean exists(String name, String user, String password)
OrientDBInternalexists in interface OrientDBInternalname - database name to checkuser - the username of a user allowed to check the database existence, in case of remote is a server user for embedded
it can be left empty.password - the password relative to the userpublic void drop(String name, String user, String password)
OrientDBInternaldrop in interface OrientDBInternalname - database nameuser - the username of a user allowed to drop a database, in case of remote is a server user for embedded it can be
left emptypassword - the password relative to the userpublic Set<String> listDatabases(String user, String password)
OrientDBInternallistDatabases in interface OrientDBInternaluser - the username of a user allowed to list databases, in case of remote is a server user for embedded it can be
left emptypassword - the password relative to the userpublic void restore(String name, String user, String password, ODatabaseType type, String path, OrientDBConfig config)
restore in interface OrientDBInternalpublic ODatabasePoolInternal openPool(String name, String user, String password)
OrientDBInternalopenPool in interface OrientDBInternalname - database nameuser - the username allowed to open the databasepassword - the password relative to the userpublic ODatabasePoolInternal openPool(String name, String user, String password, OrientDBConfig config)
OrientDBInternalopenPool in interface OrientDBInternalname - database nameuser - the username allowed to open the databasepassword - the password relative to the userconfig - database specific configuration that override the factory global settings where needed.public void removePool(ODatabasePoolInternal pool)
OrientDBInternalremovePool in interface OrientDBInternalpublic void close()
OrientDBInternalclose in interface OrientDBInternalclose in interface AutoCloseablepublic void internalClose()
OrientDBInternalinternalClose in interface OrientDBInternalpublic boolean isOpen()
OrientDBInternalisOpen in interface OrientDBInternalpublic boolean isEmbedded()
isEmbedded in interface OrientDBInternalpublic void removeShutdownHook()
removeShutdownHook in interface OrientDBInternalpublic void loadAllDatabases()
loadAllDatabases in interface OrientDBInternalpublic ODatabaseDocumentInternal openNoAuthenticate(String iDbUrl, String user)
openNoAuthenticate in interface OrientDBInternalpublic void initCustomStorage(String name, String baseUrl, String userName, String userPassword)
initCustomStorage in interface OrientDBInternalpublic Collection<OStorage> getStorages()
getStorages in interface OrientDBInternalpublic void replaceFactory(OEmbeddedDatabaseInstanceFactory instanceFactory)
replaceFactory in interface OrientDBInternalpublic void forceDatabaseClose(String databaseName)
forceDatabaseClose in interface OrientDBInternalpublic OEmbeddedDatabaseInstanceFactory getFactory()
getFactory in interface OrientDBInternalpublic void restore(String name, InputStream in, Map<String,Object> options, Callable<Object> callable, OCommandOutputListener iListener)
restore in interface OrientDBInternalpublic ODatabaseDocumentInternal openNoAuthorization(String name)
openNoAuthorization in interface OrientDBInternalCopyright © 2009–2025 OrientDB. All rights reserved.