-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated documentation and added passing instant to collectors
- Loading branch information
Showing
31 changed files
with
420 additions
and
80 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
17 changes: 17 additions & 0 deletions
17
metrics4j/src/main/java/org/kairosdb/metrics4j/collectors/DoubleCollector.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,6 +1,23 @@ | ||
package org.kairosdb.metrics4j.collectors; | ||
|
||
import java.time.Instant; | ||
|
||
public interface DoubleCollector extends Collector | ||
{ | ||
/** | ||
Place a double value into the collector to be reported. | ||
The actual value reported is determined by the collector implementation | ||
that is configured for this source. | ||
@param value Value to be reported. | ||
*/ | ||
void put(double value); | ||
|
||
/** | ||
Place a double value and associated timestamp into the collector to be reported. | ||
The actual value and time reported is determined by the collector implementation | ||
that is configured for this source. | ||
@param time Suggested timestamp to use when reporting. | ||
@param value Value to be reported. | ||
*/ | ||
void put(Instant time, double value); | ||
} |
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
17 changes: 17 additions & 0 deletions
17
metrics4j/src/main/java/org/kairosdb/metrics4j/collectors/LongCollector.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,6 +1,23 @@ | ||
package org.kairosdb.metrics4j.collectors; | ||
|
||
import java.time.Instant; | ||
|
||
public interface LongCollector extends Collector | ||
{ | ||
/** | ||
Place a long value into the collector to be reported. | ||
The actual value reported is determined by the collector implementation | ||
that is configured for this source. | ||
@param value Value to be reported. | ||
*/ | ||
void put(long value); | ||
|
||
/** | ||
Place a long value and associated timestamp into the collector to be reported. | ||
The actual value and time reported is determined by the collector implementation | ||
that is configured for this source. | ||
@param time Suggested timestamp to use when reporting. | ||
@param value Value to be reported. | ||
*/ | ||
void put(Instant time, long value); | ||
} |
17 changes: 17 additions & 0 deletions
17
metrics4j/src/main/java/org/kairosdb/metrics4j/collectors/StringCollector.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,6 +1,23 @@ | ||
package org.kairosdb.metrics4j.collectors; | ||
|
||
import java.time.Instant; | ||
|
||
public interface StringCollector extends Collector | ||
{ | ||
/** | ||
Place a String value into the collector to be reported. | ||
The actual value reported is determined by the collector implementation | ||
that is configured for this source. | ||
@param value Value to be reported. | ||
*/ | ||
void put(String value); | ||
|
||
/** | ||
Place a double value and associated timestamp into the collector to be reported. | ||
The actual value and time reported is determined by the collector implementation | ||
that is configured for this source. | ||
@param time Suggested timestamp to use when reporting. | ||
@param value Value to be reported. | ||
*/ | ||
void put(Instant time, String value); | ||
} |
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
Oops, something went wrong.