Skip to content

Commit

Permalink
Downgraded some subresults from major to minor to conserve space in t…
Browse files Browse the repository at this point in the history
…asks.
  • Loading branch information
mederly committed Jun 29, 2017
1 parent c291896 commit a929550
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Expand Up @@ -83,7 +83,7 @@ public String getName() {
@Override
public void notifySuccess(ResourceOperationDescription operationDescription, Task task, OperationResult parentResult) {
if (notificationsEnabled()) {
notifyAny(OperationStatus.SUCCESS, operationDescription, task, parentResult.createSubresult(DOT_CLASS + "notifySuccess"));
notifyAny(OperationStatus.SUCCESS, operationDescription, task, parentResult.createMinorSubresult(DOT_CLASS + "notifySuccess"));
}
}

Expand All @@ -99,14 +99,14 @@ private boolean notificationsEnabled() {
@Override
public void notifyInProgress(ResourceOperationDescription operationDescription, Task task, OperationResult parentResult) {
if (notificationsEnabled()) {
notifyAny(OperationStatus.IN_PROGRESS, operationDescription, task, parentResult.createSubresult(DOT_CLASS + "notifyInProgress"));
notifyAny(OperationStatus.IN_PROGRESS, operationDescription, task, parentResult.createMinorSubresult(DOT_CLASS + "notifyInProgress"));
}
}

@Override
public void notifyFailure(ResourceOperationDescription operationDescription, Task task, OperationResult parentResult) {
if (notificationsEnabled()) {
notifyAny(OperationStatus.FAILURE, operationDescription, task, parentResult.createSubresult(DOT_CLASS + "notifyFailure"));
notifyAny(OperationStatus.FAILURE, operationDescription, task, parentResult.createMinorSubresult(DOT_CLASS + "notifyFailure"));
}
}

Expand Down
Expand Up @@ -92,7 +92,7 @@ public void init() {
public boolean processEvent(Event event, EventHandlerType eventHandlerType, NotificationManager notificationManager,
Task task, OperationResult parentResult) throws SchemaException {

OperationResult result = parentResult.createSubresult(CustomNotifier.class.getName() + ".processEvent");
OperationResult result = parentResult.createMinorSubresult(CustomNotifier.class.getName() + ".processEvent");

logStart(getLogger(), event, eventHandlerType);

Expand Down
Expand Up @@ -83,7 +83,7 @@ public void init() {
public boolean processEvent(Event event, EventHandlerType eventHandlerType, NotificationManager notificationManager,
Task task, OperationResult parentResult) throws SchemaException {

OperationResult result = parentResult.createSubresult(GeneralNotifier.class.getName() + ".processEvent");
OperationResult result = parentResult.createMinorSubresult(GeneralNotifier.class.getName() + ".processEvent");

logStart(getLogger(), event, eventHandlerType);

Expand Down

0 comments on commit a929550

Please sign in to comment.