public class ServerResource extends AbstractBrooklynRestResource implements ServerApi
AbstractBrooklynRestResource.RestValueResolver
MIME_TYPE_TGZ, MIME_TYPE_ZIP
Constructor and Description |
---|
ServerResource() |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
clearHighAvailabilityPlaneStates() |
javax.ws.rs.core.Response |
exportPersistenceData(java.lang.String preferredOrigin) |
java.lang.String |
getConfig(java.lang.String configKey) |
HighAvailabilitySummary |
getHighAvailability()
Deprecated.
|
java.util.Map<java.lang.String,java.lang.Object> |
getHighAvailabilityMetrics() |
ManagementNodeState |
getHighAvailabilityNodeState() |
HighAvailabilitySummary |
getHighAvailabilityPlaneStates() |
long |
getHighAvailabitlityPriority() |
java.lang.String |
getStatus()
Deprecated.
|
java.util.Map<java.lang.String,java.lang.Object> |
getUpExtended() |
java.lang.String |
getUser() |
VersionSummary |
getVersion() |
boolean |
isHealthy() |
boolean |
isShuttingDown() |
boolean |
isUp() |
void |
reloadBrooklynProperties() |
ManagementNodeState |
setHighAvailabilityNodeState(HighAvailabilityMode mode) |
long |
setHighAvailabilityPriority(long priority) |
void |
shutdown(boolean stopAppsFirst,
boolean forceShutdownOnError,
java.lang.String shutdownTimeoutRaw,
java.lang.String requestTimeoutRaw,
java.lang.String delayForHttpReturnRaw,
java.lang.Long delayMillis) |
brooklyn, injectManagementContext, mgmt
public void reloadBrooklynProperties()
reloadBrooklynProperties
in interface ServerApi
public void shutdown(boolean stopAppsFirst, boolean forceShutdownOnError, java.lang.String shutdownTimeoutRaw, java.lang.String requestTimeoutRaw, java.lang.String delayForHttpReturnRaw, java.lang.Long delayMillis)
public VersionSummary getVersion()
getVersion
in interface ServerApi
public boolean isShuttingDown()
isShuttingDown
in interface ServerApi
public java.util.Map<java.lang.String,java.lang.Object> getUpExtended()
getUpExtended
in interface ServerApi
@Deprecated public java.lang.String getStatus()
public java.lang.String getConfig(java.lang.String configKey)
@Deprecated public HighAvailabilitySummary getHighAvailability()
getHighAvailability
in interface ServerApi
public ManagementNodeState getHighAvailabilityNodeState()
getHighAvailabilityNodeState
in interface ServerApi
public ManagementNodeState setHighAvailabilityNodeState(HighAvailabilityMode mode)
setHighAvailabilityNodeState
in interface ServerApi
public java.util.Map<java.lang.String,java.lang.Object> getHighAvailabilityMetrics()
getHighAvailabilityMetrics
in interface ServerApi
public long getHighAvailabitlityPriority()
getHighAvailabitlityPriority
in interface ServerApi
public long setHighAvailabilityPriority(long priority)
setHighAvailabilityPriority
in interface ServerApi
public HighAvailabilitySummary getHighAvailabilityPlaneStates()
getHighAvailabilityPlaneStates
in interface ServerApi
public javax.ws.rs.core.Response clearHighAvailabilityPlaneStates()
clearHighAvailabilityPlaneStates
in interface ServerApi
public javax.ws.rs.core.Response exportPersistenceData(java.lang.String preferredOrigin)
exportPersistenceData
in interface ServerApi