public class OStorageRemoteThread extends Object implements com.orientechnologies.orient.core.storage.OStorage
| Constructor and Description |
|---|
OStorageRemoteThread(OStorageRemote iSharedStorage) |
OStorageRemoteThread(OStorageRemote iSharedStorage,
int iSessionId) |
| Modifier and Type | Method and Description |
|---|---|
int |
addCluster(String iClusterType,
String iClusterName,
String iLocation,
String iDataSegmentName,
Object... iArguments) |
int |
addDataSegment(String iDataSegmentName) |
int |
addDataSegment(String iSegmentName,
String iSegmentFileName) |
int |
addUser() |
void |
beginResponse(OChannelBinaryClient iNetwork) |
<V> V |
callInLock(Callable<V> iCallable,
boolean iExclusiveLock) |
boolean |
checkForRecordValidity(com.orientechnologies.orient.core.storage.OPhysicalPosition ppos) |
void |
close() |
void |
close(boolean iForce) |
void |
closeChannel(OChannelBinaryClient network) |
Object |
command(com.orientechnologies.orient.core.command.OCommandRequestText iCommand) |
void |
commit(com.orientechnologies.orient.core.tx.OTransaction iTx) |
long |
count(int iClusterId) |
long |
count(int[] iClusterIds) |
long |
countRecords() |
void |
create(Map<String,Object> iOptions) |
com.orientechnologies.orient.core.storage.OPhysicalPosition |
createRecord(int iDataSegmentId,
com.orientechnologies.orient.core.id.ORecordId iRid,
byte[] iContent,
int iRecordVersion,
byte iRecordType,
int iMode,
com.orientechnologies.orient.core.storage.ORecordCallback<Long> iCallback) |
void |
delete() |
boolean |
deleteRecord(com.orientechnologies.orient.core.id.ORecordId iRid,
int iVersion,
int iMode,
com.orientechnologies.orient.core.storage.ORecordCallback<Boolean> iCallback) |
boolean |
dropCluster(int iClusterId) |
boolean |
dropCluster(String iClusterName) |
boolean |
dropDataSegment(String iSegmentName) |
boolean |
exists() |
boolean |
existsResource(String iName) |
com.orientechnologies.orient.core.storage.OCluster |
getClusterById(int iId) |
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() |
String |
getClusterTypeByName(String iClusterName) |
com.orientechnologies.orient.core.config.OStorageConfiguration |
getConfiguration() |
com.orientechnologies.orient.core.storage.ODataSegment |
getDataSegmentById(int iDataSegmentId) |
int |
getDataSegmentIdByName(String iDataSegmentName) |
int |
getDefaultClusterId() |
com.orientechnologies.orient.core.cache.OLevel2RecordCache |
getLevel2Cache() |
com.orientechnologies.common.concur.resource.OSharedResourceAdaptive |
getLock() |
String |
getName() |
static int |
getNextConnectionId() |
String |
getPhysicalClusterNameById(int iClusterId) |
ORemoteServerEventListener |
getRemoteServerEventListener() |
<T> T |
getResource(String iName,
Callable<T> iCallback) |
long |
getSize() |
String |
getURL() |
int |
getUsers() |
long |
getVersion() |
protected void |
handleException(String iMessage,
Exception iException) |
boolean |
isClosed() |
boolean |
isPermanentRequester() |
void |
open(String iUserName,
String iUserPassword,
Map<String,Object> iOptions) |
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) |
void |
reload() |
void |
removeRemoteServerEventListener() |
<T> T |
removeResource(String iName) |
int |
removeUser() |
void |
rollback(com.orientechnologies.orient.core.tx.OTransaction iTx) |
void |
setRemoteServerEventListener(ORemoteServerEventListener iListener) |
void |
setSessionId(int iSessionId) |
void |
synch() |
String |
toString() |
void |
updateClusterConfiguration(com.orientechnologies.orient.core.record.impl.ODocument iContent) |
int |
updateRecord(com.orientechnologies.orient.core.id.ORecordId iRid,
byte[] iContent,
int iVersion,
byte iRecordType,
int iMode,
com.orientechnologies.orient.core.storage.ORecordCallback<Integer> iCallback) |
public OStorageRemoteThread(OStorageRemote iSharedStorage)
public OStorageRemoteThread(OStorageRemote iSharedStorage, int iSessionId)
public void open(String iUserName, String iUserPassword, Map<String,Object> iOptions)
open 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)
close in interface com.orientechnologies.orient.core.storage.OStoragepublic boolean dropCluster(String iClusterName)
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.OSharedResourceAdaptive getLock()
public void setSessionId(int iSessionId)
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 Set<String> getClusterNames()
getClusterNames in interface com.orientechnologies.orient.core.storage.OStoragepublic com.orientechnologies.orient.core.storage.OPhysicalPosition createRecord(int iDataSegmentId,
com.orientechnologies.orient.core.id.ORecordId iRid,
byte[] iContent,
int 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.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 int updateRecord(com.orientechnologies.orient.core.id.ORecordId iRid,
byte[] iContent,
int iVersion,
byte iRecordType,
int iMode,
com.orientechnologies.orient.core.storage.ORecordCallback<Integer> iCallback)
updateRecord in interface com.orientechnologies.orient.core.storage.OStoragepublic boolean deleteRecord(com.orientechnologies.orient.core.id.ORecordId iRid,
int iVersion,
int iMode,
com.orientechnologies.orient.core.storage.ORecordCallback<Boolean> iCallback)
deleteRecord in interface com.orientechnologies.orient.core.storage.OStoragepublic long count(int iClusterId)
count in interface com.orientechnologies.orient.core.storage.OStoragepublic long[] getClusterDataRange(int iClusterId)
getClusterDataRange 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)
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 String getClusterTypeByName(String iClusterName)
getClusterTypeByName in interface com.orientechnologies.orient.core.storage.OStoragepublic int getDefaultClusterId()
getDefaultClusterId in interface com.orientechnologies.orient.core.storage.OStoragepublic int addCluster(String iClusterType, String iClusterName, String iLocation, String iDataSegmentName, Object... iArguments)
addCluster in interface com.orientechnologies.orient.core.storage.OStoragepublic boolean dropCluster(int iClusterId)
dropCluster in interface com.orientechnologies.orient.core.storage.OStoragepublic com.orientechnologies.orient.core.storage.ODataSegment getDataSegmentById(int iDataSegmentId)
getDataSegmentById in interface com.orientechnologies.orient.core.storage.OStoragepublic int getDataSegmentIdByName(String iDataSegmentName)
getDataSegmentIdByName in interface com.orientechnologies.orient.core.storage.OStoragepublic int addDataSegment(String iDataSegmentName)
addDataSegment in interface com.orientechnologies.orient.core.storage.OStoragepublic int addDataSegment(String iSegmentName, String iSegmentFileName)
addDataSegment in interface com.orientechnologies.orient.core.storage.OStoragepublic boolean dropDataSegment(String iSegmentName)
dropDataSegment 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(com.orientechnologies.orient.core.record.impl.ODocument 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 String getName()
getName in interface com.orientechnologies.orient.core.storage.OStoragepublic String getURL()
getURL in interface com.orientechnologies.orient.core.storage.OStoragepublic void beginResponse(OChannelBinaryClient iNetwork) throws IOException
IOExceptionpublic com.orientechnologies.orient.core.cache.OLevel2RecordCache getLevel2Cache()
getLevel2Cache 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 void closeChannel(OChannelBinaryClient network)
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 static int getNextConnectionId()
Copyright © 2009-2012 Orient Technologies. All Rights Reserved.