-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Jeff Sabin
committed
Apr 25, 2018
1 parent
5debb3b
commit 7877d6a
Showing
5 changed files
with
103 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 8 additions & 11 deletions
19
src/test/java/org/kairosdb/client/TestDataPointListener.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,20 @@ | ||
package org.kairosdb.client; | ||
|
||
import org.kairosdb.core.DataPoint; | ||
import org.kairosdb.core.DataPointListener; | ||
import org.kairosdb.eventbus.Subscribe; | ||
import org.kairosdb.events.DataPointEvent; | ||
|
||
import java.util.SortedMap; | ||
|
||
public class TestDataPointListener implements DataPointListener | ||
public class TestDataPointListener | ||
{ | ||
private DataPointEvent event; | ||
private org.kairosdb.events.DataPointEvent event; | ||
|
||
public void setEvent(DataPointEvent event) | ||
@Subscribe | ||
public void dataPoint(org.kairosdb.events.DataPointEvent event) | ||
{ | ||
this.event = event; | ||
} | ||
|
||
@Override | ||
public void dataPoint(String metricName, SortedMap<String, String> tags, DataPoint dataPoint) | ||
public DataPointEvent getEvent() | ||
{ | ||
if (event != null) | ||
event.datapoint(metricName); | ||
return event; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters