Search in sources :

Example 1 with CassandraFrameworkConfiguration

use of io.mesosphere.mesos.frameworks.cassandra.CassandraFrameworkProtos.CassandraFrameworkConfiguration in project cassandra-mesos-deprecated by mesosphere.

the class SeedManager method updateDcSeeds.

private void updateDcSeeds(@NotNull final ExternalDc dc, @NotNull final List<String> seeds) {
    int idx = externalDcIdx(dc.getName());
    ExternalDc newDc = ExternalDc.newBuilder(dc).clearSeeds().addAllSeeds(seeds).setSeedFetchTime(clock.now().getMillis()).build();
    CassandraFrameworkConfiguration config = CassandraFrameworkConfiguration.newBuilder(configuration.get()).setExternalDcs(idx, newDc).build();
    configuration.setValue(config);
}
Also used : CassandraFrameworkConfiguration(io.mesosphere.mesos.frameworks.cassandra.CassandraFrameworkProtos.CassandraFrameworkConfiguration) ExternalDc(io.mesosphere.mesos.frameworks.cassandra.CassandraFrameworkProtos.ExternalDc)

Aggregations

CassandraFrameworkConfiguration (io.mesosphere.mesos.frameworks.cassandra.CassandraFrameworkProtos.CassandraFrameworkConfiguration)1 ExternalDc (io.mesosphere.mesos.frameworks.cassandra.CassandraFrameworkProtos.ExternalDc)1