public class OrientDBDistributed extends OrientDBEmbedded implements OServerAware
OrientDBEmbedded.DatabaseFound, OrientDBEmbedded.InstanceFactory<T>
basePath, cachedPoolFactory, configurations, disk, doubleWriteLogMaxSegSize, maxWALSegmentSize, memory, orient, pools, sharedContexts, storages
Constructor and Description |
---|
OrientDBDistributed(String directoryPath,
OrientDBConfig config,
Orient instance) |
Modifier and Type | Method and Description |
---|---|
void |
coordinatedRequest(OClientConnection connection,
int requestType,
int clientTxId,
OChannelBinary channel) |
protected OSharedContext |
createSharedContext(OAbstractPaginatedStorage storage) |
void |
drop(String name,
String user,
String password)
Drop a database
|
OStorage |
fullSync(String dbName,
InputStream backupStream,
OrientDBConfig config) |
OHazelcastPlugin |
getPlugin() |
void |
init(OServer server) |
protected ODatabaseDocumentEmbedded |
newPooledSessionInstance(ODatabasePoolInternal pool,
OAbstractPaginatedStorage storage) |
protected ODatabaseDocumentEmbedded |
newSessionInstance(OAbstractPaginatedStorage storage) |
ODatabaseDocumentInternal |
poolOpen(String name,
String user,
String password,
ODatabasePoolInternal pool)
Internal api for request to open a database with a pool
|
void |
setPlugin(OHazelcastPlugin plugin) |
buildName, cachedPool, cachedPool, checkOpen, close, create, create, createCachedDatabasePoolFactory, execute, executeNoAuthorization, executeNoDb, exists, forceDatabaseClose, generateStorageId, getConfigurations, getDatabasePath, getOrCreateSharedContext, getOrInitStorage, getScriptManager, getStorage, getStorages, initAutoClose, initCustomStorage, internalClose, internalCreate, isEmbedded, isOpen, listDatabases, loadAllDatabases, networkRestore, open, open, openNoAuthenticate, openNoAuthorization, openPool, openPool, removePool, removeShutdownHook, restore, restore, schedule, scheduleOnce, solveConfig
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
distributed, embedded, extract, fromUrl, newOrientDB, remote
public OrientDBDistributed(String directoryPath, OrientDBConfig config, Orient instance)
public void init(OServer server)
init
in interface OServerAware
public OHazelcastPlugin getPlugin()
protected OSharedContext createSharedContext(OAbstractPaginatedStorage storage)
createSharedContext
in class OrientDBEmbedded
protected ODatabaseDocumentEmbedded newSessionInstance(OAbstractPaginatedStorage storage)
newSessionInstance
in class OrientDBEmbedded
protected ODatabaseDocumentEmbedded newPooledSessionInstance(ODatabasePoolInternal pool, OAbstractPaginatedStorage storage)
newPooledSessionInstance
in class OrientDBEmbedded
public void setPlugin(OHazelcastPlugin plugin)
public OStorage fullSync(String dbName, InputStream backupStream, OrientDBConfig config)
fullSync
in interface OrientDBInternal
public ODatabaseDocumentInternal poolOpen(String name, String user, String password, ODatabasePoolInternal pool)
OrientDBInternal
poolOpen
in interface OrientDBInternal
poolOpen
in class OrientDBEmbedded
public void drop(String name, String user, String password)
OrientDBInternal
drop
in interface OrientDBInternal
drop
in class OrientDBEmbedded
name
- 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 void coordinatedRequest(OClientConnection connection, int requestType, int clientTxId, OChannelBinary channel) throws IOException
coordinatedRequest
in interface OServerAware
IOException
Copyright © 2009–2020 OrientDB. All rights reserved.