public synchronized void startRPCServer() { checkServiceAllowedToStart("thrift"); if (daemon == null) { throw new IllegalStateException("No configured daemon"); } daemon.thriftServer.start(); }
public void setHintedHandoffEnabled(boolean b) { synchronized (StorageService.instance) { if (b) StorageService.instance.checkServiceAllowedToStart("hinted handoff"); DatabaseDescriptor.setHintedHandoffEnabled(b); } }
public synchronized void startRPCServer() { checkServiceAllowedToStart("thrift"); if (daemon == null) { throw new IllegalStateException("No configured daemon"); } daemon.thriftServer.start(); }
public void setHintedHandoffEnabled(boolean b) { synchronized (StorageService.instance) { if (b) StorageService.instance.checkServiceAllowedToStart("hinted handoff"); DatabaseDescriptor.setHintedHandoffEnabled(b); } }
public synchronized void startRPCServer() { checkServiceAllowedToStart("thrift"); if (daemon == null) { throw new IllegalStateException("No configured daemon"); } daemon.thriftServer.start(); }
public void setHintedHandoffEnabled(boolean b) { synchronized (StorageService.instance) { if (b) StorageService.instance.checkServiceAllowedToStart("hinted handoff"); DatabaseDescriptor.setHintedHandoffEnabled(b); } }
public synchronized void startNativeTransport() { checkServiceAllowedToStart("native transport"); if (daemon == null) { throw new IllegalStateException("No configured daemon"); } try { daemon.startNativeTransport(); } catch (Exception e) { throw new RuntimeException("Error starting native transport: " + e.getMessage()); } }
public synchronized void startNativeTransport() { checkServiceAllowedToStart("native transport"); if (daemon == null) { throw new IllegalStateException("No configured daemon"); } try { daemon.startNativeTransport(); } catch (Exception e) { throw new RuntimeException("Error starting native transport: " + e.getMessage()); } }
public synchronized void startNativeTransport() { checkServiceAllowedToStart("native transport"); if (daemon == null) { throw new IllegalStateException("No configured daemon"); } try { daemon.startNativeTransport(); } catch (Exception e) { throw new RuntimeException("Error starting native transport: " + e.getMessage()); } }
public synchronized void enableAutoCompaction(String ks, String... tables) throws IOException { checkServiceAllowedToStart("auto compaction"); for (ColumnFamilyStore cfs : getValidColumnFamilies(true, true, ks, tables)) { cfs.enableAutoCompaction(); } }
public synchronized void enableAutoCompaction(String ks, String... tables) throws IOException { checkServiceAllowedToStart("auto compaction"); for (ColumnFamilyStore cfs : getValidColumnFamilies(true, true, ks, tables)) { cfs.enableAutoCompaction(); } }
public synchronized void enableAutoCompaction(String ks, String... tables) throws IOException { checkServiceAllowedToStart("auto compaction"); for (ColumnFamilyStore cfs : getValidColumnFamilies(true, true, ks, tables)) { cfs.enableAutoCompaction(); } }
public synchronized void startGossiping() { if (!gossipActive) { checkServiceAllowedToStart("gossip"); logger.warn("Starting gossip by operator request"); Collection<Token> tokens = SystemKeyspace.getSavedTokens(); boolean validTokens = tokens != null && !tokens.isEmpty(); // shouldn't be called before these are set if we intend to join the ring/are in the process of doing so if (joined || joinRing) assert validTokens : "Cannot start gossiping for a node intended to join without valid tokens"; if (validTokens) setGossipTokens(tokens); Gossiper.instance.forceNewerGeneration(); Gossiper.instance.start((int) (System.currentTimeMillis() / 1000)); gossipActive = true; } }
public synchronized void startGossiping() { if (!gossipActive) { checkServiceAllowedToStart("gossip"); logger.warn("Starting gossip by operator request"); Collection<Token> tokens = SystemKeyspace.getSavedTokens(); boolean validTokens = tokens != null && !tokens.isEmpty(); // shouldn't be called before these are set if we intend to join the ring/are in the process of doing so if (joined || joinRing) assert validTokens : "Cannot start gossiping for a node intended to join without valid tokens"; if (validTokens) setGossipTokens(tokens); Gossiper.instance.forceNewerGeneration(); Gossiper.instance.start((int) (System.currentTimeMillis() / 1000)); gossipActive = true; } }
public synchronized void startGossiping() { if (!gossipActive) { checkServiceAllowedToStart("gossip"); logger.warn("Starting gossip by operator request"); Collection<Token> tokens = SystemKeyspace.getSavedTokens(); boolean validTokens = tokens != null && !tokens.isEmpty(); // shouldn't be called before these are set if we intend to join the ring/are in the process of doing so if (joined || joinRing) assert validTokens : "Cannot start gossiping for a node intended to join without valid tokens"; if (validTokens) setGossipTokens(tokens); Gossiper.instance.forceNewerGeneration(); Gossiper.instance.start((int) (System.currentTimeMillis() / 1000)); gossipActive = true; } }