public class OCRUDWorkload extends OBaseDocumentWorkload implements OCheckWorkload
OBaseDocumentWorkload.OWorkLoadContext
OBaseWorkload.OBaseWorkLoadContext, OBaseWorkload.OWorkLoadResult
Modifier and Type | Field and Description |
---|---|
static String |
CLASS_NAME |
static String |
INDEX_NAME |
connectionStrategy, errors, MAX_ERRORS
Constructor and Description |
---|
OCRUDWorkload() |
Modifier and Type | Method and Description |
---|---|
void |
check(ODatabaseIdentifier databaseIdentifier) |
ODocument |
createOperation(long n) |
protected void |
createSchema(ODatabaseIdentifier databaseIdentifier) |
void |
deleteOperation(ODatabase database,
OIdentifiable rec) |
void |
execute(OStressTesterSettings settings,
ODatabaseIdentifier databaseIdentifier) |
int |
getCreates() |
int |
getDeletes() |
String |
getFinalResult() |
String |
getFinalResultAsJson() |
String |
getName() |
String |
getPartialResult() |
int |
getReads() |
int |
getScans() |
int |
getUpdates() |
void |
parseParameters(String args) |
void |
readOperation(ODatabase database,
long n) |
void |
scanOperation(ODatabase database) |
void |
updateOperation(ODatabase database,
OIdentifiable rec) |
beginTransaction, commitTransaction, getContext, getDocumentDatabase
executeOperation, getErrors, getPercentile, manageNeedRetryException
public static final String CLASS_NAME
public static final String INDEX_NAME
public void parseParameters(String args)
parseParameters
in interface OWorkload
public void execute(OStressTesterSettings settings, ODatabaseIdentifier databaseIdentifier)
protected void createSchema(ODatabaseIdentifier databaseIdentifier)
public String getPartialResult()
getPartialResult
in interface OWorkload
public String getFinalResult()
getFinalResult
in interface OWorkload
public String getFinalResultAsJson()
getFinalResultAsJson
in interface OWorkload
public ODocument createOperation(long n)
public void readOperation(ODatabase database, long n)
public void scanOperation(ODatabase database)
public void updateOperation(ODatabase database, OIdentifiable rec)
public void deleteOperation(ODatabase database, OIdentifiable rec)
public int getCreates()
public int getReads()
public int getScans()
public int getUpdates()
public int getDeletes()
public void check(ODatabaseIdentifier databaseIdentifier)
check
in interface OCheckWorkload
Copyright © 2009–2020 OrientDB. All rights reserved.