public Builder incrementVersion() { this.version = version + 1; this.clusterUUID = SystemKeyspace.getLocalHostId().toString(); return this; }
LocalCounterIdHolder() { current = new AtomicReference<>(wrap(ByteBufferUtil.bytes(SystemKeyspace.getLocalHostId()))); }
LocalCounterIdHolder() { current = new AtomicReference<>(wrap(ByteBufferUtil.bytes(SystemKeyspace.getLocalHostId()))); }
LocalCounterIdHolder() { current = new AtomicReference<>(wrap(ByteBufferUtil.bytes(SystemKeyspace.getLocalHostId()))); }
LocalCounterIdHolder() { current = new AtomicReference<>(wrap(ByteBufferUtil.bytes(SystemKeyspace.getLocalHostId()))); }
LocalCounterIdHolder() { current = new AtomicReference<>(wrap(ByteBufferUtil.bytes(SystemKeyspace.getLocalHostId()))); }
public Builder() { try { clusterUUID = SystemKeyspace.getLocalHostId().toString(); } catch (java.lang.AssertionError | org.apache.cassandra.db.KeyspaceNotDefinedException |java.lang.NoClassDefFoundError e) { // for testing when Cassandra is nnot initialized. clusterUUID = UUID.randomUUID().toString(); } indices = ImmutableOpenMap.builder(); templates = ImmutableOpenMap.builder(); customs = ImmutableOpenMap.builder(); indexGraveyard(IndexGraveyard.builder().build()); // create new empty index graveyard to initialize }
UUID localHostId = SystemKeyspace.getLocalHostId();
UUID localHostId = SystemKeyspace.getLocalHostId();
UUID localHostId = SystemKeyspace.getLocalHostId();
UUID localHostId = SystemKeyspace.getLocalHostId(); getTokenMetadata().updateHostId(localHostId, FBUtilities.getBroadcastAddress()); appStates.put(ApplicationState.NET_VERSION, valueFactory.networkVersion());
MessagingService.instance().listen(); UUID localHostId = SystemKeyspace.getLocalHostId();
MessagingService.instance().listen(); UUID localHostId = SystemKeyspace.getLocalHostId();
MessagingService.instance().listen(); UUID localHostId = SystemKeyspace.getLocalHostId();
UUID localHostId = SystemKeyspace.getLocalHostId(); String ksname = baseCfs.metadata.ksName, viewName = view.name;
UUID localHostId = SystemKeyspace.getLocalHostId(); String ksname = baseCfs.metadata.ksName, viewName = view.name;
UUID localHostId = SystemKeyspace.getLocalHostId(); String ksname = baseCfs.metadata.ksName, viewName = view.name;
localNodeFactory = new LocalNodeFactory(settings, SystemKeyspace.getLocalHostId().toString());