Skip to content

Commit 3fb7ad1

Browse files
vjkoskelaBrandonArp
authored andcommitted
Update StatsdSource.java (#63)
Add default actor name as required by ActorSource.java same as in ClientHttpSourceV1.java
1 parent 0fda4c4 commit 3fb7ad1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/main/java/com/arpnetworking/metrics/common/sources/StatsdSource.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,11 @@ private StatsdSource(final Builder builder) {
6464

6565
private static final Logger LOGGER = LoggerFactory.getLogger(StatsdSource.class);
6666
private static final Parser<List<Record>, ByteBuffer> PARSER = new StatsdToRecordParser();
67+
68+
/**
69+
* Name of the actor created to receive the Statsd datagrams.
70+
*/
71+
public static final String ACTOR_NAME = "statsd";
6772

6873
/**
6974
* Internal actor to process requests.
@@ -161,6 +166,7 @@ public static final class Builder extends ActorSource.Builder<Builder, StatsdSou
161166
*/
162167
public Builder() {
163168
super(StatsdSource::new);
169+
setActorName(ACTOR_NAME);
164170
}
165171

166172
/**

0 commit comments

Comments
 (0)