public class PerformanceService extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_CONTRACT_NAME |
static int |
NUMBER_OF_RETRY |
Constructor and Description |
---|
PerformanceService(IngestExternalClientFactory ingestClientFactory,
AdminExternalClientFactory adminClientFactory,
Path sipDirectory,
Path performanceReportDirectory) |
PerformanceService(Path sipDirectory,
Path performanceReportDirectory) |
Modifier and Type | Method and Description |
---|---|
boolean |
inProgress()
indicate if a report is in progress
|
void |
launchPerformanceTest(PerformanceModel model,
String fileName,
int tenantId) |
List<Path> |
listReportDirectory()
list all reports
|
List<Path> |
listSipDirectory()
list all the sip
|
InputStream |
readReport(String reportName)
return an InputStream for a reportName
|
boolean |
sipExist(String sipPath) |
public static final String DEFAULT_CONTRACT_NAME
public static final int NUMBER_OF_RETRY
public PerformanceService(Path sipDirectory, Path performanceReportDirectory)
sipDirectory
- base sip directoryperformanceReportDirectory
- base report directorypublic PerformanceService(IngestExternalClientFactory ingestClientFactory, AdminExternalClientFactory adminClientFactory, Path sipDirectory, Path performanceReportDirectory)
public boolean inProgress()
public void launchPerformanceTest(PerformanceModel model, String fileName, int tenantId) throws IOException
model
- fileName
- report nametenantId
- tenantIOException
public List<Path> listSipDirectory() throws IOException
IOException
public List<Path> listReportDirectory() throws IOException
IOException
public boolean sipExist(String sipPath)
public InputStream readReport(String reportName) throws IOException
reportName
- path of the reportIOException
Copyright © 2018 Vitam. All rights reserved.