public class OStorageRemoteThread extends Object implements com.orientechnologies.orient.core.storage.OStorageProxy
| Constructor and Description |
|---|
OStorageRemoteThread(OStorageRemote iSharedStorage) |
OStorageRemoteThread(OStorageRemote iSharedStorage,
int iSessionId) |
| Modifier and Type | Method and Description |
|---|---|
int |
addCluster(String iClusterName,
boolean forceListBased,
Object... iArguments) |
int |
addCluster(String iClusterName,
int iRequestedId,
boolean forceListBased,
Object... iParameters) |
int |
addUser() |
void |
backup(OutputStream out,
Map<String,Object> options,
Callable<Object> callable,
com.orientechnologies.orient.core.command.OCommandOutputListener iListener,
int compressionLevel,
int bufferSize) |
void |
beginResponse(OChannelBinaryAsynchClient iNetwork) |
<V> V |
callInLock(Callable<V> iCallable,
boolean iExclusiveLock) |
com.orientechnologies.orient.core.storage.OPhysicalPosition[] |
ceilingPhysicalPositions(int clusterId,
com.orientechnologies.orient.core.storage.OPhysicalPosition physicalPosition) |
void |
checkForClusterPermissions(String iClusterName) |
boolean |
checkForRecordValidity(com.orientechnologies.orient.core.storage.OPhysicalPosition ppos) |
boolean |
cleanOutRecord(com.orientechnologies.orient.core.id.ORecordId recordId,
com.orientechnologies.orient.core.version.ORecordVersion recordVersion,
int iMode,
com.orientechnologies.orient.core.storage.ORecordCallback<Boolean> callback) |
void |
close() |
void |
close(boolean iForce,
boolean onDelete) |
Object |
command(com.orientechnologies.orient.core.command.OCommandRequestText iCommand) |
void |
commit(com.orientechnologies.orient.core.tx.OTransaction iTx,
Runnable callback) |
long |
count(int iClusterId) |
long |
count(int[] iClusterIds) |
long |
count(int[] iClusterIds,
boolean countTombstones) |
long |
count(int iClusterId,
boolean countTombstones) |
long |
countRecords() |
void |
create(Map<String,Object> iOptions) |
com.orientechnologies.orient.core.storage.OStorageOperationResult<com.orientechnologies.orient.core.storage.OPhysicalPosition> |
createRecord(com.orientechnologies.orient.core.id.ORecordId iRid,
byte[] iContent,
com.orientechnologies.orient.core.version.ORecordVersion iRecordVersion,
byte iRecordType,
int iMode,
com.orientechnologies.orient.core.storage.ORecordCallback<Long> iCallback) |
void |
delete() |
com.orientechnologies.orient.core.storage.OStorageOperationResult<Boolean> |
deleteRecord(com.orientechnologies.orient.core.id.ORecordId iRid,
com.orientechnologies.orient.core.version.ORecordVersion iVersion,
int iMode,
com.orientechnologies.orient.core.storage.ORecordCallback<Boolean> iCallback) |
boolean |
dropCluster(int iClusterId,
boolean iTruncate) |
boolean |
dropCluster(String iClusterName,
boolean iTruncate) |
boolean |
equals(Object iOther) |
boolean |
exists() |
boolean |
existsResource(String iName) |
com.orientechnologies.orient.core.storage.OPhysicalPosition[] |
floorPhysicalPositions(int clusterId,
com.orientechnologies.orient.core.storage.OPhysicalPosition physicalPosition) |
com.orientechnologies.orient.core.storage.OCluster |
getClusterById(int iId) |
com.orientechnologies.orient.core.storage.OCluster |
getClusterByName(String clusterName) |
com.orientechnologies.orient.core.record.impl.ODocument |
getClusterConfiguration() |
long[] |
getClusterDataRange(int iClusterId) |
int |
getClusterIdByName(String iClusterName) |
Collection<com.orientechnologies.orient.core.storage.OCluster> |
getClusterInstances() |
Set<String> |
getClusterNames() |
int |
getClusters() |
Class<? extends com.orientechnologies.orient.core.db.record.ridbag.sbtree.OSBTreeCollectionManager> |
getCollectionManagerClass() |
com.orientechnologies.orient.core.db.record.OCurrentStorageComponentsFactory |
getComponentsFactory() |
com.orientechnologies.orient.core.config.OStorageConfiguration |
getConfiguration() |
com.orientechnologies.orient.core.conflict.ORecordConflictStrategy |
getConflictStrategy() |
int |
getDefaultClusterId() |
long |
getLastOperationId() |
com.orientechnologies.common.concur.resource.OSharedResourceAdaptiveExternal |
getLock() |
String |
getName() |
static int |
getNextConnectionId() |
String |
getPhysicalClusterNameById(int iClusterId) |
com.orientechnologies.orient.core.storage.ORecordMetadata |
getRecordMetadata(com.orientechnologies.orient.core.id.ORID rid) |
ORemoteServerEventListener |
getRemoteServerEventListener() |
<T> T |
getResource(String iName,
Callable<T> iCallback) |
long |
getSize() |
com.orientechnologies.orient.core.storage.OStorage.STATUS |
getStatus() |
String |
getType() |
com.orientechnologies.orient.core.storage.OStorage |
getUnderlying() |
String |
getURL() |
String |
getUserName() |
int |
getUsers() |
long |
getVersion() |
protected void |
handleException(OChannelBinaryAsynchClient iNetwork,
String iMessage,
Exception iException) |
com.orientechnologies.orient.core.storage.OStorageOperationResult<Boolean> |
hideRecord(com.orientechnologies.orient.core.id.ORecordId recordId,
int mode,
com.orientechnologies.orient.core.storage.ORecordCallback<Boolean> callback) |
com.orientechnologies.orient.core.storage.OPhysicalPosition[] |
higherPhysicalPositions(int currentClusterId,
com.orientechnologies.orient.core.storage.OPhysicalPosition physicalPosition) |
boolean |
isAssigningClusterIds() |
boolean |
isClosed() |
boolean |
isDistributed() |
boolean |
isPermanentRequester() |
com.orientechnologies.orient.core.storage.OPhysicalPosition[] |
lowerPhysicalPositions(int currentClusterId,
com.orientechnologies.orient.core.storage.OPhysicalPosition physicalPosition) |
void |
open(String iUserName,
String iUserPassword,
Map<String,Object> iOptions) |
protected void |
popSession() |
protected void |
pushSession() |
com.orientechnologies.orient.core.storage.OStorageOperationResult<com.orientechnologies.orient.core.storage.ORawBuffer> |
readRecord(com.orientechnologies.orient.core.id.ORecordId iRid,
String iFetchPlan,
boolean iIgnoreCache,
com.orientechnologies.orient.core.storage.ORecordCallback<com.orientechnologies.orient.core.storage.ORawBuffer> iCallback) |
com.orientechnologies.orient.core.storage.OStorageOperationResult<com.orientechnologies.orient.core.storage.ORawBuffer> |
readRecordIfVersionIsNotLatest(com.orientechnologies.orient.core.id.ORecordId rid,
String fetchPlan,
boolean ignoreCache,
com.orientechnologies.orient.core.version.ORecordVersion recordVersion) |
void |
reload() |
void |
removeRemoteServerEventListener() |
<T> T |
removeResource(String iName) |
int |
removeUser() |
void |
restore(InputStream in,
Map<String,Object> options,
Callable<Object> callable,
com.orientechnologies.orient.core.command.OCommandOutputListener iListener) |
void |
rollback(com.orientechnologies.orient.core.tx.OTransaction iTx) |
void |
setConflictStrategy(com.orientechnologies.orient.core.conflict.ORecordConflictStrategy iResolver) |
void |
setDefaultClusterId(int defaultClusterId) |
void |
setRemoteServerEventListener(ORemoteServerEventListener iListener) |
void |
setSessionId(String iServerURL,
int iSessionId,
byte[] iToken) |
void |
synch() |
String |
toString() |
void |
updateClusterConfiguration(String iCurrentURL,
byte[] iContent) |
com.orientechnologies.orient.core.storage.OStorageOperationResult<com.orientechnologies.orient.core.version.ORecordVersion> |
updateRecord(com.orientechnologies.orient.core.id.ORecordId iRid,
boolean updateContent,
byte[] iContent,
com.orientechnologies.orient.core.version.ORecordVersion iVersion,
byte iRecordType,
int iMode,
com.orientechnologies.orient.core.storage.ORecordCallback<com.orientechnologies.orient.core.version.ORecordVersion> iCallback) |
public OStorageRemoteThread(OStorageRemote iSharedStorage)
public OStorageRemoteThread(OStorageRemote iSharedStorage, int iSessionId)
public static int getNextConnectionId()
public void open(String iUserName, String iUserPassword, Map<String,Object> iOptions)
open in interface com.orientechnologies.orient.core.storage.OStoragepublic boolean isDistributed()
isDistributed in interface com.orientechnologies.orient.core.storage.OStoragepublic Class<? extends com.orientechnologies.orient.core.db.record.ridbag.sbtree.OSBTreeCollectionManager> getCollectionManagerClass()
getCollectionManagerClass in interface com.orientechnologies.orient.core.storage.OStoragepublic void create(Map<String,Object> iOptions)
create in interface com.orientechnologies.orient.core.storage.OStoragepublic void close(boolean iForce,
boolean onDelete)
close in interface com.orientechnologies.orient.core.storage.OStoragepublic boolean dropCluster(String iClusterName, boolean iTruncate)
dropCluster in interface com.orientechnologies.orient.core.storage.OStoragepublic int getUsers()
getUsers in interface com.orientechnologies.orient.core.storage.OStoragepublic int addUser()
addUser in interface com.orientechnologies.orient.core.storage.OStoragepublic com.orientechnologies.common.concur.resource.OSharedResourceAdaptiveExternal getLock()
getLock in interface com.orientechnologies.orient.core.storage.OStoragepublic void setSessionId(String iServerURL, int iSessionId, byte[] iToken)
public void reload()
reload in interface com.orientechnologies.orient.core.storage.OStoragepublic boolean exists()
exists in interface com.orientechnologies.orient.core.storage.OStoragepublic int removeUser()
removeUser in interface com.orientechnologies.orient.core.storage.OStoragepublic void close()
close in interface com.orientechnologies.orient.core.storage.OStoragepublic void delete()
delete in interface com.orientechnologies.orient.core.storage.OStoragepublic com.orientechnologies.orient.core.storage.OStorage getUnderlying()
getUnderlying in interface com.orientechnologies.orient.core.storage.OStoragepublic Set<String> getClusterNames()
getClusterNames in interface com.orientechnologies.orient.core.storage.OStoragepublic void backup(OutputStream out, Map<String,Object> options, Callable<Object> callable, com.orientechnologies.orient.core.command.OCommandOutputListener iListener, int compressionLevel, int bufferSize) throws IOException
backup in interface com.orientechnologies.orient.core.util.OBackupableIOExceptionpublic void restore(InputStream in, Map<String,Object> options, Callable<Object> callable, com.orientechnologies.orient.core.command.OCommandOutputListener iListener) throws IOException
restore in interface com.orientechnologies.orient.core.util.OBackupableIOExceptionpublic com.orientechnologies.orient.core.storage.OStorageOperationResult<com.orientechnologies.orient.core.storage.OPhysicalPosition> createRecord(com.orientechnologies.orient.core.id.ORecordId iRid,
byte[] iContent,
com.orientechnologies.orient.core.version.ORecordVersion iRecordVersion,
byte iRecordType,
int iMode,
com.orientechnologies.orient.core.storage.ORecordCallback<Long> iCallback)
createRecord in interface com.orientechnologies.orient.core.storage.OStoragepublic com.orientechnologies.orient.core.storage.OStorageOperationResult<com.orientechnologies.orient.core.storage.ORawBuffer> readRecord(com.orientechnologies.orient.core.id.ORecordId iRid,
String iFetchPlan,
boolean iIgnoreCache,
com.orientechnologies.orient.core.storage.ORecordCallback<com.orientechnologies.orient.core.storage.ORawBuffer> iCallback)
readRecord in interface com.orientechnologies.orient.core.storage.OStoragepublic com.orientechnologies.orient.core.storage.OStorageOperationResult<com.orientechnologies.orient.core.storage.ORawBuffer> readRecordIfVersionIsNotLatest(com.orientechnologies.orient.core.id.ORecordId rid,
String fetchPlan,
boolean ignoreCache,
com.orientechnologies.orient.core.version.ORecordVersion recordVersion)
throws com.orientechnologies.orient.core.exception.ORecordNotFoundException
readRecordIfVersionIsNotLatest in interface com.orientechnologies.orient.core.storage.OStoragecom.orientechnologies.orient.core.exception.ORecordNotFoundExceptionpublic com.orientechnologies.orient.core.storage.OStorageOperationResult<com.orientechnologies.orient.core.version.ORecordVersion> updateRecord(com.orientechnologies.orient.core.id.ORecordId iRid,
boolean updateContent,
byte[] iContent,
com.orientechnologies.orient.core.version.ORecordVersion iVersion,
byte iRecordType,
int iMode,
com.orientechnologies.orient.core.storage.ORecordCallback<com.orientechnologies.orient.core.version.ORecordVersion> iCallback)
updateRecord in interface com.orientechnologies.orient.core.storage.OStoragepublic com.orientechnologies.orient.core.storage.OStorageOperationResult<Boolean> deleteRecord(com.orientechnologies.orient.core.id.ORecordId iRid, com.orientechnologies.orient.core.version.ORecordVersion iVersion, int iMode, com.orientechnologies.orient.core.storage.ORecordCallback<Boolean> iCallback)
deleteRecord in interface com.orientechnologies.orient.core.storage.OStoragepublic com.orientechnologies.orient.core.storage.OStorageOperationResult<Boolean> hideRecord(com.orientechnologies.orient.core.id.ORecordId recordId, int mode, com.orientechnologies.orient.core.storage.ORecordCallback<Boolean> callback)
hideRecord in interface com.orientechnologies.orient.core.storage.OStoragepublic com.orientechnologies.orient.core.storage.OCluster getClusterByName(String clusterName)
getClusterByName in interface com.orientechnologies.orient.core.storage.OStoragepublic com.orientechnologies.orient.core.conflict.ORecordConflictStrategy getConflictStrategy()
getConflictStrategy in interface com.orientechnologies.orient.core.storage.OStoragepublic void setConflictStrategy(com.orientechnologies.orient.core.conflict.ORecordConflictStrategy iResolver)
setConflictStrategy in interface com.orientechnologies.orient.core.storage.OStoragepublic com.orientechnologies.orient.core.storage.ORecordMetadata getRecordMetadata(com.orientechnologies.orient.core.id.ORID rid)
getRecordMetadata in interface com.orientechnologies.orient.core.storage.OStoragepublic boolean cleanOutRecord(com.orientechnologies.orient.core.id.ORecordId recordId,
com.orientechnologies.orient.core.version.ORecordVersion recordVersion,
int iMode,
com.orientechnologies.orient.core.storage.ORecordCallback<Boolean> callback)
cleanOutRecord in interface com.orientechnologies.orient.core.storage.OStoragepublic long count(int iClusterId)
count in interface com.orientechnologies.orient.core.storage.OStoragepublic long count(int iClusterId,
boolean countTombstones)
count in interface com.orientechnologies.orient.core.storage.OStoragepublic long count(int[] iClusterIds,
boolean countTombstones)
count in interface com.orientechnologies.orient.core.storage.OStoragepublic long[] getClusterDataRange(int iClusterId)
getClusterDataRange in interface com.orientechnologies.orient.core.storage.OStoragepublic com.orientechnologies.orient.core.storage.OPhysicalPosition[] higherPhysicalPositions(int currentClusterId,
com.orientechnologies.orient.core.storage.OPhysicalPosition physicalPosition)
higherPhysicalPositions in interface com.orientechnologies.orient.core.storage.OStoragepublic com.orientechnologies.orient.core.storage.OPhysicalPosition[] lowerPhysicalPositions(int currentClusterId,
com.orientechnologies.orient.core.storage.OPhysicalPosition physicalPosition)
lowerPhysicalPositions in interface com.orientechnologies.orient.core.storage.OStoragepublic com.orientechnologies.orient.core.storage.OPhysicalPosition[] ceilingPhysicalPositions(int clusterId,
com.orientechnologies.orient.core.storage.OPhysicalPosition physicalPosition)
ceilingPhysicalPositions in interface com.orientechnologies.orient.core.storage.OStoragepublic com.orientechnologies.orient.core.storage.OPhysicalPosition[] floorPhysicalPositions(int clusterId,
com.orientechnologies.orient.core.storage.OPhysicalPosition physicalPosition)
floorPhysicalPositions in interface com.orientechnologies.orient.core.storage.OStoragepublic long getSize()
getSize in interface com.orientechnologies.orient.core.storage.OStoragepublic long countRecords()
countRecords in interface com.orientechnologies.orient.core.storage.OStoragepublic long count(int[] iClusterIds)
count in interface com.orientechnologies.orient.core.storage.OStoragepublic Object command(com.orientechnologies.orient.core.command.OCommandRequestText iCommand)
command in interface com.orientechnologies.orient.core.storage.OStoragepublic void commit(com.orientechnologies.orient.core.tx.OTransaction iTx,
Runnable callback)
commit in interface com.orientechnologies.orient.core.storage.OStoragepublic void rollback(com.orientechnologies.orient.core.tx.OTransaction iTx)
rollback in interface com.orientechnologies.orient.core.storage.OStoragepublic int getClusterIdByName(String iClusterName)
getClusterIdByName in interface com.orientechnologies.orient.core.storage.OStoragepublic int getDefaultClusterId()
getDefaultClusterId in interface com.orientechnologies.orient.core.storage.OStoragepublic void setDefaultClusterId(int defaultClusterId)
setDefaultClusterId in interface com.orientechnologies.orient.core.storage.OStoragepublic int addCluster(String iClusterName, boolean forceListBased, Object... iArguments)
addCluster in interface com.orientechnologies.orient.core.storage.OStoragepublic int addCluster(String iClusterName, int iRequestedId, boolean forceListBased, Object... iParameters)
addCluster in interface com.orientechnologies.orient.core.storage.OStoragepublic boolean dropCluster(int iClusterId,
boolean iTruncate)
dropCluster in interface com.orientechnologies.orient.core.storage.OStoragepublic void synch()
synch in interface com.orientechnologies.orient.core.storage.OStoragepublic String getPhysicalClusterNameById(int iClusterId)
getPhysicalClusterNameById in interface com.orientechnologies.orient.core.storage.OStoragepublic int getClusters()
getClusters in interface com.orientechnologies.orient.core.storage.OStoragepublic Collection<com.orientechnologies.orient.core.storage.OCluster> getClusterInstances()
getClusterInstances in interface com.orientechnologies.orient.core.storage.OStoragepublic com.orientechnologies.orient.core.storage.OCluster getClusterById(int iId)
getClusterById in interface com.orientechnologies.orient.core.storage.OStoragepublic long getVersion()
getVersion in interface com.orientechnologies.orient.core.storage.OStoragepublic boolean isPermanentRequester()
public void updateClusterConfiguration(String iCurrentURL, byte[] iContent)
public com.orientechnologies.orient.core.config.OStorageConfiguration getConfiguration()
getConfiguration in interface com.orientechnologies.orient.core.storage.OStoragepublic boolean isClosed()
isClosed in interface com.orientechnologies.orient.core.storage.OStoragepublic boolean checkForRecordValidity(com.orientechnologies.orient.core.storage.OPhysicalPosition ppos)
checkForRecordValidity in interface com.orientechnologies.orient.core.storage.OStoragepublic boolean isAssigningClusterIds()
isAssigningClusterIds in interface com.orientechnologies.orient.core.storage.OStoragepublic String getName()
getName in interface com.orientechnologies.orient.core.storage.OStoragepublic String getURL()
getURL in interface com.orientechnologies.orient.core.storage.OStoragepublic void beginResponse(OChannelBinaryAsynchClient iNetwork) throws IOException
IOExceptionpublic com.orientechnologies.orient.core.db.record.OCurrentStorageComponentsFactory getComponentsFactory()
getComponentsFactory in interface com.orientechnologies.orient.core.storage.OStoragepublic long getLastOperationId()
getLastOperationId in interface com.orientechnologies.orient.core.storage.OStoragepublic boolean existsResource(String iName)
existsResource in interface com.orientechnologies.common.concur.resource.OSharedContainerpublic <T> T getResource(String iName, Callable<T> iCallback)
getResource in interface com.orientechnologies.common.concur.resource.OSharedContainerpublic <T> T removeResource(String iName)
removeResource in interface com.orientechnologies.common.concur.resource.OSharedContainerpublic com.orientechnologies.orient.core.record.impl.ODocument getClusterConfiguration()
public <V> V callInLock(Callable<V> iCallable, boolean iExclusiveLock)
callInLock in interface com.orientechnologies.orient.core.storage.OStoragepublic ORemoteServerEventListener getRemoteServerEventListener()
public void setRemoteServerEventListener(ORemoteServerEventListener iListener)
public void removeRemoteServerEventListener()
public void checkForClusterPermissions(String iClusterName)
checkForClusterPermissions in interface com.orientechnologies.orient.core.storage.OStoragepublic com.orientechnologies.orient.core.storage.OStorage.STATUS getStatus()
getStatus in interface com.orientechnologies.orient.core.storage.OStoragepublic String getUserName()
getUserName in interface com.orientechnologies.orient.core.storage.OStorageProxypublic String getType()
getType in interface com.orientechnologies.orient.core.storage.OStorageprotected void handleException(OChannelBinaryAsynchClient iNetwork, String iMessage, Exception iException)
protected void pushSession()
protected void popSession()
Copyright © 2009–2015 Orient Technologies. All rights reserved.