public class Benchmark extends Object
Constructor and Description |
---|
Benchmark() |
Benchmark(int maxDocuments,
int maxFolders,
int maxDepth) |
Benchmark(int maxDocuments,
int maxFolders,
int maxDepth,
InputStream is) |
Modifier and Type | Method and Description |
---|---|
int |
calculateDocuments()
Calculates the number of document created
|
int |
calculateFolders()
Calculates the number of folder created
|
void |
filesystemDocumentGenerate(File root)
Generate documents in the filesystem
|
int |
getMaxDepth() |
int |
getMaxDocuments() |
int |
getMaxFolders() |
int |
getTotalDocuments() |
int |
getTotalFolders() |
long |
getTotalSize() |
static void |
main(String[] args)
Main method for testing purposes
|
void |
okmApiHighPopulate(String token,
Folder root,
PrintWriter out,
PrintWriter res)
Run OpenKM text document insertions (API)
|
long |
runCalibration()
Run system calibration
|
public Benchmark() throws IOException
IOException
public Benchmark(int maxDocuments, int maxFolders, int maxDepth) throws IOException
IOException
public Benchmark(int maxDocuments, int maxFolders, int maxDepth, InputStream is) throws IOException
IOException
public static void main(String[] args)
public int getMaxDocuments()
public int getMaxFolders()
public int getMaxDepth()
public int getTotalFolders()
public int getTotalDocuments()
public long getTotalSize()
public int calculateFolders()
public int calculateDocuments()
public long runCalibration() throws InputMismatchException, IOException
IOException
InputMismatchException
public void okmApiHighPopulate(String token, Folder root, PrintWriter out, PrintWriter res) throws IOException, InputMismatchException, ItemExistsException, PathNotFoundException, UserQuotaExceededException, AccessDeniedException, UnsupportedMimeTypeException, FileSizeExceededException, VirusDetectedException, RepositoryException, DatabaseException, ExtensionException, AutomationException
public void filesystemDocumentGenerate(File root) throws IOException, InputMismatchException, ItemExistsException, PathNotFoundException, UserQuotaExceededException, AccessDeniedException, UnsupportedMimeTypeException, FileSizeExceededException, VirusDetectedException, RepositoryException, DatabaseException, ExtensionException, AutomationException
Copyright © 2017 Open Knowledge Management System S.L.. All rights reserved.