[jira] [Commented] (STORM-2327) Abstract class ConfigurableTopology
[ https://issues.apache.org/jira/browse/STORM-2327?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15856307#comment-15856307 ] Kevin Peek commented on STORM-2327: --- FWIW Flux does support some degree of creating topologies in code. See the docs here under the heading "Existing Topologies" http://storm.apache.org/releases/2.0.0-SNAPSHOT/flux.html It certainly doesn't cover every use case though. > Abstract class ConfigurableTopology > --- > > Key: STORM-2327 > URL: https://issues.apache.org/jira/browse/STORM-2327 > Project: Apache Storm > Issue Type: New Feature > Components: storm-core >Affects Versions: 2.0.0 >Reporter: Julien Nioche >Assignee: Julien Nioche >Priority: Minor > Fix For: 2.0.0 > > Time Spent: 2h 10m > Remaining Estimate: 0h > > Classes which run topologies often repeat the same code and pattern to: > * populate the configuration from a file instead of ~/.storm > * determine whether to run locally or remotely > * set a TTL for a topology > Flux provides an elegant way of dealing with these but sometimes it is > simpler to define a topology in Java code. > In [StormCrawler|http://stormcrawler.net], we implemented an abstract class > named ConfigurableTopology which can be extended and saves users the hassle > of having to write code for the things above. I will open a PR containing > this class so that we can discuss and comment whether it is of any use at all. -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Commented] (STORM-2327) Abstract class ConfigurableTopology
[ https://issues.apache.org/jira/browse/STORM-2327?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15849726#comment-15849726 ] Julien Nioche commented on STORM-2327: -- @kabhwan 1.x does not have the class LocalCluster in Java so we can't have ConfigurableTopology in storm-core as far as I can tell > Abstract class ConfigurableTopology > --- > > Key: STORM-2327 > URL: https://issues.apache.org/jira/browse/STORM-2327 > Project: Apache Storm > Issue Type: New Feature > Components: storm-core >Affects Versions: 2.0.0 >Reporter: Julien Nioche >Assignee: Julien Nioche >Priority: Minor > Fix For: 2.0.0 > > Time Spent: 2h 10m > Remaining Estimate: 0h > > Classes which run topologies often repeat the same code and pattern to: > * populate the configuration from a file instead of ~/.storm > * determine whether to run locally or remotely > * set a TTL for a topology > Flux provides an elegant way of dealing with these but sometimes it is > simpler to define a topology in Java code. > In [StormCrawler|http://stormcrawler.net], we implemented an abstract class > named ConfigurableTopology which can be extended and saves users the hassle > of having to write code for the things above. I will open a PR containing > this class so that we can discuss and comment whether it is of any use at all. -- This message was sent by Atlassian JIRA (v6.3.15#6346)