Class CurrentMongoStatus
java.lang.Object
org.eclipse.ditto.internal.utils.health.mongo.CurrentMongoStatus
Reflects the currently determined MongoDB health status.
Whether
alive or not including a description.-
Constructor Summary
ConstructorsConstructorDescriptionCurrentMongoStatus(boolean alive) Constructs a newCurrentMongoStatusobject.CurrentMongoStatus(boolean alive, String description) Constructs a newCurrentMongoStatusobject. -
Method Summary
-
Constructor Details
-
CurrentMongoStatus
public CurrentMongoStatus(boolean alive) Constructs a newCurrentMongoStatusobject.- Parameters:
alive- indicates whether the Persistence is alive.
-
CurrentMongoStatus
Constructs a newCurrentMongoStatusobject.- Parameters:
alive- indicates whether the Persistence is alive.description- an optional description why it is alive/not alive.
-
-
Method Details
-
isAlive
public boolean isAlive()Returns whether the Persistence is alive.- Returns:
- whether the Persistence is alive.
-
getDescription
Returns an optional description why it is alive/not alive.- Returns:
- an optional description why it is alive/not alive.
-
equals
-
hashCode
public int hashCode() -
toString
-