Committed by
Gerrit Code Review
Cleaned up NewAdaptiveFlowStatsCollector logs to prevent excessive
object creation and string concatenation. Dropped per-flow-stats-request logs to TRACE level. Change-Id: I2dd55030bd1faa00d6fbfef74c7da1debb7f1d7d
Showing
2 changed files
with
16 additions
and
0 deletions
... | @@ -26,11 +26,27 @@ public final class FlowId extends Identifier<Long> { | ... | @@ -26,11 +26,27 @@ public final class FlowId extends Identifier<Long> { |
26 | super(id); | 26 | super(id); |
27 | } | 27 | } |
28 | 28 | ||
29 | + /** | ||
30 | + * Creates a flow ID from a long value. | ||
31 | + * | ||
32 | + * @param id long value | ||
33 | + * @return flow ID | ||
34 | + */ | ||
29 | public static FlowId valueOf(long id) { | 35 | public static FlowId valueOf(long id) { |
30 | return new FlowId(id); | 36 | return new FlowId(id); |
31 | } | 37 | } |
32 | 38 | ||
39 | + /** | ||
40 | + * Gets the flow ID value. | ||
41 | + * | ||
42 | + * @return flow ID value as long | ||
43 | + */ | ||
33 | public long value() { | 44 | public long value() { |
34 | return this.identifier; | 45 | return this.identifier; |
35 | } | 46 | } |
47 | + | ||
48 | + @Override | ||
49 | + public String toString() { | ||
50 | + return Long.toHexString(identifier); | ||
51 | + } | ||
36 | } | 52 | } | ... | ... |
This diff is collapsed. Click to expand it.
-
Please register or login to post a comment