All Methods Static Methods Instance Methods Concrete Methods
Modifier and Type |
Method and Description |
int |
addCluster(String iClusterName,
int iRequestedId)
Add a new cluster into the storage.
|
int |
addCluster(String iClusterName,
Object... iArguments)
Add a new cluster into the storage.
|
protected String |
addHost(String host)
Registers the remote server with port.
|
void |
addNewClusterToConfiguration(int clusterId,
String iClusterName) |
int |
addUser() |
<T extends OBinaryResponse> T |
asyncNetworkOperationNoRetry(OBinaryAsyncRequest<T> request,
int mode,
ORecordId recordId,
ORecordCallback<T> callback,
String errorMessage) |
<T extends OBinaryResponse> T |
asyncNetworkOperationRetry(OBinaryAsyncRequest<T> request,
int mode,
ORecordId recordId,
ORecordCallback<T> callback,
String errorMessage,
int retry) |
List<String> |
backup(OutputStream out,
Map<String,Object> options,
Callable<Object> callable,
OCommandOutputListener iListener,
int compressionLevel,
int bufferSize)
Executes a backup of the database.
|
<T> T |
baseNetworkOperation(OStorageRemoteOperation<T> operation,
String errorMessage,
int retry) |
OChannelBinaryAsynchClient |
beginRequest(OChannelBinaryAsynchClient network,
byte iCommand,
OStorageRemoteSession session)
Acquire a network channel from the pool.
|
void |
beginResponse(OChannelBinaryAsynchClient iNetwork,
OStorageRemoteSession session) |
void |
beginTransaction(ODatabaseDocumentRemote database,
OTransactionOptimistic transaction) |
OPhysicalPosition[] |
ceilingPhysicalPositions(int clusterId,
OPhysicalPosition physicalPosition) |
boolean |
cleanOutRecord(ORecordId recordId,
int recordVersion,
int iMode,
ORecordCallback<Boolean> callback) |
void |
clearProperties() |
void |
close(boolean iForce,
boolean onDelete) |
void |
closeQuery(ODatabaseDocumentRemote database,
String queryId) |
Object |
command(OCommandRequestText iCommand)
Execute the command remotely and get the results back.
|
ORemoteQueryResult |
command(ODatabaseDocumentRemote db,
String query,
Map args) |
ORemoteQueryResult |
command(ODatabaseDocumentRemote db,
String query,
Object[] args) |
List<ORecordOperation> |
commit(OTransactionInternal iTx) |
OStorageRemote |
copy(ODatabaseDocumentRemote source,
ODatabaseDocumentRemote dest) |
long |
count(int iClusterId) |
long |
count(int[] iClusterIds) |
long |
count(int[] iClusterIds,
boolean countTombstones) |
long |
count(int iClusterId,
boolean countTombstones) |
long |
countRecords()
Returns the total number of records.
|
void |
create(OContextConfiguration contextConfiguration) |
OBinaryPushRequest |
createPush(byte type) |
OStorageOperationResult<OPhysicalPosition> |
createRecord(ORecordId iRid,
byte[] iContent,
int iRecordVersion,
byte iRecordType,
int iMode,
ORecordCallback<Long> iCallback) |
void |
delete() |
OStorageOperationResult<Boolean> |
deleteRecord(ORecordId iRid,
int iVersion,
int iMode,
ORecordCallback<Boolean> iCallback) |
boolean |
dropCluster(int iClusterId)
Drops a cluster.
|
void |
endRequest(OChannelBinaryAsynchClient iNetwork)
Ends the request and unlock the write lock
|
void |
endResponse(OChannelBinaryAsynchClient iNetwork)
End response reached: release the channel in the pool to being reused
|
ORemoteQueryResult |
execute(ODatabaseDocumentRemote db,
String language,
String query,
Map args) |
ORemoteQueryResult |
execute(ODatabaseDocumentRemote db,
String language,
String query,
Object[] args) |
void |
executeLiveQueryPush(OLiveQueryPushRequest pushRequest) |
OBinaryPushResponse |
executeUpdateDistributedConfig(OPushDistributedConfigurationRequest request) |
OBinaryPushResponse |
executeUpdateFunction(OPushFunctionsRequest request) |
OBinaryPushResponse |
executeUpdateIndexManager(OPushIndexManagerRequest request) |
OBinaryPushResponse |
executeUpdateSchema(OPushSchemaRequest request) |
OBinaryPushResponse |
executeUpdateSequences(OPushSequencesRequest request) |
OBinaryPushResponse |
executeUpdateStorageConfig(OPushStorageConfigurationRequest payload) |
boolean |
exists() |
void |
fetchNextPage(ODatabaseDocumentRemote database,
ORemoteResultSet rs) |
void |
fetchTransaction(ODatabaseDocumentRemote remote) |
OPhysicalPosition[] |
floorPhysicalPositions(int clusterId,
OPhysicalPosition physicalPosition) |
void |
fullIncrementalBackup(OutputStream stream) |
OContextConfiguration |
getClientConfiguration() |
ODocument |
getClusterConfiguration() |
long[] |
getClusterDataRange(int iClusterId)
Returns a pair of long values telling the begin and end positions of data in the requested
cluster.
|
String |
getClusterEncryption(int clusterId) |
int |
getClusterIdByName(String iClusterName) |
Collection<OCluster> |
getClusterInstances() |
int |
getClusterMap() |
String |
getClusterName(int clusterId) |
String |
getClusterNameById(int clusterId) |
Set<String> |
getClusterNames() |
long |
getClusterNextPosition(int clusterId) |
String |
getClusterRecordConflictStrategy(int clusterId) |
long |
getClusterRecordsSizeById(int clusterId) |
long |
getClusterRecordsSizeByName(String clusterName) |
int |
getClusters() |
String |
getCreatedAtVersion()
Supported only in embedded storage.
|
protected String |
getCurrentServerURL() |
protected OStorageRemoteSession |
getCurrentSession() |
int |
getDefaultClusterId() |
protected int |
getDefaultPort() |
protected int |
getDefaultSSLPort() |
long |
getLastClusterPosition(int clusterId) |
OChannelBinaryAsynchClient |
getNetwork(String iCurrentURL) |
protected String |
getNextAvailableServerURL(boolean iIsConnectOperation,
OStorageRemoteSession session) |
String |
getNextConnectUrl(OStorageRemoteSession session) |
String |
getPhysicalClusterNameById(int iClusterId) |
ORecordConflictStrategy |
getRecordConflictStrategy() |
ORecordMetadata |
getRecordMetadata(ORID rid) |
OPaginatedCluster.RECORD_STATUS |
getRecordStatus(ORID rid) |
OSBTreeCollectionManager |
getSBtreeCollectionManager() |
protected String |
getServerURFromList(boolean iNextAvailable,
OStorageRemoteSession session) |
String |
getServerURL() |
List<String> |
getServerURLs() |
int |
getSessionId() |
long |
getSize()
Returns the size of the database.
|
String |
getType()
Returns the storage's type.
|
String |
getURL() |
String |
getUserName() |
int |
getUsers() |
long |
getVersion()
Returns current storage's version as serial.
|
OPhysicalPosition[] |
higherPhysicalPositions(int iClusterId,
OPhysicalPosition iClusterPosition) |
void |
importDatabase(String options,
InputStream inputStream,
String name,
OCommandOutputListener listener) |
String |
incrementalBackup(String backupDirectory,
OCallable<Void,Void> started) |
boolean |
isAssigningClusterIds() |
boolean |
isClosed() |
boolean |
isPermanentRequester() |
boolean |
isRemote() |
boolean |
isSystemCluster(int clusterId) |
OLiveQueryMonitor |
liveQuery(ODatabaseDocumentRemote database,
String query,
OLiveQueryClientListener listener,
Map<String,?> params) |
OLiveQueryMonitor |
liveQuery(ODatabaseDocumentRemote database,
String query,
OLiveQueryClientListener listener,
Object[] params) |
OLockRecordResponse |
lockRecord(OIdentifiable iRecord,
OStorage.LOCKING_STRATEGY lockingStrategy,
long timeout) |
OPhysicalPosition[] |
lowerPhysicalPositions(int iClusterId,
OPhysicalPosition physicalPosition) |
<T extends OBinaryResponse> T |
networkOperation(OBinaryRequest<T> request,
String errorMessage) |
<T extends OBinaryResponse> T |
networkOperationNoRetry(OBinaryRequest<T> request,
String errorMessage) |
<T extends OBinaryResponse> T |
networkOperationRetryTimeout(OBinaryRequest<T> request,
String errorMessage,
int retry,
int timeout) |
void |
onPushDisconnect(OChannelBinary network,
Exception e) |
void |
onPushReconnect(String host) |
void |
open(String iUserName,
String iUserPassword,
OContextConfiguration conf) |
protected void |
openRemoteDatabase() |
void |
openRemoteDatabase(OChannelBinaryAsynchClient network) |
protected void |
openRemoteDatabase(String currentURL) |
static HashMap<String,Object> |
paramsArrayToParamsMap(Object[] positionalParams) |
List<String> |
parseAddressesFromUrl(String url) |
protected void |
parseServerURLs()
Parse the URLs.
|
ORemoteQueryResult |
query(ODatabaseDocumentRemote db,
String query,
Map args) |
ORemoteQueryResult |
query(ODatabaseDocumentRemote db,
String query,
Object[] args) |
OStorageOperationResult<ORawBuffer> |
readRecord(ORecordId iRid,
String iFetchPlan,
boolean iIgnoreCache,
boolean prefetchRecords,
ORecordCallback<ORawBuffer> iCallback) |
OStorageOperationResult<ORawBuffer> |
readRecordIfVersionIsNotLatest(ORecordId rid,
String fetchPlan,
boolean ignoreCache,
int recordVersion) |
void |
reBeginTransaction(ODatabaseDocumentRemote database,
OTransactionOptimistic transaction) |
void |
registerLiveListener(int monitorId,
OLiveQueryClientListener listener) |
void |
reload() |
void |
removeClusterFromConfiguration(int iClusterId) |
void |
removeProperty(String property) |
void |
removeSessions(String url) |
int |
removeUser() |
protected String |
reopenRemoteDatabase() |
void |
restore(InputStream in,
Map<String,Object> options,
Callable<Object> callable,
OCommandOutputListener iListener)
Executes a restore of a database backup.
|
void |
restoreFromIncrementalBackup(String filePath) |
void |
restoreFullIncrementalBackup(InputStream stream) |
void |
returnSocket(OChannelBinary network) |
void |
rollback(OTransactionInternal iTx) |
void |
setCharset(String charset) |
boolean |
setClusterAttribute(int id,
OCluster.ATTRIBUTES attribute,
Object value) |
boolean |
setClusterAttribute(String clusterName,
OCluster.ATTRIBUTES attribute,
Object value) |
void |
setClusterSelection(String clusterSelection) |
void |
setConflictStrategy(ORecordConflictStrategy iResolver) |
void |
setDateFormat(String dateFormat) |
void |
setDateTimeFormat(String dateTimeFormat) |
void |
setDefaultClusterId(int defaultClusterId) |
void |
setIndexMgrRecordId(String indexMgrRecordId) |
void |
setLocaleCountry(String localeCountry) |
void |
setLocaleLanguage(String locale) |
void |
setMinimumClusters(int minimumClusters) |
void |
setProperty(String property,
String value) |
void |
setRecordSerializer(String recordSerializer,
int version) |
void |
setSchemaRecordId(String schemaRecordId) |
void |
setTimeZone(TimeZone timeZoneValue) |
void |
setValidation(boolean validation) |
void |
shutdown()
|
void |
stickToSession() |
boolean |
supportIncremental() |
void |
synch() |
void |
unlockRecord(OIdentifiable iRecord) |
void |
unstickToSession() |
void |
unsubscribeLive(ODatabaseDocumentRemote database,
int monitorId) |
void |
updateDistributedNodes(List<String> hosts) |
OStorageOperationResult<Integer> |
updateRecord(ORecordId iRid,
boolean updateContent,
byte[] iContent,
int iVersion,
byte iRecordType,
int iMode,
ORecordCallback<Integer> iCallback) |
void |
updateStorageConfiguration(OStorageConfiguration storageConfiguration) |
protected String |
useNewServerURL(String iUrl) |