[
https://issues.apache.org/jira/browse/STORM-1616?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15196015#comment-15196015
]
ASF GitHub Bot commented on STORM-1616:
---------------------------------------
Github user revans2 commented on a diff in the pull request:
https://github.com/apache/storm/pull/1199#discussion_r56223967
--- Diff: storm-core/src/jvm/org/apache/storm/trident/TridentState.java ---
@@ -23,18 +23,33 @@
public class TridentState {
TridentTopology _topology;
Node _node;
-
+
protected TridentState(TridentTopology topology, Node node) {
_topology = topology;
_node = node;
}
-
+
public Stream newValuesStream() {
return new Stream(_topology, _node.name, _node);
}
-
+
public TridentState parallelismHint(int parallelism) {
_node.parallelismHint = parallelism;
return this;
}
+
+ public TridentState setCPULoad(Number load) {
--- End diff --
Can we do the same here too? Have TridentState implement
`ResourceDeclarer<TridentState>` and have these marked with `@Override`.
> Add RAS API for Trident
> -----------------------
>
> Key: STORM-1616
> URL: https://issues.apache.org/jira/browse/STORM-1616
> Project: Apache Storm
> Issue Type: Bug
> Reporter: Kyle Nusbaum
> Assignee: Kyle Nusbaum
>
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)