Package com.senzing.sdk.core
Class SzCoreDiagnostic
java.lang.Object
com.senzing.sdk.core.SzCoreDiagnostic
- All Implemented Interfaces:
SzDiagnostic
The package-protected implementation of
SzDiagnostic
that works
with the SzCoreEnvironment
class.-
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.protected boolean
Checks if this instance has been destroyed by the associatedSzCoreEnvironment
.void
Purges all data in the configured repository.
-
Method Details
-
isDestroyed
protected boolean isDestroyed()Checks if this instance has been destroyed by the associatedSzCoreEnvironment
.- Returns:
true
if this instance has been destroyed, otherwisefalse
.
-
getDatastoreInfo
Gathers detailed information on the data store and returns it as a JSONString
.Implemented to call the underlying native API.
- Specified by:
getDatastoreInfo
in interfaceSzDiagnostic
- 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
.Implemented to call the underlying native API.
- Specified by:
checkDatastorePerformance
in interfaceSzDiagnostic
- 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.
-
getFeature
Experimental/internal method for obtaining diagnostic feature definition for the specified feature identifier.Implemented to call the underlying native API.
- Specified by:
getFeature
in interfaceSzDiagnostic
- 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.
-
purgeRepository
Purges all data in the configured repository.WARNING: There is no undoing from this. Make sure your repository is regularly backed up.
Implemented to call the underlying native API.
- Specified by:
purgeRepository
in interfaceSzDiagnostic
- Throws:
SzException
- If a failure occurs.
-