Skip to content

Commit

Permalink
Merge pull request #146 from lucasponce/master
Browse files Browse the repository at this point in the history
Fix wrong return bus message type
  • Loading branch information
jshaughn committed Jan 11, 2016
2 parents 60255c7 + eae461c commit a6c10ea
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

/**
* A bus message used to receive data for the alerts subsystem.
* One message can store a collection of {@link org.hawkular.alerts.bus.messages.AlertData}.
* One message can store a collection of {@link org.hawkular.alerts.api.model.data.Data}.
*
* @author Jay Shaughnessy
* @author Lucas Ponce
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ protected void onBasicMessage(AvailDataMessage msg) {
protected String convertReceivedMessageClassNameToDesiredMessageClassName(String className) {

if (className.equals("org.hawkular.metrics.component.publish.AvailDataMessage")) {
return "org.hawkular.alerts.bus.messages.AvailDataMessage";
return "org.hawkular.alerts.bus.api.AvailDataMessage";
}

return null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ protected void onBasicMessage(MetricDataMessage msg) {
protected String convertReceivedMessageClassNameToDesiredMessageClassName(String className) {

if (className.equals("org.hawkular.metrics.component.publish.MetricDataMessage")) {
return "org.hawkular.alerts.bus.messages.MetricDataMessage";
return "org.hawkular.alerts.bus.api.MetricDataMessage";
}

return null;
Expand Down

0 comments on commit a6c10ea

Please sign in to comment.