@Test public void getMode() throws Exception { when(sanskrit.getString("mode")).thenReturn("ACCEPTING"); assertEquals(ACCEPTING, state.getMode()); assertTrue(state.isInitialized()); }
@Override public NomadServerMode getMode() { String mode = getString(MODE); return NomadServerMode.valueOf(mode); }
SanskritNomadServerState implements NomadServerState<NodeContext> { @Override public NomadServerMode getMode() { String mode = getString(MODE); return NomadServerMode.valueOf(mode); } }
SanskritNomadServerState implements NomadServerState<NodeContext> { @Override public NomadServerMode getMode() { String mode = getString(MODE); return NomadServerMode.valueOf(mode); } SanskritNomadServerState(Sanskrit sanskrit, ConfigStorage configStorage, HashComputer hashComputer); }
SanskritNomadServerState implements NomadServerState<NodeContext> { @Override public NomadServerMode getMode() { String mode = getString(MODE); return NomadServerMode.valueOf(mode); } SanskritNomadServerState(Sanskrit sanskrit, ConfigStorage configStorage, HashComputer hashComputer); @Override boolean isInitialized(); @Override NomadServerMode getMode(); @Override long getMutativeMessageCount(); @Override String getLastMutationHost(); @Override String getLastMutationUser(); @Override Instant getLastMutationTimestamp(); @Override UUID getLatestChangeUuid(); @Override long getCurrentVersion(); @Override long getHighestVersion(); @Override ChangeRequest<NodeContext> getChangeRequest(UUID changeUuid); @Override NomadStateChange<NodeContext> newStateChange(); @Override void applyStateChange(NomadStateChange<NodeContext> change); @Override Optional<NodeContext> getCurrentCommittedConfig(); @Override void reset(); }
SanskritNomadServerState implements NomadServerState<NodeContext> { @Override public NomadServerMode getMode() { String mode = getString(MODE); return NomadServerMode.valueOf(mode); } SanskritNomadServerState(Sanskrit sanskrit, ConfigStorage configStorage, HashComputer hashComputer); @Override boolean isInitialized(); @Override NomadServerMode getMode(); @Override long getMutativeMessageCount(); @Override String getLastMutationHost(); @Override String getLastMutationUser(); @Override Instant getLastMutationTimestamp(); @Override UUID getLatestChangeUuid(); @Override long getCurrentVersion(); @Override long getHighestVersion(); @Override ChangeRequest<NodeContext> getChangeRequest(UUID changeUuid); @Override NomadStateChange<NodeContext> newStateChange(); @Override void applyStateChange(NomadStateChange<NodeContext> change); @Override Optional<NodeContext> getCurrentCommittedConfig(); @Override void reset();  }