public class OrientDBUtil extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
OrientDBUtil.Engine
Enumerates the supported OrientDB engines.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_BINARY_PROTOCOL_PORTRANGE
The default port range of the OrientDB server's binary protocol listener.
|
static String |
PROPERTY_NAME_ODB_DATABASE_NAME
Property name constant for specification of the OrientDB database name.
|
static String |
PROPERTY_NAME_ODB_DATABASE_PATH
Property name constant for specification of the OrientDB database path.
|
static String |
PROPERTY_NAME_ODB_EMBEDDED
Property name constant for specification of embedded OrientDB server.
|
static String |
PROPERTY_NAME_ODB_PASSWORD
Property name constant for specification of the password for the OrientDB server.
|
static String |
PROPERTY_NAME_ODB_SERVER_ENGINE
Property name constant for specification of the OrientDB server engine.
|
static String |
PROPERTY_NAME_ODB_SERVER_REMOTE_HOSTNAME
Property name constant for specification of the hostname of the remote OrientDB server.
|
static String |
PROPERTY_NAME_ODB_SERVER_REMOTE_PORT_RANGE
Property name constant for specification of the port range of the remote OrientDB server.
|
static String |
PROPERTY_NAME_ODB_USERNAME
Property name constant for specification of the username for the OrientDB server.
|
| Modifier | Constructor and Description |
|---|---|
protected |
OrientDBUtil()
Non-public default constrictor.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
buildDatabaseUrl(String databaseName,
OrientDBUtil.Engine engine,
String hostname,
String portRange,
String databasePath)
Builds a database url that can be used to connect to OrientDB.
|
static com.orientechnologies.orient.server.OServer |
startEmbeddedServer(String username,
String password,
String portRange)
Starts an embedded OrientDB server.
|
public static final String PROPERTY_NAME_ODB_EMBEDDED
public static final String PROPERTY_NAME_ODB_SERVER_ENGINE
public static final String PROPERTY_NAME_ODB_SERVER_REMOTE_HOSTNAME
public static final String PROPERTY_NAME_ODB_SERVER_REMOTE_PORT_RANGE
public static final String PROPERTY_NAME_ODB_DATABASE_PATH
public static final String PROPERTY_NAME_ODB_DATABASE_NAME
public static final String PROPERTY_NAME_ODB_USERNAME
public static final String PROPERTY_NAME_ODB_PASSWORD
public static final String DEFAULT_BINARY_PROTOCOL_PORTRANGE
public static String buildDatabaseUrl(String databaseName, OrientDBUtil.Engine engine, String hostname, String portRange, String databasePath)
databaseName - the name of the databaseengine - the engine to be usedhostname - the hostname of the OrientDB serverportRange - the port range of the OrientDB serverdatabasePath - the path of the databasepublic static com.orientechnologies.orient.server.OServer startEmbeddedServer(String username, String password, String portRange) throws Exception
username - the username to be used in configuring the OrientDB serverpassword - the password to be used in configuring the OrientDB serverportRange - the port range the OrientDB server will listen onException - when server is unable to be configured or activatedCopyright © 2016. All rights reserved.