Class ClusterStatusInfo
- java.lang.Object
-
- org.craftercms.commons.monitoring.StatusInfo
-
- org.craftercms.studio.model.rest.monitoring.ClusterStatusInfo
-
public final class ClusterStatusInfo extends org.craftercms.commons.monitoring.StatusInfo
-
-
Field Summary
Fields Modifier and Type Field Description static String
ROLE_PRIMARY
static String
ROLE_REPLICA
static String
ROLE_UNASSIGNED
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getAge()
static ClusterStatusInfo
getCurrentStatus()
String
getRole()
boolean
isReadyToBecomePrimary()
boolean
isReadyToTakeTraffic()
void
setAge(long age)
void
setReadyToBecomePrimary(boolean readyToBecomePrimary)
void
setReadyToTakeTraffic(boolean readyToTakeTraffic)
void
setRole(String role)
-
-
-
Field Detail
-
ROLE_PRIMARY
public static final String ROLE_PRIMARY
- See Also:
- Constant Field Values
-
ROLE_REPLICA
public static final String ROLE_REPLICA
- See Also:
- Constant Field Values
-
ROLE_UNASSIGNED
public static final String ROLE_UNASSIGNED
- See Also:
- Constant Field Values
-
-
Method Detail
-
getCurrentStatus
public static ClusterStatusInfo getCurrentStatus()
-
getAge
public long getAge()
-
setAge
public void setAge(long age)
-
getRole
public String getRole()
-
setRole
public void setRole(String role)
-
isReadyToTakeTraffic
public boolean isReadyToTakeTraffic()
-
setReadyToTakeTraffic
public void setReadyToTakeTraffic(boolean readyToTakeTraffic)
-
isReadyToBecomePrimary
public boolean isReadyToBecomePrimary()
-
setReadyToBecomePrimary
public void setReadyToBecomePrimary(boolean readyToBecomePrimary)
-
-