Class OctaviaHealthMonitorV2
- java.lang.Object
-
- org.openstack4j.openstack.octavia.domain.OctaviaHealthMonitorV2
-
- All Implemented Interfaces:
Serializable,Buildable<HealthMonitorV2Builder>,ModelEntity,HealthMonitorV2
public class OctaviaHealthMonitorV2 extends Object implements HealthMonitorV2
A lbaas v2 health monitor entity- Author:
- wei
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOctaviaHealthMonitorV2.HealthMonitorsV2static classOctaviaHealthMonitorV2.HealthMonitorV2Concretebuilder-
Nested classes/interfaces inherited from interface org.openstack4j.common.Buildable
Buildable.Builder<T extends Buildable.Builder<T,M>,M extends Buildable<?>>
-
-
Constructor Summary
Constructors Constructor Description OctaviaHealthMonitorV2()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HealthMonitorV2Builderbuilder()IntegergetDelay()StringgetExpectedCodes()Optional.StringgetHttpMethod()Optional.StringgetId()IntegergetMaxRetries()IntegergetMaxRetriesDown()List<ListItem>getPools()The pools that this health monitor will monitor.StringgetProjectId()IntegergetTimeout()HealthMonitorTypegetType()StringgetUrlPath()Optional.booleanisAdminStateUp()Optional.HealthMonitorV2BuildertoBuilder()wrap this healthMonitorV2 to a builderStringtoString()
-
-
-
Method Detail
-
builder
public static HealthMonitorV2Builder builder()
- Returns:
- HealthMonitorV2Builder
-
getId
public String getId()
- Specified by:
getIdin interfaceHealthMonitorV2- Returns:
- id the healthMonitor identifier
-
getProjectId
public String getProjectId()
- Specified by:
getProjectIdin interfaceHealthMonitorV2- Returns:
- the ID of the project/tenant that owns the resource
-
getType
public HealthMonitorType getType()
- Specified by:
getTypein interfaceHealthMonitorV2- Returns:
- type The type of probe sent by the load balancer to verify the member state, which is TCP, HTTP, or HTTPS.
-
getDelay
public Integer getDelay()
- Specified by:
getDelayin interfaceHealthMonitorV2- Returns:
- delay The time, in seconds, between sending probes to members.
-
getTimeout
public Integer getTimeout()
- Specified by:
getTimeoutin interfaceHealthMonitorV2- Returns:
- timeout The maximum number of seconds for a monitor to wait for a connection to be established before it times out. This value must be less than the delay value.
-
getMaxRetries
public Integer getMaxRetries()
- Specified by:
getMaxRetriesin interfaceHealthMonitorV2- Returns:
- maxRetries Number of allowed connection failures before changing the status of the member to INACTIVE. A valid value is from 1 to 10.
-
getMaxRetriesDown
public Integer getMaxRetriesDown()
- Specified by:
getMaxRetriesDownin interfaceHealthMonitorV2- Returns:
- maxRetriesDown Number of allowed connection failures before changing the status of the member to INACTIVE. A valid value is from 1 to 10.
-
getHttpMethod
public String getHttpMethod()
Description copied from interface:HealthMonitorV2Optional.- Specified by:
getHttpMethodin interfaceHealthMonitorV2- Returns:
- httpMethod The HTTP method that the monitor uses for requests.
-
getUrlPath
public String getUrlPath()
Description copied from interface:HealthMonitorV2Optional.- Specified by:
getUrlPathin interfaceHealthMonitorV2- Returns:
- urlPath The HTTP path of the request sent by the monitor to test the health of a member. Must be a string beginning with a forward slash (/).
-
getExpectedCodes
public String getExpectedCodes()
Description copied from interface:HealthMonitorV2Optional.- Specified by:
getExpectedCodesin interfaceHealthMonitorV2- Returns:
- expectedCodes Expected HTTP codes for a passing HTTP(S) monitor.
-
isAdminStateUp
public boolean isAdminStateUp()
Description copied from interface:HealthMonitorV2Optional.- Specified by:
isAdminStateUpin interfaceHealthMonitorV2- Returns:
- adminstateup The administrative state of the health monitor, which is up (true) or down (false). Default true.
-
getPools
public List<ListItem> getPools()
Description copied from interface:HealthMonitorV2The pools that this health monitor will monitor.- Specified by:
getPoolsin interfaceHealthMonitorV2- Returns:
- pools
-
toBuilder
public HealthMonitorV2Builder toBuilder()
wrap this healthMonitorV2 to a builder- Specified by:
toBuilderin interfaceBuildable<HealthMonitorV2Builder>- Returns:
- HealthMonitorV2Builder
-
-