@Test void testGetMissingConfigThrowsException() throws Exception { final String key = "foo.bar.baz"; BrooklynProperties properties = ((ManagementContextInternal)getManagementContext()).getBrooklynProperties(); Object existingValue = null; boolean keyAlreadyPresent = false; String response = null; if (properties.containsKey(key)) { existingValue = properties.remove(key); keyAlreadyPresent = true; } try { response = client().resource("/v1/server/config/" + key).get(String.class); Asserts.fail("Expected call to /v1/server/config/" + key + " to fail with status 404, instead server returned " + response); } catch (UniformInterfaceException e) { assertEquals(e.getResponse().getStatus(), 204); } finally { if (keyAlreadyPresent) { properties.put(key, existingValue); } } }
@Deprecated @Override public String getStatus() { return getHighAvailabilityNodeState().toString(); }
ServerResource extends AbstractBrooklynRestResource implements ServerApi { @Deprecated @Override public String getStatus() { return getHighAvailabilityNodeState().toString(); } }
ServerResource extends AbstractBrooklynRestResource implements ServerApi { @Deprecated @Override public String getStatus() { return getHighAvailabilityNodeState().toString(); }  }
ServerResource extends AbstractBrooklynRestResource implements ServerApi { @Deprecated @Override public String getStatus() { return getHighAvailabilityNodeState().toString(); }  @Override void reloadBrooklynProperties(); @Override void shutdown(final boolean stopAppsFirst, final boolean forceShutdownOnError,
            String shutdownTimeoutRaw, String requestTimeoutRaw, String delayForHttpReturnRaw,
            Long delayMillis); @Override VersionSummary getVersion(); @Override boolean isUp(); @Override boolean isShuttingDown(); @Override boolean isHealthy(); @Override Map<String,Object> getUpExtended(); @Deprecated @Override String getStatus(); @Override String getConfig(String configKey); @Deprecated @Override HighAvailabilitySummary getHighAvailability(); @Override ManagementNodeState getHighAvailabilityNodeState(); @Override ManagementNodeState setHighAvailabilityNodeState(HighAvailabilityMode mode); @Override Map<String, Object> getHighAvailabilityMetrics(); @Override long getHighAvailabitlityPriority(); @Override long setHighAvailabilityPriority(long priority); @Override HighAvailabilitySummary getHighAvailabilityPlaneStates(); @Override Response clearHighAvailabilityPlaneStates(); @Override String getUser(); @Override Response exportPersistenceData(String preferredOrigin); }
ServerResource extends AbstractBrooklynRestResource implements ServerApi { @Deprecated @Override public String getStatus() { return getHighAvailabilityNodeState().toString(); }  @Override void reloadBrooklynProperties(); @Override void shutdown(final boolean stopAppsFirst, final boolean forceShutdownOnError,
            String shutdownTimeoutRaw, String requestTimeoutRaw, String delayForHttpReturnRaw,
            Long delayMillis); @Override VersionSummary getVersion(); @Override boolean isUp(); @Override boolean isShuttingDown(); @Override boolean isHealthy(); @Override Map<String,Object> getUpExtended(); @Deprecated @Override String getStatus(); @Override String getConfig(String configKey); @Deprecated @Override HighAvailabilitySummary getHighAvailability(); @Override ManagementNodeState getHighAvailabilityNodeState(); @Override ManagementNodeState setHighAvailabilityNodeState(HighAvailabilityMode mode); @Override Map<String, Object> getHighAvailabilityMetrics(); @Override long getHighAvailabitlityPriority(); @Override long setHighAvailabilityPriority(long priority); @Override HighAvailabilitySummary getHighAvailabilityPlaneStates(); @Override Response clearHighAvailabilityPlaneStates(); @Override String getUser(); @Override Response exportPersistenceData(String preferredOrigin);  }