VMware GemFire Java API Reference
Package org.apache.geode.management.api
Class ClusterManagementResult
java.lang.Object
org.apache.geode.management.api.ClusterManagementResult
- Direct Known Subclasses:
ClusterManagementGetResult,ClusterManagementListOperationsResult,ClusterManagementListResult,ClusterManagementOperationResult,ClusterManagementRealizationResult
This base class provides the common attributes returned from all
ClusterManagementService
methods-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumthese status codes generally have a one-to-one mapping to the http status code returned by the REST controller -
Constructor Summary
ConstructorsConstructorDescriptionfor internal use onlyfor internal use onlyClusterManagementResult(ClusterManagementResult.StatusCode statusCode, String message) for internal use only -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns theClusterManagementResult.StatusCodefor this request, such as ERROR or OK.Returns an optional message to accompanygetStatusCode()inthashCode()booleanReturns true ifgetStatusCode()has a non-error valuevoidfor internal use onlyvoidsetStatus(ClusterManagementResult.StatusCode statusCode, String message) for internal use onlytoString()Returns the status code and message
-
Constructor Details
-
ClusterManagementResult
public ClusterManagementResult()for internal use only -
ClusterManagementResult
for internal use only- Parameters:
statusCode- theClusterManagementResult.StatusCodeto setmessage- the status message to set
-
ClusterManagementResult
for internal use only- Parameters:
copyFrom- theClusterManagementResultto copy from
-
-
Method Details
-
setStatus
for internal use only- Parameters:
statusCode- theClusterManagementResult.StatusCodeto setmessage- the status message to set
-
getStatusMessage
Returns an optional message to accompanygetStatusCode()- Returns:
- an optional message to accompany
getStatusCode()
-
setLinks
for internal use only- Parameters:
links- theLinksto set
-
isSuccessful
public boolean isSuccessful()Returns true ifgetStatusCode()has a non-error value- Returns:
- true if
getStatusCode()has a non-error value
-
getStatusCode
Returns theClusterManagementResult.StatusCodefor this request, such as ERROR or OK.- Returns:
- the
ClusterManagementResult.StatusCodefor this request
-
toString
Returns the status code and message -
equals
-
hashCode
public int hashCode()
-