cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brandon Williams (JIRA)" <>
Subject [jira] [Commented] (CASSANDRA-7843) Remove static singleton instances
Date Wed, 17 Sep 2014 17:45:35 GMT


Brandon Williams commented on CASSANDRA-7843:

bq. Nobody's arguing that singletons are an antipattern, but yeah. Just 'get rid of all the
singletons' should not be the goal.

I agree with this, we need specific goals to solve and this approach seems to be using the
shotgun method and blasting anything with a singleton.  A good example of this is the CLI.
 Sure, we'll be removing the CLI in 3.0, but even if we weren't, there's no reason to kill
the singletons there just because they're singletons.

> Remove static singleton instances
> ---------------------------------
>                 Key: CASSANDRA-7843
>                 URL:
>             Project: Cassandra
>          Issue Type: Sub-task
>            Reporter: Blake Eggleston
>            Assignee: Blake Eggleston
> Initialize and start C* from a static method that takes a configuration as an argument.
> CassandraDaemon and utilities will need to be updated, and we'll need a helper method
so tests can instantiate the database with a one or two liner.

This message was sent by Atlassian JIRA

View raw message