Package com.j_spaces.core
Class SpaceHealthStatus
java.lang.Object
com.j_spaces.core.SpaceHealthStatus
- All Implemented Interfaces:
SmartExternalizable,Externalizable,Serializable
Represents a space health status
- Since:
- 7.0
- Author:
- eitany
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionFor Externalizable purposesSpaceHealthStatus(Throwable[] healthIssueErrors) Constructs a new space health status object -
Method Summary
Modifier and TypeMethodDescriptionReturns an exception representing why the space is unhealthy or null if it is healthybooleanGets whether the space is unhealthyvoidvoidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.gigaspaces.serialization.SmartExternalizable
enabledSmartExternalizableWithReference
-
Constructor Details
-
SpaceHealthStatus
public SpaceHealthStatus()For Externalizable purposes -
SpaceHealthStatus
Constructs a new space health status object- Parameters:
healthIssueErrors- errors representing why the space is unhealthy
-
-
Method Details
-
isHealthy
public boolean isHealthy()Gets whether the space is unhealthy- Returns:
- return true healthIssueErrors is NULL or empty
-
getUnhealthyReason
Returns an exception representing why the space is unhealthy or null if it is healthy- Returns:
- exception representing why the space is unhealthy or null if it is healthy
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-