Package com.evolveum.midpoint.model.api
Interface ModelDiagnosticService
-
public interface ModelDiagnosticService
A service provided by the IDM Model focused on system diagnostic. It allows to retrieve diagnostic data that are not exactly part of system configuration (such as repository configuration). It can also be used to initiate self-tests and similar diagnostic routines. UNSTABLE: This is likely to change PRIVATE: This interface is not supposed to be used outside of midPoint- Author:
- Radovan Semancik
-
-
Field Summary
Fields Modifier and Type Field Description static String
CLASS_NAME_WITH_DOT
static String
EVALUATE_MAPPING
static String
EXECUTE_REPOSITORY_QUERY
static String
GET_LOG_FILE_CONTENT
static String
GET_LOG_FILE_SIZE
static String
GET_MEMORY_INFORMATION
static String
PROVISIONING_SELF_TEST
static String
REPOSITORY_SELF_TEST
static String
REPOSITORY_TEST_ORG_CLOSURE_CONSISTENCY
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MappingEvaluationResponseType
evaluateMapping(MappingEvaluationRequestType request, com.evolveum.midpoint.task.api.Task task, OperationResult parentResult)
Execute arbitrary mapping.RepositoryQueryDiagResponse
executeRepositoryQuery(RepositoryQueryDiagRequest request, com.evolveum.midpoint.task.api.Task task, OperationResult parentResult)
Execute arbitrary implementation-specific query.String
exportDataModel(ResourceType resource, DataModelVisualizer.Target target, com.evolveum.midpoint.task.api.Task task, OperationResult parentResult)
String
exportDataModel(Collection<String> resourceOids, DataModelVisualizer.Target target, com.evolveum.midpoint.task.api.Task task, OperationResult parentResult)
Exports data model EXPERIMENTAL.LogFileContentType
getLogFileContent(Long fromPosition, Long maxSize, com.evolveum.midpoint.task.api.Task task, OperationResult parentResult)
Returns the contents of the log file.long
getLogFileSize(com.evolveum.midpoint.task.api.Task task, OperationResult parentResult)
String
getMemoryInformation(com.evolveum.midpoint.task.api.Task task, OperationResult parentResult)
ProvisioningDiag
getProvisioningDiag(com.evolveum.midpoint.task.api.Task task, OperationResult parentResult)
Provide provisioning run-time configuration and diagnostic information.RepositoryDiag
getRepositoryDiag(com.evolveum.midpoint.task.api.Task task, OperationResult parentResult)
Provide repository run-time configuration and diagnostic information.OperationResult
provisioningSelfTest(com.evolveum.midpoint.task.api.Task task)
Runs a short, non-destructive internal provisioning test.OperationResult
repositorySelfTest(com.evolveum.midpoint.task.api.Task task)
Runs a short, non-destructive repository self test.void
repositoryTestOrgClosureConsistency(com.evolveum.midpoint.task.api.Task task, boolean repairIfNecessary, OperationResult result)
Checks a org closure table for consistency, repairing any problems found.
-
-
-
Field Detail
-
CLASS_NAME_WITH_DOT
static final String CLASS_NAME_WITH_DOT
-
REPOSITORY_SELF_TEST
static final String REPOSITORY_SELF_TEST
-
REPOSITORY_TEST_ORG_CLOSURE_CONSISTENCY
static final String REPOSITORY_TEST_ORG_CLOSURE_CONSISTENCY
-
EXECUTE_REPOSITORY_QUERY
static final String EXECUTE_REPOSITORY_QUERY
-
EVALUATE_MAPPING
static final String EVALUATE_MAPPING
-
PROVISIONING_SELF_TEST
static final String PROVISIONING_SELF_TEST
-
GET_LOG_FILE_CONTENT
static final String GET_LOG_FILE_CONTENT
-
GET_LOG_FILE_SIZE
static final String GET_LOG_FILE_SIZE
-
GET_MEMORY_INFORMATION
static final String GET_MEMORY_INFORMATION
-
-
Method Detail
-
getRepositoryDiag
RepositoryDiag getRepositoryDiag(com.evolveum.midpoint.task.api.Task task, OperationResult parentResult)
Provide repository run-time configuration and diagnostic information.
-
repositorySelfTest
OperationResult repositorySelfTest(com.evolveum.midpoint.task.api.Task task)
Runs a short, non-destructive repository self test. This methods should never throw a (checked) exception. All the results should be in the returned result structure (including fatal errors).
-
repositoryTestOrgClosureConsistency
void repositoryTestOrgClosureConsistency(com.evolveum.midpoint.task.api.Task task, boolean repairIfNecessary, OperationResult result) throws SchemaException, SecurityViolationException, ObjectNotFoundException, ExpressionEvaluationException, ConfigurationException, CommunicationException
Checks a org closure table for consistency, repairing any problems found. This methods should never throw a (checked) exception. All the results should be in the returned result structure (including fatal errors). The current implementation expects closure to be of reasonable size - so it could be fetched into main memory as well as recomputed online (perhaps up to ~250K entries). In future, this method will be reimplemented. BEWARE, this method locks out the M_ORG_CLOSURE table, so org-related operations would wait until it completes. TODO this method is SQL service specific; it should be generalized/fixed somehow.
-
provisioningSelfTest
OperationResult provisioningSelfTest(com.evolveum.midpoint.task.api.Task task)
Runs a short, non-destructive internal provisioning test. It tests provisioning framework and general setup. Use ModelService.testResource for testing individual resource configurations.
-
getProvisioningDiag
ProvisioningDiag getProvisioningDiag(com.evolveum.midpoint.task.api.Task task, OperationResult parentResult)
Provide provisioning run-time configuration and diagnostic information.
-
executeRepositoryQuery
RepositoryQueryDiagResponse executeRepositoryQuery(RepositoryQueryDiagRequest request, com.evolveum.midpoint.task.api.Task task, OperationResult parentResult) throws SchemaException, SecurityViolationException, ObjectNotFoundException, ExpressionEvaluationException, ConfigurationException, CommunicationException
Execute arbitrary implementation-specific query. In current implementation this means hibernate query. EXPERIMENTAL.
-
evaluateMapping
MappingEvaluationResponseType evaluateMapping(MappingEvaluationRequestType request, com.evolveum.midpoint.task.api.Task task, OperationResult parentResult) throws SchemaException, SecurityViolationException, ExpressionEvaluationException, ObjectNotFoundException, CommunicationException, ConfigurationException
Execute arbitrary mapping. EXPERIMENTAL
-
exportDataModel
String exportDataModel(Collection<String> resourceOids, DataModelVisualizer.Target target, com.evolveum.midpoint.task.api.Task task, OperationResult parentResult) throws SchemaException, ConfigurationException, ObjectNotFoundException, CommunicationException, SecurityViolationException, ExpressionEvaluationException
Exports data model EXPERIMENTAL. (TODO find a better place)
-
exportDataModel
String exportDataModel(ResourceType resource, DataModelVisualizer.Target target, com.evolveum.midpoint.task.api.Task task, OperationResult parentResult) throws SchemaException, ConfigurationException, ObjectNotFoundException, CommunicationException, SecurityViolationException, ExpressionEvaluationException
-
getLogFileContent
LogFileContentType getLogFileContent(Long fromPosition, Long maxSize, com.evolveum.midpoint.task.api.Task task, OperationResult parentResult) throws SecurityViolationException, IOException, SchemaException, ObjectNotFoundException, ExpressionEvaluationException, CommunicationException, ConfigurationException
Returns the contents of the log file.- Parameters:
fromPosition
- From absolute log file position (if non-negative); or counted from the end (if negative).maxSize
- Max number of bytes to return.task
-parentResult
-- Throws:
SecurityViolationException
IOException
SchemaException
ObjectNotFoundException
ExpressionEvaluationException
CommunicationException
ConfigurationException
-
getLogFileSize
long getLogFileSize(com.evolveum.midpoint.task.api.Task task, OperationResult parentResult) throws SchemaException, SecurityViolationException, ObjectNotFoundException, ExpressionEvaluationException, ConfigurationException, CommunicationException
-
getMemoryInformation
String getMemoryInformation(com.evolveum.midpoint.task.api.Task task, OperationResult parentResult) throws CommunicationException, ObjectNotFoundException, SchemaException, SecurityViolationException, ConfigurationException, ExpressionEvaluationException, IOException
-
-