public class OSyncDatabaseTask extends OAbstractSyncDatabaseTask
ORemoteTask.RESULT_STRATEGY
Modifier and Type | Field and Description |
---|---|
static int |
FACTORYID |
CHUNK_MAX_SIZE, DEPLOYDB, lastOperationTimestamp, random
lastLSN
ALL, ANY, FAST_NOLOCK, LOCK, nodeSource
Constructor and Description |
---|
OSyncDatabaseTask() |
OSyncDatabaseTask(OLogSequenceNumber lastLSN,
long lastOperationTimestamp) |
Modifier and Type | Method and Description |
---|---|
protected ODistributedDatabase |
checkIfCurrentDatabaseIsNotOlder(ODistributedServerManager iManager,
String databaseName,
ODatabaseDocumentInternal database) |
Object |
execute(ODistributedRequestId requestId,
OServer iServer,
ODistributedServerManager iManager,
ODatabaseDocumentInternal database) |
void |
fromStream(DataInput in,
ORemoteTaskFactory factory) |
int |
getFactoryId() |
String |
getName() |
void |
toStream(DataOutput out) |
databaseIsOld, getDistributedTimeout, getQuorumType, getResultStrategy, isNodeOnlineRequired, onMessage, readOptionalLSN, writeOptionalLSN
getFixTask, getLastLSN, getUndoTask
checkIsValid, getNodeSource, getPartitionKey, getSynchronousTimeout, getTotalTimeout, hasResponse, isIdempotent, isUsingDatabase, setNodeSource, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
finished, received
public static final int FACTORYID
public OSyncDatabaseTask()
public OSyncDatabaseTask(OLogSequenceNumber lastLSN, long lastOperationTimestamp)
public Object execute(ODistributedRequestId requestId, OServer iServer, ODistributedServerManager iManager, ODatabaseDocumentInternal database) throws Exception
execute
in interface ORemoteTask
execute
in class OAbstractRemoteTask
Exception
protected ODistributedDatabase checkIfCurrentDatabaseIsNotOlder(ODistributedServerManager iManager, String databaseName, ODatabaseDocumentInternal database)
public String getName()
getName
in interface ORemoteTask
getName
in class OAbstractRemoteTask
public void toStream(DataOutput out) throws IOException
toStream
in interface ORemoteTask
toStream
in class OAbstractRemoteTask
IOException
public void fromStream(DataInput in, ORemoteTaskFactory factory) throws IOException
fromStream
in interface ORemoteTask
fromStream
in class OAbstractRemoteTask
IOException
public int getFactoryId()
Copyright © 2009–2020 OrientDB. All rights reserved.