@Test public void testGetHighAvailability() throws Exception { HighAvailabilitySummary summary = client().resource("/v1/server/highAvailability").get(HighAvailabilitySummary.class); log.info("HA summary is: "+summary); String ownNodeId = getManagementContext().getManagementNodeId(); assertEquals(summary.getOwnId(), ownNodeId); assertEquals(summary.getMasterId(), ownNodeId); assertEquals(summary.getNodes().keySet(), ImmutableSet.of(ownNodeId)); assertEquals(summary.getNodes().get(ownNodeId).getNodeId(), ownNodeId); assertEquals(summary.getNodes().get(ownNodeId).getStatus(), "MASTER"); assertNotNull(summary.getNodes().get(ownNodeId).getLocalTimestamp()); assertNotNull(summary.getNodes().get(ownNodeId).getRemoteTimestamp()); assertEquals(summary.getNodes().get(ownNodeId).getLocalTimestamp(), summary.getNodes().get(ownNodeId).getRemoteTimestamp()); }
@Deprecated @Override public HighAvailabilitySummary getHighAvailability() { return getHighAvailabilityPlaneStates(); }
ServerResource extends AbstractBrooklynRestResource implements ServerApi { @Deprecated @Override public HighAvailabilitySummary getHighAvailability() { return getHighAvailabilityPlaneStates(); } }
ServerResource extends AbstractBrooklynRestResource implements ServerApi { @Deprecated @Override public HighAvailabilitySummary getHighAvailability() { return getHighAvailabilityPlaneStates(); }  }
ServerResource extends AbstractBrooklynRestResource implements ServerApi { @Deprecated @Override public HighAvailabilitySummary getHighAvailability() { return getHighAvailabilityPlaneStates(); }  @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 HighAvailabilitySummary getHighAvailability() { return getHighAvailabilityPlaneStates(); }  @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);  }