Package com.senzing.sdk
Interface SzDiagnostic
- All Known Implementing Classes:
SzCoreDiagnostic
public interface SzDiagnostic
Defines the Java interface to the Senzing diagnostic functions. The Senzing
diagnostic functions provide diagnostics and statistics pertaining to the
host system and the Senzing repository.
-
Method Summary
Modifier and TypeMethodDescriptioncheckDatastorePerformance
(int secondsToRun) Runs non-destruction DB performance tests and returns detail of the result as a JSONString
.Gathers detailed information on the data store and returns it as a JSONString
.getFeature
(long featureId) Experimental/internal method for obtaining diagnostic feature definition for the specified feature identifier.void
Purges all data in the configured repository.
-
Method Details
-
getDatastoreInfo
Gathers detailed information on the data store and returns it as a JSONString
.- Returns:
- A JSON
String
describing the datastore. - Throws:
SzException
- If a failure occurs.
-
checkDatastorePerformance
Runs non-destruction DB performance tests and returns detail of the result as a JSONString
.- Parameters:
secondsToRun
- How long to run the database performance test.- Returns:
- The JSON
String
describing the results of the performance test. - Throws:
SzException
- If a failure occurs.
-
purgeRepository
Purges all data in the configured repository.WARNING: There is no undoing from this. Make sure your repository is regularly backed up.
- Throws:
SzException
- If a failure occurs.
-
getFeature
Experimental/internal method for obtaining diagnostic feature definition for the specified feature identifier.- Parameters:
featureId
- The identifier for the feature.- Returns:
- The feature definition describing the feature for the specified feature ID.
- Throws:
SzException
- If a failure occurs.
-