Skip to content

Commit

Permalink
Implement activity "actions executed" information
Browse files Browse the repository at this point in the history
  • Loading branch information
mederly committed Jun 21, 2021
1 parent 265adf3 commit b9ce8fa
Show file tree
Hide file tree
Showing 51 changed files with 796 additions and 517 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ private String getStatistics() {
}
if (statistics.getActionsExecutedInformation() != null) {
sb.append("Actions executed:\n")
.append(ActionsExecutedInformation.format(statistics.getActionsExecutedInformation()))
.append(ActionsExecutedInformationUtil.format(statistics.getActionsExecutedInformation()))
.append("\n");
}
if (statistics.getEnvironmentalPerformanceInformation() != null) {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/*
* Copyright (C) 2010-2021 Evolveum and contributors
*
* This work is dual-licensed under the Apache License 2.0
* and European Union Public License. See LICENSE file for details.
*/

package com.evolveum.midpoint.schema.statistics;

import javax.xml.namespace.QName;

import com.evolveum.midpoint.prism.PrismObject;
import com.evolveum.midpoint.prism.delta.ChangeType;
import com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType;

/**
* Records information about actions on repository objects.
*
* TODO better description
*/
public interface ActionsExecutedCollector {

void recordActionExecuted(String objectName, String objectDisplayName, QName objectType, String objectOid, ChangeType changeType, String channel, Throwable exception);

<T extends ObjectType> void recordActionExecuted(PrismObject<T> object, Class<T> objectTypeClass, String defaultOid, ChangeType changeType, String channel, Throwable exception);

void stop();
}

This file was deleted.

0 comments on commit b9ce8fa

Please sign in to comment.