Search in sources :

Example 1 with ZuulFilterDAO

use of com.netflix.zuul.scriptManager.ZuulFilterDAO in project zuul by Netflix.

the class StartServer method initCassandra.

void initCassandra() throws Exception {
    if (cassandraEnabled.get()) {
        LOG.info("Getting AstyanaxContext");
        Keyspace keyspace = CassandraHelper.getInstance().getZuulCassKeyspace();
        LOG.info("Initializing Cassandra ZuulFilterDAO");
        ZuulFilterDAO dao = new ZuulFilterDAOCassandra(keyspace);
        LOG.info("Starting ZuulFilter Poller");
        ZuulFilterPoller.start(dao);
    }
}
Also used : ZuulFilterDAO(com.netflix.zuul.scriptManager.ZuulFilterDAO) Keyspace(com.netflix.astyanax.Keyspace) ZuulFilterDAOCassandra(com.netflix.zuul.scriptManager.ZuulFilterDAOCassandra)

Aggregations

Keyspace (com.netflix.astyanax.Keyspace)1 ZuulFilterDAO (com.netflix.zuul.scriptManager.ZuulFilterDAO)1 ZuulFilterDAOCassandra (com.netflix.zuul.scriptManager.ZuulFilterDAOCassandra)1