Class NeutronHealthMonitor
- java.lang.Object
-
- org.openstack4j.openstack.networking.domain.ext.NeutronHealthMonitor
-
- All Implemented Interfaces:
Serializable,Buildable<HealthMonitorBuilder>,ModelEntity,HealthMonitor
public class NeutronHealthMonitor extends Object implements HealthMonitor
A health monitor entity- Author:
- liujunpeng
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNeutronHealthMonitor.HealthMonitorConcretebuilderstatic classNeutronHealthMonitor.HealthMonitors-
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 NeutronHealthMonitor()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HealthMonitorBuilderbuilder()IntegergetDelay()StringgetExpectedCodes()Optional.StringgetHttpMethod()Optional.StringgetId()IntegergetMaxRetries()StringgetStatus()StringgetTenantId()IntegergetTimeout()HealthMonitorTypegetType()StringgetUrlPath()Optional.booleanisAdminStateUp()Optional.HealthMonitorBuildertoBuilder()wrap this healthMonitor to a builderStringtoString()
-
-
-
Method Detail
-
builder
public static HealthMonitorBuilder builder()
- Returns:
- HealthMonitorBuilder
-
toBuilder
public HealthMonitorBuilder toBuilder()
wrap this healthMonitor to a builder- Specified by:
toBuilderin interfaceBuildable<HealthMonitorBuilder>- Returns:
- HealthMonitorBuilder
-
getId
public String getId()
- Specified by:
getIdin interfaceHealthMonitor- Returns:
- id the healthMonitor identifier
-
getTenantId
public String getTenantId()
- Specified by:
getTenantIdin interfaceHealthMonitor- Returns:
- tenantId Owner of the VIP. Only an administrative user can specify a tenant ID other than its own.
-
getType
public HealthMonitorType getType()
- Specified by:
getTypein interfaceHealthMonitor- Returns:
- type The type of probe sent by the load balancer to verify the member state, which is PING, TCP, HTTP, or HTTPS.
-
getDelay
public Integer getDelay()
- Specified by:
getDelayin interfaceHealthMonitor- Returns:
- delay The time, in seconds, between sending probes to members.
-
getTimeout
public Integer getTimeout()
- Specified by:
getTimeoutin interfaceHealthMonitor- 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 interfaceHealthMonitor- Returns:
- maxRetries 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()
Optional.- Specified by:
getHttpMethodin interfaceHealthMonitor- Returns:
- httpMethod The HTTP method that the monitor uses for requests.
-
getUrlPath
public String getUrlPath()
Optional.- Specified by:
getUrlPathin interfaceHealthMonitor- 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()
Optional.- Specified by:
getExpectedCodesin interfaceHealthMonitor- Returns:
- expectedCodes Expected HTTP codes for a passing HTTP(S) monitor.
-
isAdminStateUp
public boolean isAdminStateUp()
Optional.- Specified by:
isAdminStateUpin interfaceHealthMonitor- Returns:
- adminstateup The administrative state of the health monitor, which is up (true) or down (false).
-
getStatus
public String getStatus()
- Specified by:
getStatusin interfaceHealthMonitor- Returns:
- status The status of the health monitor. Indicates whether the health monitor is operational.
-
-